Skip to content

Issue and PR MCP tools ignore a project's tracked repositories: link_issue, create_issue and pull_request_read fail when the project root has no remote #45382

Backlog

Description

@nabilfatih

What happened

In a multi-repository project, the agent-facing issue and pull request MCP tools refuse every GitHub repository that a tracked folder holds:

  • link_issue with url: https://github.com/<owner>/<repo>/issues/<n> (and with an explicit projectId) fails with:

    Issue operation resolveUrl failed: No project in T3 Code is on github.com. Add any github.com project to read its issues.

  • create_issue with scope: "<owner>/<repo>" fails with:

    Project mcp: was not found or has no issue tracker.

  • pull_request_read with repository and number fails with:

    This thread's project has no recognised remote. Pass host or url.

    The tool schema accepts neither host nor url. Passing url returns Unknown argument "url".

The project's root folder is a plain folder that groups several GitHub checkouts, and each checkout is listed in the project's trackedFolders. The project's repositoryIdentity is null because the root has no remote. Every tracked folder has an origin on github.com. link_pull_request and watch_pull_request with a full url work on the same thread, so the host is reachable.

The only workaround is a separate single-repository project for each repo. That defeats the purpose of a project that groups the repositories it works on together.

Expected

Issue and PR tools should resolve a repository from any of the project's tracked folders (or from the full URL they are given) when the project root has no identity, as link_pull_request already does.

Steps to reproduce

  1. Create a folder that is not a git repository. Put two checkouts of different GitHub repositories, A and B, in it (here they are symlinks into another folder, and are added to trackedFolders explicitly).
  2. Add the folder as a project.
  3. From a thread in that project, call link_issue with an issue URL of repository A, or pull_request_read with repository: "<owner>/A".
  4. Both fail with the errors above.

Related: #40397 (composer PR picker, same root cause: only activeProject.repositoryIdentity is consulted), #40350 (review guides in tracked repositories).

Version

0.1.14-nightly.20261128.5399 (Desktop, local server), macOS 27.2.1 arm64

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