HTTP Servers (MCP)
Model Context Protocol (MCP) servers can be implemented using various communication methods, with HTTP-based servers being a common and robust choice.
HTTP-Based MCP
An HTTP server implements the JSON-RPC 2.0 specification over standard HTTP or HTTPS.
- Communication: The ChatFrame client sends JSON-RPC requests (containing the tool call) as HTTP POST requests to the server's endpoint.
- Response: The server processes the request, performs the necessary action (e.g., database query), and returns the result in a JSON-RPC response body.
Advantages
- Ubiquity: HTTP is a widely supported and well-understood protocol, making it easy to deploy and manage HTTP-based MCP servers.
- Security: Can easily leverage HTTPS for secure, encrypted communication between ChatFrame and the server.
Configuration in ChatFrame
When configuring an HTTP-based MCP server in ChatFrame, you will need to provide the full URL of the server's endpoint (e.g., http://localhost:8080/mcp).
- Model Context Protocol. Specification. https://modelcontextprotocol.io/specification/2025-03-26