Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

fix(fold): keep mcp_schema_gate at the 600-line ceiling

Cursor Agentda62901da14c
diff --git a/src/mcp_schema_gate.zig b/src/mcp_schema_gate.zig
index 5d9a5f46..035f68b7 100644
--- a/src/mcp_schema_gate.zig
+++ b/src/mcp_schema_gate.zig
@@ -508,9 +508,7 @@ pub fn descWithListing(arena: Allocator, all: []const mcp.Tool) ![]const u8 {
if (native_fold.anyFolded() and !@import("no_local_tools.zig").lean) {
for (native_fold.folded) |name| {
if (!native_fold.isFolded(name)) continue;
- // rlm never rides the meta desc: listing it on showcase would
- // rewrite the tools head (ADR 0011 / 0030). Discovery is the tail.
- if (std.mem.eql(u8, name, "rlm")) continue;
+ if (std.mem.eql(u8, name, "rlm")) continue; // tail-only; listing rewrites the head
if (!g_stable_catalog and native_fold.isLoaded(name)) continue;
if (tool_surface.hideBuiltin(name)) continue;
try natives.append(arena, name);