Skip to content

Audit and widen the MCP tool surface #219

Closed

Description

@imshashank

The MCP server covers a lot. packages/mcp-server/src/tools/ has eleven files spanning issues, docs, planning, scrum, taxonomy, workspace, org, identity, admin and support.

It does not cover everything, and the gaps are not obvious until an agent hits one mid-task and has no way forward.

What this issue is

An audit and a fill. It is deliberately open ended and it suits somebody who wants to use Orbit through an agent and fix what they run into.

Step one, which is a contribution on its own: connect an agent, try to do a realistic piece of work end to end, and write down every point where a tool was missing, took the wrong shape, returned too much, returned too little, or had a description the model misread. Post that list here. Somebody else can take the fixes.

Known gaps

Some are already visible from reading the code:

  • Analytics. There is no analytics tool at all. buildChart is a well defined function with a Zod request schema at packages/core/src/analytics/schemas.ts and it would map to a tool almost directly. An agent that can read the board but cannot answer "how did the team do last sprint" is missing the most natural question to ask it
  • Anything behind a dormant table. Webhooks, automation rules, the audit log and API keys have no tools because they have no features. They arrive with those features
  • Attachments and files. Check what exists
  • Notification and inbox state. An agent that can triage should be able to mark things read
  • Bulk operations. Moving forty issues one call at a time is slow and hits rate limits. Where a batch is safe, offer one

Quality, not just coverage

More tools is not automatically better. Past a certain number, tool descriptions start competing for the model's attention and the whole set gets worse. So:

  • Descriptions are the interface. A tool whose description does not say when to use it will be used wrongly. Read the existing ones for the standard
  • Names over ids. The server instructions already say tools take names rather than ids, which is right for a model. Keep it
  • Errors are instructions. A failure should tell the model what to do differently, not just that something went wrong. "No team named Platform. Call list_teams to see the options." is a good error
  • Response size. A tool returning two hundred issues in full burns context for no benefit. Paginate and summarise
  • Scopes. Every read tool needs orbit.read, every write tool needs orbit.write, and a token with neither is refused before any tool is registered. Any new tool follows that

Tests

packages/mcp-server/ has its own suite and its own test database, orbit_test_mcp. Every new tool gets a test, including a permission test proving a member cannot reach another team through it.

Files

  • packages/mcp-server/src/tools/
  • packages/mcp-server/src/server.ts
  • packages/core/ for the operations behind them
  • docs/mcp.md

Good first issue, in its smallest form

Adding one well tested tool, with a good description, is a complete contribution. Say which one you are adding.

Activity

  1. added this to the AI and agents milestone on Aug 8, 2026
  2. added
    enhancement
    good first issue
    help wanted
    p2 medium
    area: mcp
    on Aug 8, 2026
  3. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  4. added
    size: medium
    points: 3
    on Aug 8, 2026
  5. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    Three of the five known gaps have been filled since this was filed. Updating the list so nobody re-files work that is done.

    Re-checked against packages/mcp-server/src/tools/ on 3ba32cb. The directory is now thirteen files, not eleven: github.ts and inbox.ts are new.

    Known gap State
    Analytics Still open. No analytics tool exists. See the note below, because the target moved
    Anything behind a dormant table Still open, and still correctly blocked on the features. #192
    Attachments and files Done. attach_file, list_attachments, list_issue_attachments and read_attachment. #284 added the read side, which was the missing half
    Notification and inbox state Done. inbox.ts from #244 gives list_notifications and mark_notification_read, so an agent that triages can mark things read
    Bulk operations Still open. Every write tool is still one entity per call

    Also new since filing, outside the list here: github.ts from #232 with list_github_repositories, link_github_repository, unlink_github_repository, list_issue_pull_requests and pull_request.

    The analytics gap moved. This issue says buildChart "would map to a tool almost directly", and that was true when written. Since #309, buildChart and chartRequestSchema are no longer what the product uses: the analytics surface runs on analyticsQuerySchema in packages/shared/src/validators/analytics.ts with four lenses, a reporting range, a filter group and a drilldown. So there are now two candidates, and picking between them is most of the design:

    • Wrap buildChart, which is a small tool over an engine the product itself no longer calls.
    • Wrap the lenses, which is what an agent asking "how did the team do last sprint" actually wants, and which comes with formulas() metadata explaining what each number measures. That is more useful to a model and more work.

    The second is the better answer. Worth saying so in a comment here before writing code, as the issue asks.

    Step one is still the most valuable contribution here and nobody has done it. Nothing in this thread is a report from actually driving Orbit through an agent end to end. The fills above all came from other work rather than from the audit this issue asked for, so the audit itself is still entirely open.

  6. SinghAstra commented on Aug 18, 2026

    @SinghAstra
    Contributor

    Hey @imshashank, I'd love to pick this up and fill the Analytics gap!

    I read through your latest update, and I completely agree with your second option: wrapping the actual lenses (analyticsQuerySchema + loadAnalyticsOverview from packages/core/src/analytics/) is far more valuable to an agent answering "how did the team do last sprint?" than reviving the dormant buildChart engine.

    My plan:

    1. Create packages/mcp-server/src/tools/analytics.ts.
    2. Expose a get_analytics_overview tool that maps model-friendly inputs (like range, measure, and optional filters) into the strict AnalyticsQuery AST format.
    3. Pass that into loadAnalyticsOverview(principal, query) and return the formatted cards/outliers back to the model.
    4. Register the tools in tools/index.ts and add the required scoping tests.

    I'm going to start drafting this locally. Let me know if you have any immediate red flags with this approach!

  7. Rahul-pamula commented on Aug 18, 2026

    @Rahul-pamula

    if no one is working on this issue i willl good to work on this issue

  8. imshashank commented on Aug 23, 2026

    @imshashank
    ContributorAuthor

    Thanks both. @SinghAstra is already implementing the analytics slice in #336, so please do not duplicate that work.

    @Rahul-pamula, the end-to-end audit described in step one is still completely unclaimed. The useful contribution there is to connect an agent to Orbit, drive a realistic workflow, and post every missing, misleading, oversized, or awkward tool here before writing code. That can land independently of #336.

    #336 should use Addresses #219, not Closes #219. Analytics is only one slice, while the audit, bulk operations, and feature-dependent tool gaps remain open.

  9. added a commit that references this issue on Aug 29, 2026
    a727dde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mcpenhancementgood first issuehelp wantedp2 mediumpoints: 3size: medium

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions