@tsdevstack/cli-mcp
MCP server plugin for the tsdevstack CLI, enabling AI agents to manage infrastructure, deployment, and project state with 54 tools and 12 resources.
README
@tsdevstack/cli-mcp
MCP (Model Context Protocol) server plugin for the tsdevstack CLI. Exposes 54 tools and 12 resources so AI agents like Claude can understand and assist you with the framework, the infrastructure, deployment flows and querying the project state.
Features
- 54 MCP Tools — 13 read-only queries + 41 actions covering the full tsdevstack CLI surface
- 12 MCP Resources — project state, secrets context, Kong routes, and framework guides
- Stdio Transport — connects via stdin/stdout for IDE and agent integration
- Zod Validation — all tool inputs validated with schemas
- MCP Annotations — tools include
readOnlyHint,destructiveHint, andidempotentHintmetadata
Installation
npm install @tsdevstack/cli-mcp
Requires tsdevstack as a peer dependency.
Usage
As a CLI plugin
The MCP server registers as a plugin with the tsdevstack CLI:
import { initContext, registerMcpPlugin } from '@tsdevstack/cli-mcp';
// Initialize with CLI plugin context
initContext(pluginContext);
// Register the mcp:serve command
registerMcpPlugin(program);
Starting the server
npx tsdevstack mcp:serve
This starts the MCP server over stdio transport, ready for AI agent connections.
Claude Code integration
Add to your .mcp.json:
{
"mcpServers": {
"tsdevstack": {
"command": "npx",
"args": ["tsdevstack", "mcp:serve"]
}
}
}
Tools
Query tools (read-only)
| Tool | Description |
|---|---|
list_services |
List all services with types and ports |
list_environments |
List configured cloud environments |
get_project_config |
Full project configuration |
get_infrastructure_config |
Per-environment infrastructure settings |
get_service_status |
Cloud resource status for a service |
list_deployed_services |
All deployed services in an environment |
list_secrets |
Secret names in cloud (not values) |
diff_secrets |
Compare local vs cloud secrets |
get_secret |
Get a single secret value |
list_schedulers |
Scheduled jobs and status |
plan_db_migrate |
Preview pending database migrations |
infra_plan |
Terraform plan preview |
infra_status |
Infrastructure sync status |
Action tools — local
| Tool | Description |
|---|---|
sync |
Regenerate all local config |
generate_secrets |
Regenerate local secrets files |
generate_kong |
Regenerate Kong gateway config |
generate_docker_compose |
Regenerate docker-compose.yml |
add_service |
Add a new service (nestjs, nextjs, spa) |
remove_service |
Remove a service from the project |
generate_client |
Generate TypeScript HTTP client from OpenAPI |
add_bucket_storage |
Add an object storage bucket |
remove_bucket_storage |
Remove an object storage bucket |
add_messaging_topic |
Add a messaging topic to config |
remove_messaging_topic |
Remove a messaging topic from config |
update_messaging_topic |
Update publishers/subscribers for a topic |
register_detached_worker |
Register a detached worker in config |
unregister_detached_worker |
Remove a worker from config |
Action tools — cloud
| Tool | Description |
|---|---|
cloud_secrets_push |
Push secrets to cloud |
cloud_secrets_set |
Set a single cloud secret |
cloud_secrets_remove |
Remove a cloud secret |
infra_deploy |
Full infrastructure deployment |
deploy_services |
Deploy code changes to services |
deploy_service |
Build + push + deploy a single service |
deploy_kong |
Rebuild and deploy Kong gateway |
deploy_lb |
Deploy/update load balancer |
run_db_migrate |
Apply pending database migrations |
deploy_schedulers |
Deploy all scheduled jobs |
deploy_scheduler |
Deploy a single scheduled job |
remove_service_cloud |
Remove a service from cloud |
remove_detached_worker |
Remove a worker from cloud |
infra_destroy |
Destroy all cloud infrastructure |
Action tools — setup & CI
| Tool | Description |
|---|---|
cloud_init |
Initialize cloud provider credentials |
infra_bootstrap |
Bootstrap cloud project |
infra_init |
Initialize Terraform state |
infra_generate |
Generate Terraform files |
infra_generate_docker |
Generate Dockerfiles |
infra_build_docker |
Build Docker images |
infra_push_docker |
Push Docker images to registry |
infra_generate_kong |
Generate Kong declarative config |
infra_build_kong |
Build Kong Docker image |
infra_init_ci |
Initialize CI/CD workflows |
infra_generate_ci |
Regenerate CI workflows |
validate_service |
Validate service structure |
remove_scheduler |
Remove a scheduled job from cloud |
Resources
| Resource | Description |
|---|---|
| Project state (8) | Services list, environments, config, infrastructure settings, deployed services, secrets, schedulers, migration status |
| Secrets context | Local and cloud secret names with diff |
| Kong routes | Current gateway routing configuration |
| Guides (4) | Framework guide, workflow guide, nest-common guide, config guide |
Architecture
The MCP server is a thin layer over the tsdevstack CLI:
- Query tools either read local config files directly or wrap
npx tsdevstackcommands - Action tools delegate to
runCommand()which spawnsnpx tsdevstack <command>as a child process - Resources read project files and provide contextual documentation
Community
Join the Discord: discord.gg/2EMFkqc8QR
License
Apache-2.0
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.