Skip to content

[feature]: MCP tool responses should include links to issues, comments and docs #553

Closed

Description

@Ayaan2907

What is painful today

An agent that creates or updates something through the Orbit MCP server cannot hand the user a link to it. Ask Claude Code or Cursor to file an issue, comment on one, or write a doc, then ask for the link: the agent reports that the tool response carries no URL, because it does not. The user has to open Orbit and search for the identifier by hand.

The cause is in packages/mcp-server:

  • handleMcpRequest receives publicUrl (apps/web/src/app/mcp/route.ts passes publicAppUrl()), but only uses it for the WWW-Authenticate header on a 401. dispatch, createOrbitMcpServer and registerTools never receive it, so no tool can build an absolute link.
  • @orbit/shared/utils already exports issueUrl, issueCommentUrl, docUrl and docCommentUrl. The MCP package imports none of them.
  • views.ts IssueView, add_comment, edit_comment (returns only the comment id), list_issue_comments, describeDoc, comment_on_doc and edit_doc_comment all return ids with no link.

What you would like to happen

Every issue, issue comment, doc and doc comment in an MCP tool response carries an absolute url on the app origin, for example https://orbit.example.com/issue/ENG-42 or https://orbit.example.com/issue/ENG-42#comment-<id>. The server instructions say so, so a client model knows to share it.

Projects, cycles and views can follow in a separate change.

Which part of Orbit

MCP server and AI tooling

How you work around it now

Copy the identifier out of the agent's reply and search for it in the app.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions