MCP-001: Shared MCP Server Library¶
This Reference preserves the recorded requirement contract.
The front matter states its lifecycle status; this editorial notice does not change that status.
An ACTIVE contract is not a historical implementation or qualification result.
The statement, rationale, identifiers, and traceability below keep their recorded meaning.
The original file is available at source revision 6d35d245f11a.
Statement¶
The system shall provide a shared TypeScript library (aptl-mcp-common) that all MCP servers depend on, providing: PersistentSession for SSH, SSHConnectionManager for connection pooling, HTTPClient for API access, createMCPServer factory, startServer entry point, typed argument interfaces, and shell formatters.
Rationale¶
Without a common library, each MCP server duplicated SSH handling producing copy-paste bugs.
Traceability¶
- IMPLEMENTS → ADR
docs/adrs/adr-003-mcp-common-library.md(ADR-003: MCP Common Library) - IMPLEMENTS → CODE_FILE
mcp/aptl-mcp-common/src/server.ts(MCP server factory)