Repository navigation
MCP serve: opt-in toolsets (leases, experiments, analytics) off the default surface - #7175
Merged
Merged
Conversation
… t… [ORB-20234] MCP serve: opt-in toolsets (leases, experiments, analytics) off the default surface Planned-By: claude-opus-5-5
danieljhkim
added a commit
that referenced
this pull request
Nov 6, 2026
…RB-22211] (#8163) * fix: Keep CI sweeps working when compiler repair tasks are claimed [ORB-22211] * fix: task.show delivery field fails for never-delivered tasks [ORB-22214] (#8184) Co-authored-by: orbit[muse-spark-1.3-contributor] <[email protected]> * chore: [auto-task] Design sync — reconcile design docs with task state … [ORB-22266] (#8185) [auto-task] Design sync — reconcile design docs with task state and code Co-authored-by: orbit[gpt-6-luna] <[email protected]> * chore: [auto-task] Validate the oldest workspace documentation [ORB-22269] (#8187) Co-authored-by: orbit[claude-haiku-5-5] <[email protected]> * fix: [code-review] Make the MCP selector audit cover every opt-in tools… [ORB-22280] (#8188) [code-review] Make the MCP selector audit cover every opt-in toolset Fixes: 8127bfd ("feat: MCP serve: opt-in toolsets (leases, experiments, analytics) off t… [ORB-20234] (#7175)") Regression-From: ORB-20234 Regression: broke_existing; escape=no_test; severity=low Co-authored-by: orbit[muse-spark-1.3-contributor] <[email protected]> * fix: [qa-sweep] task lint sweep tells the operator to re-run --restore-… [ORB-22281] (#8189) [qa-sweep] task lint sweep tells the operator to re-run --restore-pruned when nothing is restorable Fixes: fbeb4b1 ("feat: [distributed-drain v1] Preserve declared missing-file context thr… [ORB-12490] (#2274)") Regression-From: ORB-12490 Regression: defect_in_new; escape=no_test; severity=low Co-authored-by: orbit[gpt-6-luna] <[email protected]> * refactor: Remove two unused orbit-core convenience methods [ORB-22286] (#8190) Co-authored-by: orbit[claude-haiku-5-5] <[email protected]> * fix: Fix flaky test: concurrent_mutations_apply_once_while_a_live_serve… [ORB-22285] (#8191) Fix flaky test: concurrent_mutations_apply_once_while_a_live_server_refuses_preflight (1 flakes in 14 days) Co-authored-by: orbit[gpt-6.1-terra] <[email protected]> * refactor: Move ApplicationPort's implementation from runtime to composi… [ORB-22288] (#8193) Move ApplicationPort's implementation from runtime to composition Co-authored-by: orbit[gpt-6.1-terra] <[email protected]> * docs: refresh the README GIF and site hero video from the current dashboard [ORB-22282] (#8194) New tour built with HyperFrames from the live ws_orbit dashboard, captured 2026-11-06: queue, auto-drain, task record, a pull-request run, auto-tasks, metrics, experiments, crew ranking and the codebase view. The site's video and poster move to orbit-dashboard-tour-v4 to match their source set in the marketing repo and so a cached v3 cannot be served. The README alt text, the video's aria-label and caption, and the DESIGN.md source pointer now describe the new cut. Co-authored-by: Claude Opus 5.5 <[email protected]> * fix: orbit-core lib.rs crate docs still say the runtime module implemen… [ORB-22296] (#8195) orbit-core lib.rs crate docs still say the runtime module implements the application port Fixes: aa01cbe ("refactor: Move ApplicationPort's implementation from runtime to composi… [ORB-22288] (#8193)") Regression-From: ORB-22288 Regression: unclassified; escape=no_test; severity=low Co-authored-by: orbit[gpt-6-luna] <[email protected]> * chore: [auto-task] Validate the oldest workspace documentation [ORB-22294] (#8196) Co-authored-by: orbit[gpt-6-luna] <[email protected]> --------- Co-authored-by: orbit[claude-opus-5-5] <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: danieljhkim <[email protected]>
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.
Task
ORB-20234 — MCP serve: opt-in toolsets (leases, experiments, analytics) off the default surface
Description
Why
orbit mcp serveexposes 67 tools by default, and every one costs context in each agent session; providers without deferred tool loading pay for all the schemas up front. Several groups are operator or occasional surfaces.Daniel (2026-10-30): "I think leases can be an opt-in, i.e. "orbit mcp serve --lease". and "Agents & crews" tools aren't needed". On experiments, he asked whether they should be an opt-in flag or a plugin. Agreed: a flag, not a plugin. Experiment assignment runs in core admission and crew routing, writes task fields, and has a dashboard view. The plugin protocol is outside the compat window and cannot own admission.
Daniel also approved (2026-10-30) a decision-channel toolset for
decision_submitanddecision_digest. Both refuse any agent session; only the bound channel plugin (through its callback session) or the operator may call them. Agents keepdecision_listanddecision_show.Design
Use one registry-derived mechanism instead of a flag per feature:
orbit mcp serve --toolset <a,b,...>, also settable from config.Default surface: tasks, workflows/runs/pipeline/agent_invoke, automation (auto-task, routine),
decision_list/decision_show, codebase, friction, ui/visual, search, command_exec, workspace_list.Opt-in toolsets:
leases:orbit.lease.*. No shipped skill, activity or auto-task calls them today.experiments:orbit.experiment.*.analytics:orbit.agents.*,orbit.orchestrator.show,orbit.orchestrator.scorecard,orbit.crew.ladder. These leave the default; the CLI keeps them.decision-channel:orbit.decision.submit,orbit.decision.digest. A plugin's callback session keeps reaching them regardless of the serve toolset. Check how the decision-channel plugin (ws_orbit-decision-mail) connects before filtering, so channel delivery does not break.Constraints:
mcp servelisting and dispatch are filtered. Activity tool baselines,required_toolsand plugin callback sessions must keep working. Example:crew-ladder-review(crates/orbit-core/assets/auto_tasks/crew-ladder-review.yaml) requiresorbit.crew.ladder,orbit.experiment.listandorbit.experiment.readout. Confirm the activity path does not depend on the serve surface before filtering.mcp_tools_list, tool_list), the orbit skill'sreferences/tool-surface.md(plus the plugin/skills sync), CLI docs and the QA inventory.Acceptance Criteria
orbit mcp servewith no toolset flag lists none of the lease, experiment, agents, orchestrator-scorecard/show, crew-ladder, decision-submit or decision-digest tools, and still lists decision list/show; the regenerated mcp_tools_list golden reflects the drop.--toolset leases,experiments,analytics,decision-channel(and the config equivalent) restores exactly those groups; membership is derived from the tool registry, with no per-tool list in serve code.Execution Summary
Click to expand
MCP serve now has opt-in toolsets. Default surface: 26 canonical tools (was 42). Opt-in: leases (8 lease tools), experiments, analytics (agents scorecard/show, orchestrator scorecard/show, crew ladder), decision-channel (decision submit/digest; decision list/show stay default).
Design: McpToolset/McpToolsetSelection in orbit-types; McpToolRules.toolset (serde default, not advertised). The registry assigns a toolset per noun at registration (register_noun_in_toolset); host-routed callback tools (decision submit/digest) map to decision-channel. orbit_mcp::with_mcp_toolsets wraps any McpHost: it filters list and dynamic definitions and refuses withheld calls with toolset_not_enabled {tool, toolset, enable:{flag, config_key}}. It wraps workspace-bound serve/listen (compose_server) and the federated mux, which filters remote rows through its canonical definitions. Selection: --toolset on serve/listen, else global config machine.mcp.toolsets (array, validated), else default;
allenables every toolset. --mode remote forwards the resolved selection as --toolset to the destination. An Orbit SSH route (--remote-caller-machine-id without --toolset) serves all toolsets because its caller filters, so mux, worker and drain routes and old/new mixes keep working. orbit tool list/show JSON gained mcp_toolset.Acceptance criteria:
Validation:
Reconciliation: existing tests that assumed the full surface now opt in explicitly (agents_show over MCP uses --toolset analytics; error-path operator session uses --toolset decision-channel; governed_session_admission sets machine.mcp.toolsets = ["all"]). scripts/qa-full-sweep-inventory.json drops the 16 mcp: claims for opt-in tools (each scenario keeps its cli: surface) and updates the reviewed mcp digest. Scratch (QA store, ssh stub, logs) stays under ignored .orbit/tmp. Every tracked change is deliverable.
Risks and deviations:
Validation
Branch Freshness
origin/agent-mainorbit/ORB-20234-8fed20c3