Repository navigation
feat(mcp): add an opt-in lean tool profile to the stdio bridge - #213
Open
Pushkraj-Space wants to merge 1 commit into
Open
Pushkraj-Space wants to merge 1 commit into
Pushkraj-Space wants to merge 1 commit into
Conversation
`mcp stdio --tool-profile lean` serves five composite tools instead of the full upstream surface: intercom_peers, intercom_send, intercom_inbox, intercom_task and intercom_channel. Each forwards to the existing Bus tools with the execution's own permissions, builds its input schema from the advertised upstream schemas, and refuses to start if an underlying tool is missing. intercom_inbox acknowledges what it returns by default; `acknowledge: false` defers that to a later call with `messageIds`. `harness config --tool-profile lean` adds the flag to generated host configuration and narrows the Copilot and Gemini tool filters to the five names. The Pi adapter accepts the lean surface when its bridge opts in. The default `full` profile is unchanged. Closes october-dev#206 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
🤖 Agentbox PR audit: needs Harsh's inputQuestions
What this PR changes
Answer in a comment on this PR; the next daily audit reads it. Full audit (Claude (claude-opus-5-5, xhigh) × Codex (gpt-6.1-sol, xhigh), 1 turns, commit b26f837)PR audit: #213 — feat(mcp): add an opt-in lean tool profile to the stdio bridgeHead: b26f837 Sign-off
Decisionneeds-input — the PR adds a second, merged tool surface and changes what "acknowledged" means in it. It is based on a request from an outside user that nobody at October has looked at, and no product decision covers either change. Should this exist?
What changes (plain language)
FindingsBlocking
Non-blocking
Fix plann/a Message to the developern/a Questions for Harsh
Verification
Audit log
Automated review by Harsh's agentbox: an AI reviewer questioned whether this PR should exist, so it went to Harsh before any detailed review. A second reviewer has not checked it; a full review follows once Harsh answers. |
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 #206
What changes
agentintercom mcp stdio --tool-profile leanis a new option that offers the host five combined tools instead of the full list of upstream tools. The defaultfullprofile doesn't change: a test checks thattools/listis byte-for-byte the same with and without--tool-profile full.intercom_peersget_node_status+list_peers, merged into one resultintercom_sendmessage_peer;replyTosetsmode: responseandresponseTointercom_inboxcheck_inbox, thenacknowledge_messagesfor the returned IDs (the default).acknowledge: falsedefers acknowledgement; a later call with onlymessageIdsacknowledges themintercom_taskaction: list / add / claim / complete / progressintercom_channelaction: list / create / read / post / subscribetools/listis 2,774 bytes in lean mode against 11,321 bytes in full, about 25%. This comes from the integration test log on this branch.harness config --tool-profile leanadds the flag to generated host configs. For Copilot CLI and Gemini CLI it also narrows their tool filters (tools/includeTools) to the five names. The flag is inserted into the template before values are filled in, so a display name can't be mistaken for a flag.Docs:
adapters/README.mdgains a "Stdio tool profiles" section, and the usage text inmain.golists the flag.Notes for review
intercom_inboxacknowledges by default, as the issue's table specifies. Pulling and acknowledging are separate Bus operations, so if acknowledgement fails the messages are left delivered but not acknowledged. The README says so.ask_user,publish_output, task release, progress history and attachments are only in the full profile. The README points to it.Follow-up
--unread-digest(#212) with--tool-profile leanis integrated in a follow-up after #212.Tests
Run locally on this branch:
go vet ./adapters/ ./cmd/agentintercom/andgit diff --checkare clean.go test -race -count=1 ./adapters/ ./cmd/agentintercom/passes.node --test scripts/pi-adapter.test.mjspasses (4 tests).New tests:
TestMCPStdioLeanProfileruns the real bridge against a test daemon and covers:replyTolinking;TestLeanInboxStopsOnUpstreamErrorcovers failures in bothcheck_inboxandacknowledge_messages.TestLeanProfileRequiresItsUnderlyingToolscovers a missing upstream tool and an invalid profile.full(no change) and withlean(flag present, plus the Copilot and Gemini filters), and rejects unknown profiles.🤖 Generated with Claude Code