auxiliar-mcp 0.9.1 → 0.11.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/dist/data/capabilities.d.ts +34 -0
- package/dist/data/capabilities.generated.json +9981 -0
- package/dist/data/capabilities.js +62 -0
- package/dist/data/solve.js +107 -0
- package/dist/server.js +69 -2
- package/dist/tools/compare-capabilities.d.ts +35 -0
- package/dist/tools/compare-capabilities.js +101 -0
- package/dist/tools/find-capability.d.ts +51 -0
- package/dist/tools/find-capability.js +117 -0
- package/dist/tools/get-capability.d.ts +21 -0
- package/dist/tools/get-capability.js +22 -0
- package/dist/tools/list-capabilities.d.ts +39 -0
- package/dist/tools/list-capabilities.js +50 -0
- package/dist/tools/solve.js +11 -3
- package/dist/types/capability.d.ts +238 -0
- package/dist/types/capability.js +157 -0
- package/package.json +6 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime query layer over the unified Capability index (N1 Phase 3).
|
|
3
|
+
*
|
|
4
|
+
* Loads the build-time snapshot at `./capabilities.generated.json` (built by
|
|
5
|
+
* `mcp/scripts/build-capabilities.mjs` from `data/capabilities/*.yml`) and
|
|
6
|
+
* exposes a small functional API for the MCP server tools.
|
|
7
|
+
*
|
|
8
|
+
* The snapshot is validated through the Zod Capability schema **once at
|
|
9
|
+
* module import**. Per-call validation would burn CPU on every tool
|
|
10
|
+
* invocation; one-shot validation at startup catches schema/data drift
|
|
11
|
+
* before the server handles its first request.
|
|
12
|
+
*
|
|
13
|
+
* The MCP server runs on the user's machine, not on AWS. Bundling the
|
|
14
|
+
* snapshot keeps that path AWS-credentialless. DynamoDB is the runtime
|
|
15
|
+
* backing store for the FastAPI side (Hugo build, web visitors, future
|
|
16
|
+
* Costco gateway) — both consumers read from `data/capabilities/*.yml`
|
|
17
|
+
* as the canonical source.
|
|
18
|
+
*/
|
|
19
|
+
import { Capability } from "../types/capability.js";
|
|
20
|
+
/** Return every Capability in the index. Order is YAML filename ascending. */
|
|
21
|
+
export declare function listAllCapabilities(): readonly Capability[];
|
|
22
|
+
/** Fetch one Capability by stable slug, or undefined if absent. */
|
|
23
|
+
export declare function getCapability(id: string): Capability | undefined;
|
|
24
|
+
/** All Capabilities of a single element_type. */
|
|
25
|
+
export declare function listCapabilitiesByElementType(elementType: Capability["element_type"]): readonly Capability[];
|
|
26
|
+
/** Capabilities matching any of the given jtbd_tags (OR semantics). Used by
|
|
27
|
+
* the find_capability tool's task-first query path. */
|
|
28
|
+
export declare function findCapabilitiesByJtbd(tags: readonly string[]): Capability[];
|
|
29
|
+
/** Capabilities matching any of the given category strings. /service/<cat>/
|
|
30
|
+
* list views and the legacy `list_services` tool route through here. */
|
|
31
|
+
export declare function listCapabilitiesByCategory(category: string): Capability[];
|
|
32
|
+
/** Total count — exposed for diagnostics + the homepage's dynamic
|
|
33
|
+
* service-count display. */
|
|
34
|
+
export declare function capabilityCount(): number;
|