Repository navigation
MCP claim: return overlaps as machine-readable JSON - #44
Open
shubhranillayek wants to merge 1 commit into
Open
shubhranillayek wants to merge 1 commit into
shubhranillayek wants to merge 1 commit into
Conversation
The MCP `claim` tool returned a plain sentence, so a client had to
search the text for OVERLAP to know a clash happened. It now returns
a small JSON string {"claimed": true, "message": "<unchanged human
sentence>", "overlaps": [{"agent", "project", "summary", "files"}]},
so a client can branch on `overlaps` while the human sentence stays
intact inside `message` (a plain-text search for OVERLAP still finds
it). The `refused:` error path is unchanged.
Closes MaxonT#25
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #25
The MCP
claimtool returned a plain sentence, so a client had to search the text forOVERLAPto know a clash happened. It now returns a small JSON string:{"claimed": true, "message": "<unchanged human sentence>", "overlaps": [{"agent": "codex", "project": "api", "summary": "SDK upgrade", "files": ["app/payments/"]}]}json.loadsthe result and branch onoverlapswithout parsing prose.message, so existing agents that text-search forOVERLAPkeep working, and therefused:error path is unchanged.json); no new dependencies.How I checked it
test_claim_returns_machine_readable_jsonintests/test_mcp_server.py: no-overlap claim parses toclaimed: truewith emptyoverlaps; overlapping claim lists the other agent, project, summary and files, and the message still containsOVERLAP with codex.python3 -m pytest -q tests: 476 passed, 1 skipped (MCP SDK not installed here), 14 subtests passed.python3 tools/privacy_scan.py: 0 hits.AI assistance disclosure (per CONTRIBUTING): an AI tool helped write this change.