@mushi-mushi/mcp 0.14.0 → 0.14.1

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/catalog.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  RESOURCE_CATALOG,
5
5
  TDD_TOOL_CATALOG,
6
6
  TOOL_CATALOG
7
- } from "./chunk-QWZEQYCN.js";
7
+ } from "./chunk-FQ5WR3PS.js";
8
8
  export {
9
9
  ALL_SCOPES,
10
10
  PROMPT_CATALOG,
@@ -274,7 +274,7 @@ var TOOL_CATALOG = [
274
274
  {
275
275
  name: "get_pipeline_logs",
276
276
  title: "Recent pipeline logs",
277
- description: "Pull recent log entries from the Mushi pipeline services: classify-report, fix-worker, qa-story-runner, mcp, webhook, api, or all. Accepts project_id, service, since (ISO-8601), limit (max 200), and level (info | warn | error | fatal) filters. Returns structured log rows with timestamp, level, service, message, and a trace_id/report_id when available. Use this when a fix failed, a QA story keeps erroring, or an ingest pipeline went silent.",
277
+ description: "Pull recent log entries from the Mushi pipeline services: fix-worker, qa-story-runner, pipeline, or all. Accepts project_id, service, since (ISO-8601), limit (max 200), and level (info | warn | error | fatal) filters. Returns structured log rows with timestamp, level, service, message, and a trace_id/report_id when available. Use this when a fix failed, a QA story keeps erroring, or an ingest pipeline went silent.",
278
278
  scope: "mcp:read",
279
279
  hints: { readOnly: true, idempotent: true, openWorld: true },
280
280
  useCase: "Why did the last fix attempt fail? Show me recent pipeline errors."
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js CHANGED
@@ -281,7 +281,7 @@ var TOOL_CATALOG = [
281
281
  {
282
282
  name: "get_pipeline_logs",
283
283
  title: "Recent pipeline logs",
284
- description: "Pull recent log entries from the Mushi pipeline services: classify-report, fix-worker, qa-story-runner, mcp, webhook, api, or all. Accepts project_id, service, since (ISO-8601), limit (max 200), and level (info | warn | error | fatal) filters. Returns structured log rows with timestamp, level, service, message, and a trace_id/report_id when available. Use this when a fix failed, a QA story keeps erroring, or an ingest pipeline went silent.",
284
+ description: "Pull recent log entries from the Mushi pipeline services: fix-worker, qa-story-runner, pipeline, or all. Accepts project_id, service, since (ISO-8601), limit (max 200), and level (info | warn | error | fatal) filters. Returns structured log rows with timestamp, level, service, message, and a trace_id/report_id when available. Use this when a fix failed, a QA story keeps erroring, or an ingest pipeline went silent.",
285
285
  scope: "mcp:read",
286
286
  hints: { readOnly: true, idempotent: true, openWorld: true },
287
287
  useCase: "Why did the last fix attempt fail? Show me recent pipeline errors."
@@ -1111,7 +1111,7 @@ function createMushiServer(config) {
1111
1111
  annotations: annotationsFor("get_pipeline_logs"),
1112
1112
  inputSchema: {
1113
1113
  project_id: z.string().optional().describe("Project UUID. Defaults to configured project."),
1114
- service: z.enum(["classify-report", "fix-worker", "qa-story-runner", "mcp", "webhook", "api", "all"]).optional().describe("Pipeline service to filter (default: all)."),
1114
+ service: z.enum(["fix-worker", "qa-story-runner", "pipeline", "all"]).optional().describe("Pipeline service to filter (default: all)."),
1115
1115
  since: z.string().optional().describe("ISO-8601 timestamp \u2014 return only entries after this time."),
1116
1116
  limit: z.number().optional().describe("Max entries to return (default 50, max 200)."),
1117
1117
  level: z.enum(["info", "warn", "error", "fatal"]).optional().describe("Minimum severity level (default: warn).")
@@ -1469,12 +1469,15 @@ function createMushiServer(config) {
1469
1469
  },
1470
1470
  async (args) => {
1471
1471
  const pid = args.project_id ?? projectId;
1472
- const params = new URLSearchParams();
1473
- params.set("diff_text", args.diff_text);
1474
- if (args.max_tokens !== void 0) params.set("max_tokens", String(args.max_tokens));
1475
- if (args.top_k !== void 0) params.set("top_k", String(args.top_k));
1476
- if (pid) params.set("projectId", pid);
1477
- const data = await apiCall(`/v1/admin/lessons/query?${params}`);
1472
+ const data = await apiCall("/v1/admin/lessons/query", {
1473
+ method: "POST",
1474
+ body: JSON.stringify({
1475
+ diff_text: args.diff_text,
1476
+ ...args.max_tokens !== void 0 ? { max_tokens: args.max_tokens } : {},
1477
+ ...args.top_k !== void 0 ? { top_k: args.top_k } : {},
1478
+ ...pid ? { project_id: pid } : {}
1479
+ })
1480
+ });
1478
1481
  return jsonText(data);
1479
1482
  }
1480
1483
  );
package/dist/server.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TDD_TOOL_CATALOG,
3
3
  TOOL_CATALOG
4
- } from "./chunk-QWZEQYCN.js";
4
+ } from "./chunk-FQ5WR3PS.js";
5
5
 
6
6
  // src/server.ts
7
7
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -605,7 +605,7 @@ function createMushiServer(config) {
605
605
  annotations: annotationsFor("get_pipeline_logs"),
606
606
  inputSchema: {
607
607
  project_id: z.string().optional().describe("Project UUID. Defaults to configured project."),
608
- service: z.enum(["classify-report", "fix-worker", "qa-story-runner", "mcp", "webhook", "api", "all"]).optional().describe("Pipeline service to filter (default: all)."),
608
+ service: z.enum(["fix-worker", "qa-story-runner", "pipeline", "all"]).optional().describe("Pipeline service to filter (default: all)."),
609
609
  since: z.string().optional().describe("ISO-8601 timestamp \u2014 return only entries after this time."),
610
610
  limit: z.number().optional().describe("Max entries to return (default 50, max 200)."),
611
611
  level: z.enum(["info", "warn", "error", "fatal"]).optional().describe("Minimum severity level (default: warn).")
@@ -963,12 +963,15 @@ function createMushiServer(config) {
963
963
  },
964
964
  async (args) => {
965
965
  const pid = args.project_id ?? projectId;
966
- const params = new URLSearchParams();
967
- params.set("diff_text", args.diff_text);
968
- if (args.max_tokens !== void 0) params.set("max_tokens", String(args.max_tokens));
969
- if (args.top_k !== void 0) params.set("top_k", String(args.top_k));
970
- if (pid) params.set("projectId", pid);
971
- const data = await apiCall(`/v1/admin/lessons/query?${params}`);
966
+ const data = await apiCall("/v1/admin/lessons/query", {
967
+ method: "POST",
968
+ body: JSON.stringify({
969
+ diff_text: args.diff_text,
970
+ ...args.max_tokens !== void 0 ? { max_tokens: args.max_tokens } : {},
971
+ ...args.top_k !== void 0 ? { top_k: args.top_k } : {},
972
+ ...pid ? { project_id: pid } : {}
973
+ })
974
+ });
972
975
  return jsonText(data);
973
976
  }
974
977
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mushi-mushi/mcp",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "license": "MIT",
5
5
  "description": "MCP server for Mushi Mushi — triage user-felt bugs, pull evidence (screenshots, console logs, network requests), check blast radius, and dispatch fix PRs, all from your AI coding agent",
6
6
  "type": "module",