loading…
Search for a command to run...
loading…
Enables MCP clients to connect to LLM/API services using the Model Context Protocol, providing real-time interaction and tool access. Also offers RESTful API en
Enables MCP clients to connect to LLM/API services using the Model Context Protocol, providing real-time interaction and tool access. Also offers RESTful API endpoints via FastAPI for programmatic integration with existing systems.
This repository provides a unified solution for integrating Model Context Protocol (MCP) clients and REST API applications with LLM using the Python SDK.
It includes two core components:
Both servers are built to ensure seamless connectivity, secure authentication, and consistent performance across integration channels.
The repository implements two key servers designed for different modes of communication:
MCP Server Enables MCP clients to connect to LLM/API using the standardized Model Context Protocol. This allows real-time interaction and dynamic tool access through supported MCP clients and inspectors.
FastAPI Server Provides RESTful access to LLM/API, making it easy to integrate into existing systems or applications using simple HTTP requests.
Both implementations utilize the Agentforce Python SDK to communicate with Salesforce and the Agentforce backend, ensuring reliability and consistency.
Clone the repository and configure the required environment variables:
git clone hhttps://github.com/rajpatidar35/custommcp
cd custommcp
⚠️ Note: Ensure these credentials correspond to a valid CRED to access LLM/API.
Install all required Python dependencies using:
pip install -r requirements.txt
This will install all necessary libraries for both MCP and FastAPI servers, including the Agentforce Python SDK.
To start the MCP server (used for MCP clients and inspectors):
python ./src/serverllm.py
The MCP server will initialize and listen for incoming MCP client connections.
To run the FastAPI server for REST API access:
fastapi dev ./src/serverllm.py
This launches a development instance of the FastAPI application, exposing REST endpoints that interact with Agentforce Agents.
To test and debug the MCP server using the MCP Inspector tool:
Start the Inspector server:
npx @modelcontextprotocol/inspector
Open the Inspector web interface (default port: http://localhost:5173 or as shown in the console).
Connect to your running MCP server using the host URL:
https://localhost:8000/mcp
Navigate to the Tools tab to explore and test the available MCP tools.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"agentforce-mcp-integration-server": {
"command": "npx",
"args": []
}
}
}