Overview
Feature Comparison
Core MCP Features
Authentication & Security
Storage & State
Deployment & Runtime
Developer Experience
OAuth Flow Details
When to Use Which
Use @phake/mcp when:
- You need built-in authentication (OAuth, Google, API key, Bearer)
- Deploying to Cloudflare Workers with KV storage
- Want encrypted token storage at rest
- Need proactive token refresh
- Want quick scaffold with
bun create @phake/mcp - Need CIMD client validation
Use Official SDK when:
- Minimal protocol implementation needed
- Custom auth flow required
- No storage/encryption needs
- Using different frameworks/languages
Code Comparison
Registering a Tool
@phake/mcp:Architecture Summary
Migration Path
If switching from Official SDK to @phake/mcp:- Replace
McpServerwithcreateMCPServer - Replace
server.registerToolwithdefineTool+ pass to server - Configure
AUTH_STRATEGYfor auth needs - Set up
TOKENSKV binding for storage - Add
RS_TOKENS_ENC_KEYfor encryption