Safekeys MCP Server — Architecture
Source Paths
packages/mcp-server
Modules
| Module | Purpose | Paths |
|---|---|---|
| server | MCP server bootstrap and tool registration | packages/mcp-server/src/index.ts |
| tools | Tool handlers — create_secret, resolve_for_tool, list, revoke — all token-only | packages/mcp-server/src/tools |
| sidecar-client | Unix socket client to the local sidecar | packages/mcp-server/src/sidecar |
Decisions
mcp-first [accepted]
Decision: Ship an MCP server as the first harness integration, ahead of any framework-specific SDK.
Rationale: MCP is the common tool bus across Claude, Cursor, Codex, Gemini, and most 2026 agent runtimes, so one server covers many products without per-vendor adapters. It is the highest-leverage integration surface for the MVP.
mcp-not-in-v0-scope [accepted]
Decision: Keep CrewAI, AutoGen, Pydantic AI, smolagents, and custom enterprise harnesses out of MVP scope.
Rationale: Each is another thin adapter on the same contract; supporting them later as examples that call the same SDK or MCP tools avoids maintaining dedicated runtimes.