@contractspec/app.alpic-mcp
v3.7.28
Published
Website: https://contractspec.io
Readme
@contractspec/app.alpic-mcp
Website: https://contractspec.io
MCP (Model Context Protocol) server for Alpic. Exposes ContractSpec documentation and tooling to AI agents via the MCP standard.
What It Does
- Uses
@contractspec/bundle.alpicfor Alpic business logic. - Uses
@contractspec/lib.loggerfor structured logging. - Built with tsdown; runs as a Node.js server.
- Related ContractSpec packages include
@contractspec/bundle.alpic,@contractspec/lib.logger,@contractspec/tool.tsdown,@contractspec/tool.typescript.
Running Locally
From packages/apps/alpic-mcp:
bun run devbun run startbun run build
Usage
bun run devArchitecture
- Uses
@contractspec/bundle.alpicfor Alpic business logic. - Uses
@contractspec/lib.loggerfor structured logging. - Built with tsdown; runs as a Node.js server.
src/index.tsis the root public barrel and package entrypoint.src/server.tsis the main server bootstrap entrypoint.
Public Entry Points
- Export
.resolves through./dist/index.mjs. - Export
./serverresolves through./dist/server.mjs. - Export
./*resolves through./*.
Local Commands
bun run dev— tsdown --watchbun run start— node dist/server.jsbun run build— tsdown && mkdir -p dist && cp -R assets dist/assetsbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf dist
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- MCP protocol compliance is critical — do not break tool/resource schemas.
- Keep server startup fast; defer heavy initialization.
