MCP Registry Deployment Guide
Complete guide for deploying LangGraph Agent to the Model Context Protocol (MCP) Registry with HTTP/SSE transport support.Table of Contents
- Overview
- Transports
- Registry Manifest
- Publishing to Registry
- Client Configuration
- Testing
- Production Deployment
Overview
The MCP Server with LangGraph supports multiple MCP transports:- stdio (Standard Input/Output) - For local/desktop applications
- HTTP/SSE (Server-Sent Events) - For web applications and remote access
Transports
The agent supports three MCP transports:- StreamableHTTP (Recommended) - Modern HTTP streaming
- stdio - Local/desktop applications
- HTTP/SSE (Deprecated) - Legacy Server-Sent Events
stdio Transport
Used by: Claude Desktop, local CLI tools Configuration:src/mcp_server_langgraph/mcp/server_stdio.py- stdio transport implementation
StreamableHTTP Transport (Recommended)
Used by: Web applications, remote clients, mobile apps, production deployments Why StreamableHTTP?- Modern HTTP/2+ streaming
- Better compatibility with load balancers and proxies
- Proper request/response pairs
- Native HTTP streaming without SSE limitations
- Full MCP spec compliance
POST /message- Main MCP endpoint (streaming or regular)GET /tools- List available tools (convenience)GET /resources- List available resources (convenience)GET /health- Health checkGET /- Server info and capabilities
src/mcp_server_langgraph/mcp/server_streamable.py- StreamableHTTP transport implementation
- Set
Accept: application/x-ndjsonorAccept: text/event-streamfor streaming responses - Responses are newline-delimited JSON
- Works with standard HTTP infrastructure
HTTP/SSE Transport (Deprecated)
⚠️ This transport is deprecated in the MCP specification. Use StreamableHTTP instead. Used by: Legacy clients Configuration:GET /sse- Server-Sent Events streamPOST /messages- MCP JSON-RPC messagesGET /tools- List available toolsGET /resources- List available resources
mcp_server_http.py- HTTP/SSE transport implementation (legacy)
Registry Manifest
manifest.json
Located at.mcp/manifest.json, this file contains:
name- Unique identifier for the registryversion- Semantic version (semver)transports- Supported transport configurationscapabilities- MCP protocol capabilitiestools- List of available tools with schemasconfiguration- Required and optional environment variables
registry.json
Located at.mcp/registry.json, this file contains registry-specific metadata:
Publishing to Registry
Automated Publishing
Use the provided script:- Validates manifest files
- Builds package tarball
- Uploads to registry
- Generates registry card
Manual Publishing
Client Configuration
Claude Desktop
MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Web Application (HTTP/SSE)
Python Client (HTTP/SSE)
Testing
Test stdio Transport
Test HTTP/SSE Transport
Test with MCP Inspector
Production Deployment
Deploy HTTP/SSE Server to Kubernetes
Configure Kong for MCP
read-timeout: 86400000(24 hours)write-timeout: 86400000(24 hours)- Session affinity for SSE connections
DNS Configuration
SSL/TLS
Use cert-manager for automatic certificate provisioning:Health Checks
Monitoring
Prometheus metrics:Registry Compliance Checklist
- Manifest file -
.mcp/manifest.jsonwith all required fields - Registry info -
.mcp/registry.jsonwith metadata - stdio transport - Implemented in
src/mcp_server_langgraph/mcp/server_stdio.py - HTTP/SSE transport - Implemented in
mcp_server_http.py - Tools - Documented with JSON schemas
- Resources - Documented and accessible
- Health checks -
/healthendpoint - Documentation - README, deployment guides
- Versioning - Semantic versioning (1.0.0)
- Authentication - JWT and API Key support
- Rate limiting - Kong integration
- CORS - Configured for web clients
- SSL/TLS - Certificate provisioning
- Monitoring - Prometheus metrics
Resources
Support
For registry-related issues:- Registry support: registry-support@modelcontextprotocol.io
- Agent issues: https://github.com/vishnu2kmohan/mcp-server-langgraph/issues