MCP Integration
The Velox TS MCP (Model Context Protocol) server exposes your procedure definitions, schemas, route mappings, and error codes to AI tools like Claude Code, giving them rich context about your API without manually explaining your codebase.
What is MCP?
Section titled “What is MCP?”Model Context Protocol (MCP) allows AI assistants to access project context:
- Procedure definitions and signatures
- Schema information
- Route mappings
- Error codes and fixes
Starting the Server
Section titled “Starting the Server”velox mcpExposed Context
Section titled “Exposed Context”The MCP server provides:
{ "procedures": [...], // All procedures with types "schemas": [...], // Zod schemas "routes": [...], // REST/tRPC routes "database": {...}, // Prisma schema "errors": [...] // Error catalog}IDE Integration
Section titled “IDE Integration”VS Code / Cursor
Section titled “VS Code / Cursor”Add to .vscode/settings.json:
{ "mcp.servers": { "veloxts": { "command": "velox", "args": ["mcp"] } }}Claude Code
Section titled “Claude Code”The CLAUDE.md file provides context. MCP enhances this with live data.
Related Content
Section titled “Related Content”- CLI Overview - All CLI commands
- Templates - AI context files (CLAUDE.md)