@tsdevstack/cli-mcp 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/dist/context/index.d.ts +10 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1211 -0
- package/dist/mcp-serve.d.ts +7 -0
- package/dist/register-commands.d.ts +8 -0
- package/dist/resources/guide-config.d.ts +8 -0
- package/dist/resources/guide-nest-common.d.ts +9 -0
- package/dist/resources/guide-workflows.d.ts +8 -0
- package/dist/resources/guide.d.ts +8 -0
- package/dist/resources/guide.test.d.ts +1 -0
- package/dist/resources/kong-routes.d.ts +8 -0
- package/dist/resources/kong-routes.test.d.ts +1 -0
- package/dist/resources/project-state.d.ts +9 -0
- package/dist/resources/project-state.test.d.ts +1 -0
- package/dist/resources/register-resources.d.ts +7 -0
- package/dist/resources/secrets-context.d.ts +9 -0
- package/dist/resources/secrets-context.test.d.ts +1 -0
- package/dist/server.d.ts +7 -0
- package/dist/server.test.d.ts +1 -0
- package/dist/tools/action/action-tools.test.d.ts +1 -0
- package/dist/tools/action/add-service.d.ts +7 -0
- package/dist/tools/action/cloud-init.d.ts +7 -0
- package/dist/tools/action/cloud-secrets-push.d.ts +7 -0
- package/dist/tools/action/cloud-secrets-remove.d.ts +7 -0
- package/dist/tools/action/cloud-secrets-set.d.ts +7 -0
- package/dist/tools/action/deploy-kong.d.ts +7 -0
- package/dist/tools/action/deploy-lb.d.ts +7 -0
- package/dist/tools/action/deploy-scheduler.d.ts +7 -0
- package/dist/tools/action/deploy-schedulers.d.ts +7 -0
- package/dist/tools/action/deploy-service.d.ts +7 -0
- package/dist/tools/action/deploy-services.d.ts +7 -0
- package/dist/tools/action/generate-client.d.ts +7 -0
- package/dist/tools/action/generate-docker-compose.d.ts +7 -0
- package/dist/tools/action/generate-kong.d.ts +7 -0
- package/dist/tools/action/generate-secrets.d.ts +7 -0
- package/dist/tools/action/infra-bootstrap.d.ts +7 -0
- package/dist/tools/action/infra-build-docker.d.ts +7 -0
- package/dist/tools/action/infra-build-kong.d.ts +7 -0
- package/dist/tools/action/infra-deploy.d.ts +7 -0
- package/dist/tools/action/infra-destroy.d.ts +7 -0
- package/dist/tools/action/infra-generate-ci.d.ts +7 -0
- package/dist/tools/action/infra-generate-docker.d.ts +7 -0
- package/dist/tools/action/infra-generate.d.ts +7 -0
- package/dist/tools/action/infra-init-ci.d.ts +7 -0
- package/dist/tools/action/infra-init.d.ts +7 -0
- package/dist/tools/action/infra-push-docker.d.ts +7 -0
- package/dist/tools/action/register-detached-worker.d.ts +7 -0
- package/dist/tools/action/register.d.ts +7 -0
- package/dist/tools/action/remove-detached-worker.d.ts +7 -0
- package/dist/tools/action/remove-scheduler.d.ts +7 -0
- package/dist/tools/action/remove-service-cloud.d.ts +7 -0
- package/dist/tools/action/remove-service.d.ts +7 -0
- package/dist/tools/action/run-db-migrate.d.ts +7 -0
- package/dist/tools/action/sync.d.ts +7 -0
- package/dist/tools/action/unregister-detached-worker.d.ts +7 -0
- package/dist/tools/action/validate-service.d.ts +7 -0
- package/dist/tools/query/diff-secrets.d.ts +7 -0
- package/dist/tools/query/get-infrastructure-config.d.ts +7 -0
- package/dist/tools/query/get-project-config.d.ts +7 -0
- package/dist/tools/query/get-secret.d.ts +7 -0
- package/dist/tools/query/get-service-status.d.ts +7 -0
- package/dist/tools/query/infra-plan.d.ts +7 -0
- package/dist/tools/query/infra-status.d.ts +7 -0
- package/dist/tools/query/list-deployed-services.d.ts +7 -0
- package/dist/tools/query/list-environments.d.ts +7 -0
- package/dist/tools/query/list-schedulers.d.ts +7 -0
- package/dist/tools/query/list-secrets.d.ts +7 -0
- package/dist/tools/query/list-services.d.ts +7 -0
- package/dist/tools/query/plan-db-migrate.d.ts +7 -0
- package/dist/tools/query/query-tools.test.d.ts +1 -0
- package/dist/tools/query/register.d.ts +7 -0
- package/dist/tools/register-tools.d.ts +7 -0
- package/dist/utils/run-command.d.ts +8 -0
- package/dist/utils/run-command.test.d.ts +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register MCP Plugin Commands
|
|
3
|
+
*
|
|
4
|
+
* Registers the mcp:serve command with the Commander.js program.
|
|
5
|
+
* Called by cli-core after context initialization.
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from 'commander';
|
|
8
|
+
export declare function registerMcpPlugin(program: Command): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config Guide Resource
|
|
3
|
+
*
|
|
4
|
+
* Hardcoded reference for all configuration files in the framework.
|
|
5
|
+
* Registers: tsdevstack://guide/config
|
|
6
|
+
*/
|
|
7
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
export declare function registerGuideConfigResource(server: McpServer): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nest-Common Guide Resource
|
|
3
|
+
*
|
|
4
|
+
* Practical notes for the nest-common shared library.
|
|
5
|
+
* References the docs-site for the full canonical reference.
|
|
6
|
+
* Registers: tsdevstack://guide/nest-common
|
|
7
|
+
*/
|
|
8
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
9
|
+
export declare function registerGuideNestCommonResource(server: McpServer): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflows Guide Resource
|
|
3
|
+
*
|
|
4
|
+
* Hardcoded step-by-step workflow chains for common tasks.
|
|
5
|
+
* Registers: tsdevstack://guide/workflows
|
|
6
|
+
*/
|
|
7
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
export declare function registerGuideWorkflowsResource(server: McpServer): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Guide Resource
|
|
3
|
+
*
|
|
4
|
+
* Hardcoded framework guide: project structure, service types, key principles, anti-patterns.
|
|
5
|
+
* Registers: tsdevstack://guide
|
|
6
|
+
*/
|
|
7
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
export declare function registerGuideResource(server: McpServer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kong Routes Resource
|
|
3
|
+
*
|
|
4
|
+
* Dynamic file-read resource for Kong gateway configuration.
|
|
5
|
+
* Registers: tsdevstack://kong/routes
|
|
6
|
+
*/
|
|
7
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
8
|
+
export declare function registerKongRoutesResource(server: McpServer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project State Resources
|
|
3
|
+
*
|
|
4
|
+
* Dynamic file-read resources for project configuration files.
|
|
5
|
+
* Registers: tsdevstack://config, tsdevstack://infrastructure,
|
|
6
|
+
* tsdevstack://infrastructure-schema, tsdevstack://ci
|
|
7
|
+
*/
|
|
8
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
9
|
+
export declare function registerProjectStateResources(server: McpServer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Resources
|
|
3
|
+
*
|
|
4
|
+
* Registers all MCP resources (project state + secrets + kong + guides) with the server.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerResources(server: McpServer): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets Context Resources
|
|
3
|
+
*
|
|
4
|
+
* Dynamic file-read resources for secrets configuration.
|
|
5
|
+
* Registers: tsdevstack://secrets/map, tsdevstack://secrets/names,
|
|
6
|
+
* tsdevstack://secrets/user
|
|
7
|
+
*/
|
|
8
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
9
|
+
export declare function registerSecretsContextResources(server: McpServer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud Secrets Push Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack cloud-secrets:push` to push secrets to cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerCloudSecretsPushTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud Secrets Remove Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack cloud-secrets:remove` to remove a secret from cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerCloudSecretsRemoveTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud Secrets Set Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack cloud-secrets:set` to set a single secret in cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerCloudSecretsSetTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deploy Scheduler Tool (singular)
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:deploy-scheduler` to deploy a single scheduled job.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerDeploySchedulerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deploy Schedulers Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:deploy-schedulers` to deploy all scheduled jobs.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerDeploySchedulersTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deploy Service Tool (singular)
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:deploy-service` to build, push, deploy a single service.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerDeployServiceTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate Client Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack generate-client` to generate TypeScript HTTP client + DTOs.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerGenerateClientTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate Docker Compose Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack generate-docker-compose` to regenerate docker-compose.yml.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerGenerateDockerComposeTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate Secrets Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack generate-secrets` to regenerate local secrets files.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerGenerateSecretsTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infra Generate CI Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:generate-ci` to regenerate CI workflows.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerInfraGenerateCiTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infra Generate Docker Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:generate-docker` to generate Dockerfiles.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerInfraGenerateDockerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infra Push Docker Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:push-docker` to push Docker images to registry.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerInfraPushDockerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Detached Worker Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack register-detached-worker` to register a worker in config.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerRegisterDetachedWorkerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Action Tools
|
|
3
|
+
*
|
|
4
|
+
* Registers all 35 action tools (9 local + 12 cloud + 14 setup/CI/internal) with the MCP server.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerActionTools(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove Detached Worker Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:remove-detached-worker` to remove a worker from cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerRemoveDetachedWorkerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove Scheduler Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:remove-scheduler` to remove a scheduled job from cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerRemoveSchedulerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove Service Cloud Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:remove-service` to remove a service from cloud.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerRemoveServiceCloudTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unregister Detached Worker Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack unregister-detached-worker` to remove a worker from config.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerUnregisterDetachedWorkerTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validate Service Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack validate-service` to validate service structure.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerValidateServiceTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Infrastructure Config Tool
|
|
3
|
+
*
|
|
4
|
+
* Reads infrastructure.json to return per-environment settings.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerGetInfrastructureConfigTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Service Status Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:service-status` to check cloud resource status.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerGetServiceStatusTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Deployed Services Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:list-deployed` to list all deployed services.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerListDeployedServicesTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Environments Tool
|
|
3
|
+
*
|
|
4
|
+
* Reads credential files to list configured cloud environments and their providers.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerListEnvironmentsTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Services Tool
|
|
3
|
+
*
|
|
4
|
+
* Reads config.json to list all services with their types, ports, and dependencies.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerListServicesTool(server: McpServer): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan DB Migrate Tool
|
|
3
|
+
*
|
|
4
|
+
* Wraps `npx tsdevstack infra:plan-db-migrate` to show pending migrations.
|
|
5
|
+
*/
|
|
6
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
7
|
+
export declare function registerPlanDbMigrateTool(server: McpServer): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run Command Utility
|
|
3
|
+
*
|
|
4
|
+
* Spawns `npx tsdevstack <command>` and captures output.
|
|
5
|
+
* Returns MCP-formatted CallToolResult.
|
|
6
|
+
*/
|
|
7
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
+
export declare function runCommand(args: string[], timeoutMs?: number): Promise<CallToolResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|