@ateam-ai/mcp 0.4.19 → 0.4.20

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.js +28 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "mcpName": "io.github.ariekogan/ateam-mcp",
5
5
  "description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
6
6
  "type": "module",
package/src/tools.js CHANGED
@@ -382,6 +382,26 @@ export const tools = [
382
382
  required: ["goal"],
383
383
  },
384
384
  },
385
+ {
386
+ name: "ateam_spec_search",
387
+ core: true,
388
+ description:
389
+ "Semantic search over the FULL ateam platform /spec documentation — the deep fallback behind ateam_design_advisor. Ask a natural-language 'how do I…' question and get the most relevant doc chunks (with their topic + heading), then read the full topic via ateam_get_spec(topic). Use this when the advisor's pointer isn't enough, or for details/examples on anything — including topics outside the curated capability list. Read-only.",
390
+ inputSchema: {
391
+ type: "object",
392
+ properties: {
393
+ query: {
394
+ type: "string",
395
+ description: "Natural-language question, e.g. 'how do I send a proactive daily reminder?' or 'per-user persistence'.",
396
+ },
397
+ top_k: {
398
+ type: "number",
399
+ description: "How many chunks to return (default 8, max 25).",
400
+ },
401
+ },
402
+ required: ["query"],
403
+ },
404
+ },
385
405
  {
386
406
  name: "ateam_build_and_run",
387
407
  core: true,
@@ -2231,7 +2251,7 @@ const handlers = {
2231
2251
  },
2232
2252
  design_advisor: {
2233
2253
  _important: "BEFORE and WHILE you design any skill/solution you MUST consult ateam_design_advisor. You do NOT know which platform capabilities exist or when to use them — the advisor does. Describe your goal to it and it returns pointers to the right capabilities (per-actor storage, widgets, triggers, sub-agents, mobile data, run-scripts, multi-skill handoff, GitHub, …) with the /spec topic to read next and the tool to wire each. It's advisory — you decide and own the design — but skipping it means you'll miss capabilities the platform already provides.",
2234
- how: "ateam_design_advisor({ goal: '<what you are building, in your words>', design_state: {} }). Re-call it as the design evolves (pass the current design_state) to get 'what's still missing' hints. Then ateam_get_spec(topic) for any capability it points you to.",
2254
+ how: "ateam_design_advisor({ goal: '<what you are building, in your words>', design_state: {} }). Re-call it as the design evolves (pass the current design_state) to get 'what's still missing' hints. Then ateam_get_spec(topic) for any capability it points you to. For anything deeper — details, examples, or topics outside the capability list — ateam_spec_search({ query: '<how do I…>' }) does a semantic search over the FULL spec docs.",
2235
2255
  },
2236
2256
  what_is_a_team: {
2237
2257
  definition: "A Team is a structured multi-role AI system composed of Skills, Connectors, Governance contracts, and Managed Runtime deployment.",
@@ -2600,6 +2620,13 @@ const handlers = {
2600
2620
  return post("/spec/advisor", { goal, design_state: design_state || {} }, sid, { timeoutMs: 90_000, retries: 1 });
2601
2621
  },
2602
2622
 
2623
+ // Semantic search over the full /spec corpus (Builder /spec/search → the
2624
+ // sysSpecSearch-mcp platform connector). Public read-only endpoint.
2625
+ ateam_spec_search: async ({ query, top_k }, sid) => {
2626
+ if (!query || typeof query !== "string") throw new Error("query required (a string question)");
2627
+ return post("/spec/search", { query, ...(top_k ? { top_k } : {}) }, sid, { timeoutMs: 30_000, retries: 1 });
2628
+ },
2629
+
2603
2630
  // ─── Composite: Build & Run ────────────────────────────────────────
2604
2631
  // Validates → Deploys → Health-checks → Optionally tests
2605
2632
  // One call replaces: validate_solution + deploy_solution + get_solution(health)