Commit f2d2009
docs: add complete production-ready MCP server example
Added a comprehensive example in examples/complete-server/ that demonstrates
all production patterns for building secure, observable MCP servers.
Features demonstrated:
- Bearer token authentication with middleware
- JSON-RPC 2.0 compliant error handling
- Request logging for all MCP protocol messages
- Health check endpoints for Kubernetes
- CORS configuration
- Proper notifications/initialized handling
- Response recording for debugging auth failures
- Dual gRPC/HTTP server architecture
- Production deployment patterns
The example is fully documented with:
- Comprehensive README with testing instructions
- Common issues and solutions section
- Kubernetes deployment manifests
- Architecture diagrams
- Step-by-step testing guide
This provides teams with a complete reference implementation
for building production MCP servers.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent fddf7df commit f2d2009
6 files changed
Lines changed: 774 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
154 | 172 | | |
155 | 173 | | |
156 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments