Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/mcp/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ import { loadUpstreamStatus } from "../upstream/ruleset";
import { simulateOpenPrPressure, type OpenPrPressureInput } from "../services/open-pr-pressure-scenarios";
import { buildFindingTaxonomyDocument, FINDING_TAXONOMY_URI } from "../review/finding-taxonomy";
import { buildEnrichmentAnalyzersTaxonomyDocument, ENRICHMENT_ANALYZERS_URI } from "../review/enrichment-analyzers-taxonomy";
import { buildSlopRulesDocument, SLOP_RULES_URI } from "../review/slop-rules-taxonomy";

type AppContext = Context<{ Bindings: Env }>;
type ToolPayload = {
Expand Down Expand Up @@ -2208,26 +2207,6 @@ export class GittensoryMcp {
}),
);

// #2237 — read-only catalog of the deterministic slop rule codes + score bands for MCP discovery.
server.registerResource(
"gittensory_slop_rules",
SLOP_RULES_URI,
{
title: "Gittensory Slop Rules",
description: "Deterministic slop-signal catalog: rule codes with their point weights (PR + issue) and the clean/low/elevated/high score bands.",
mimeType: "application/json",
},
async () => ({
contents: [
{
uri: SLOP_RULES_URI,
mimeType: "application/json",
text: JSON.stringify(buildSlopRulesDocument(), null, 2),
},
],
}),
);

return server;
}

Expand Down
46 changes: 0 additions & 46 deletions src/review/slop-rules-taxonomy.ts

This file was deleted.

6 changes: 6 additions & 0 deletions test/unit/mcp-discovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ describe("MCP resource discovery", () => {
}
});

it("does not expose deterministic slop weights as a discoverable resource", async () => {
const { resources } = await client.listResources();
const uris = resources.map((r) => r.uri);
expect(uris).not.toContain("gittensory://slop-rules");
});

it("can read the changelog resource without authentication", async () => {
const result = await client.readResource({ uri: "gittensory://changelog" });
expect(result.contents).toHaveLength(1);
Expand Down
43 changes: 0 additions & 43 deletions test/unit/mcp-slop-rules.test.ts

This file was deleted.

33 changes: 0 additions & 33 deletions test/unit/slop-rules-taxonomy.test.ts

This file was deleted.