Skip to content

Safekeys MCP Server — Architecture ​

Source Paths ​

  • packages/mcp-server

Modules ​

ModulePurposePaths
serverMCP server bootstrap and tool registrationpackages/mcp-server/src/index.ts
toolsTool handlers — create_secret, resolve_for_tool, list, revoke — all token-onlypackages/mcp-server/src/tools
sidecar-clientUnix socket client to the local sidecarpackages/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.