How tyktechnologies/tyk-dashboard-mcp works
This repository turns OpenAPI descriptions into MCP servers so AI assistants can invoke the described REST operations. Configuration selects the specification, overlays, filters, and API request settings; the processor loads and validates the description and applies overlays; the mapper produces filtered MCP tool definitions; and the server registers tools and dispatches invocations through the API client. The README also documents file or URL inputs, authentication, custom headers, and x-mcp customization. Relationships are limited to shown imports/calls and documented capabilities; unsampled internals are not inferred.
Main entry points: openapiProcessor.ts Spec loader and validator · server.ts MCP server · config.ts Runtime configuration · mcpMapper.ts Tool mapper and filters
Components 12
Configuration and inputs
- Runtime configuration
src/config.ts - OpenAPI spec source
- Overlay sources
OpenAPI processing
- Spec loader and validator
src/openapiProcessor.ts - URL fetch helper
src/utils/httpClient.ts - Overlay engine
src/overlay-applier.ts - Tool mapper and filters
src/mcpMapper.ts
MCP runtime
- MCP server
src/server.ts - MCP host transport
API requests
- API executor
src/apiClient.ts
Other components
- AI assistant
- Target REST API
Connections 13
- AI assistant → MCP server: uses tools
README.md - Runtime configuration → Spec loader and validator: configures loading
src/openapiProcessor.ts - Runtime configuration → Tool mapper and filters: configures filters
src/mcpMapper.ts - Runtime configuration → API executor: configures requests
src/apiClient.ts - OpenAPI spec source → Spec loader and validator: loads description
README.md - Overlay sources → Spec loader and validator: loads overlays
README.md - Spec loader and validator → URL fetch helper: fetches URLs
src/openapiProcessor.ts - Spec loader and validator → Overlay engine: applies overlays
src/openapiProcessor.ts - Spec loader and validator → Tool mapper and filters: provides processed spec
src/server.ts - Tool mapper and filters → MCP server: provides tool definitions
src/server.ts - MCP server → MCP host transport: connects transport
src/server.ts - MCP server → API executor: dispatches invocations
src/server.ts - API executor → Target REST API: sends HTTP requests
src/apiClient.ts