capix-mcp 2.1.1 → 2.2.0
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/README.md +51 -72
- package/dist/prompts.d.ts +6 -1
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +41 -75
- package/dist/prompts.js.map +1 -1
- package/dist/route-families.d.ts +47 -0
- package/dist/route-families.d.ts.map +1 -0
- package/dist/route-families.js +96 -0
- package/dist/route-families.js.map +1 -0
- package/dist/server.d.ts +5 -5
- package/dist/server.js +8 -8
- package/dist/server.js.map +1 -1
- package/dist/tools/define-tool.d.ts +6 -0
- package/dist/tools/define-tool.d.ts.map +1 -1
- package/dist/tools/define-tool.js +1 -0
- package/dist/tools/define-tool.js.map +1 -1
- package/dist/tools/factory.d.ts +42 -0
- package/dist/tools/factory.d.ts.map +1 -0
- package/dist/tools/factory.js +363 -0
- package/dist/tools/factory.js.map +1 -0
- package/dist/tools/generate.d.ts +108 -0
- package/dist/tools/generate.d.ts.map +1 -0
- package/dist/tools/generate.js +149 -0
- package/dist/tools/generate.js.map +1 -0
- package/dist/tools/infra-context.d.ts +15 -11
- package/dist/tools/infra-context.d.ts.map +1 -1
- package/dist/tools/infra-context.js +43 -92
- package/dist/tools/infra-context.js.map +1 -1
- package/dist/tools/memes.d.ts +31 -0
- package/dist/tools/memes.d.ts.map +1 -0
- package/dist/tools/memes.js +175 -0
- package/dist/tools/memes.js.map +1 -0
- package/dist/tools.d.ts +47 -7
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +341 -891
- package/dist/tools.js.map +1 -1
- package/dist/types.d.ts +17 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
package/dist/tools.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Capix MCP Server — all
|
|
2
|
+
* Capix MCP Server — all 37 tool definitions.
|
|
3
|
+
*
|
|
4
|
+
* 2026-07 repair: every tool below targets a route family that EXISTS in the
|
|
5
|
+
* control plane (app/api/v1/* in the protocol repo), verified route-by-route
|
|
6
|
+
* against the live source. Each tool declares its canonical path (`routePath`)
|
|
7
|
+
* and the registry gate (tools/registry.test.ts) asserts it against the
|
|
8
|
+
* allowlist in route-families.ts — no phantom routes can be re-introduced.
|
|
3
9
|
*
|
|
4
10
|
* Each tool is declared with:
|
|
5
11
|
* - inputShape : a Zod raw shape (validated by the McpServer before dispatch)
|
|
@@ -11,17 +17,51 @@
|
|
|
11
17
|
* structured content. The CapixApiError (problem+json) thrown by the client is
|
|
12
18
|
* caught by the server wrapper and surfaced as an MCP error result.
|
|
13
19
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
20
|
+
* CRUD-shaped tools are declared with `defineGeneratedTool` (tools/generate.ts)
|
|
21
|
+
* — a declarative spec (method, path, input) from which the registration AND
|
|
22
|
+
* the HTTP call are generated — instead of a hand-written handler. Everything
|
|
23
|
+
* else uses `defineTool` (tools/define-tool.ts) with an explicit handler.
|
|
24
|
+
*
|
|
25
|
+
* Tools are grouped by scope:
|
|
26
|
+
* discovery (7) · planning (2) · lifecycle (19) · verification (1) ·
|
|
27
|
+
* website (6) · infra-context (2)
|
|
28
|
+
* (The factory tools — jobs/training/agent-deploys — live in
|
|
29
|
+
* tools/factory.ts and join lifecycle; the meme/image tools live in
|
|
30
|
+
* tools/memes.ts: the meme catalog joins discovery, the two billable
|
|
31
|
+
* generators join lifecycle.)
|
|
32
|
+
*
|
|
33
|
+
* Removed in the repair (no backing route in the control plane — hidden, not
|
|
34
|
+
* deleted from git history):
|
|
35
|
+
* - networking scope (8 tools): /api/v1/networking/* and /api/v1/vpc do not
|
|
36
|
+
* exist. Returns with the networking roadmap (N1–N5).
|
|
37
|
+
* - testing scope (6 tools): /api/v1/testing/* does not exist (disposable
|
|
38
|
+
* test envs are not built).
|
|
39
|
+
* - attestation/zkVM/measurement tools (5): /api/v1/verification/* and
|
|
40
|
+
* /api/v1/attestations do not exist. Secured Cloud (TEE/zkVM) is deferred.
|
|
41
|
+
* - planning stubs (capix_compute_plan, capix_model_plan, capix_stack_*):
|
|
42
|
+
* /api/v1/planning/* does not exist; quoting lives at /api/v1/quotes.
|
|
43
|
+
* - lifecycle stubs (capix_start/stop/restart/extend): start/stop exist
|
|
44
|
+
* upstream ONLY as PATCH /api/v1/deployments/[id] { desiredState } with a
|
|
45
|
+
* mandatory If-Match etag — unreachable through the current client
|
|
46
|
+
* surface (no PATCH, no etag access). Restart/extend have no backend.
|
|
47
|
+
* - discovery stubs: capix_projects (no /api/v1/projects),
|
|
48
|
+
* capix_model_catalog (real catalog is /api/v1/models, covered by
|
|
49
|
+
* capix_model_list), capix_attestations (Secured Cloud deferred).
|
|
50
|
+
* - website stubs (12 tools): singular /api/v1/website/* never existed and
|
|
51
|
+
* detect/plan/quote/deploy/preview/deployments/logs/metrics/domains have
|
|
52
|
+
* no routes under the real /api/v1/websites family (build logs surface as
|
|
53
|
+
* `logTail` inside capix_website_get; previews are implicit per release).
|
|
54
|
+
* - infra-context stubs: capix_node_status, capix_earnings_check (no
|
|
55
|
+
* /api/v1/nodes/status or /api/v1/earnings), capix_deployment_list
|
|
56
|
+
* (duplicate of capix_deployments).
|
|
17
57
|
*/
|
|
18
58
|
import type { ToolDef } from "./types.js";
|
|
59
|
+
import { factoryTools } from "./tools/factory.js";
|
|
19
60
|
import { infraContextTools } from "./tools/infra-context.js";
|
|
61
|
+
import { memeImageTools } from "./tools/memes.js";
|
|
20
62
|
declare const discoveryTools: ToolDef[];
|
|
21
63
|
declare const planningTools: ToolDef[];
|
|
22
64
|
declare const lifecycleTools: ToolDef[];
|
|
23
|
-
declare const networkingTools: ToolDef[];
|
|
24
|
-
declare const testingTools: ToolDef[];
|
|
25
65
|
declare const verificationTools: ToolDef[];
|
|
26
66
|
declare const websiteTools: ToolDef[];
|
|
27
67
|
export declare const TOOLS: ToolDef[];
|
|
@@ -29,5 +69,5 @@ export declare const TOOL_NAMES: string[];
|
|
|
29
69
|
export declare const TOOL_COUNT: number;
|
|
30
70
|
/** Map of tool name → definition, used by the server for O(1) lookup. */
|
|
31
71
|
export declare const TOOL_MAP: Map<string, ToolDef>;
|
|
32
|
-
export { discoveryTools, planningTools, lifecycleTools,
|
|
72
|
+
export { discoveryTools, planningTools, lifecycleTools, verificationTools, websiteTools, factoryTools, infraContextTools, memeImageTools };
|
|
33
73
|
//# sourceMappingURL=tools.d.ts.map
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQ1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAkClD,QAAA,MAAM,cAAc,EAAE,OAAO,EA2H5B,CAAC;AA8BF,QAAA,MAAM,aAAa,EAAE,OAAO,EA2E3B,CAAC;AAqBF,QAAA,MAAM,cAAc,EAAE,OAAO,EA6C5B,CAAC;AAYF,QAAA,MAAM,iBAAiB,EAAE,OAAO,EAoB/B,CAAC;AAkCF,QAAA,MAAM,YAAY,EAAE,OAAO,EA0G1B,CAAC;AAMF,eAAO,MAAM,KAAK,EAAE,OAAO,EAS1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,EAA6B,CAAC;AAE7D,eAAO,MAAM,UAAU,QAAe,CAAC;AAEvC,yEAAyE;AACzE,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAA0C,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC"}
|