MCP starter module
MCP library
Centralizes server setup, tool definitions, authentication, and response helpers.
- Files
- 6
- Lines
- 438
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
src/lib/app-adapter.ts
Connects MCP tools to your app's identity, durable data, and domain reactions.
TypeScript
111 lines
src/lib/demo-identity.ts
Resolves the local demo customer from a bearer token created by seed:demo,
TypeScript
42 lines
src/lib/demo-store.ts
Provides development-only records, usage, account state, jobs, and claims.
TypeScript
116 lines
src/lib/env.ts
Reads and validates the settings used by identity, webhooks, and messages.
TypeScript
33 lines
src/lib/server.ts
Builds one fully registered MCP server for stdio or one HTTP request.
TypeScript
62 lines
src/lib/types.ts
Defines the application-owned data that MCP tools read and change.
TypeScript
74 lines