Skip to content

find_projects returns only slugs, so agents can't list project IDs or platforms #2446

Open

Description

@sentry-junior

Problem

An agent asked to list projects with their IDs and platforms has no MCP tool that returns those fields.

  • find_projects output is slugs only: findProjectsOutputSchema has { slug } per project (packages/mcp-core/src/tools/catalog/find-projects.ts:18-26), and the handler maps each project to { slug: project.slug } (:84). The tool description also says it "Returns project slugs" (:33).
  • The API client already parses the fields the agent wanted: ProjectSchema has id, name and platform (packages/mcp-core/src/api-client/schema.ts:89-100). The tool drops them.
  • No other catalog tool reads a single project's details, so there's no second hop to get them.
  • docs/contributing/tool-responses.md:55 lists resource identity (name, ID, slug) as data a tool result should include.

Why it isn't a one-line fix

Adding id, name and platform to the output is the obvious fix, but output schemas are closed today, so a client that cached the old tools/list would reject every find_projects response. That's #2293. #2359 / #2360 deliberately kept the output slug-only for this reason.

Suggested fix

  1. Land Closed outputSchemas make every added output field break clients holding an older tools/list #2293 (open output schemas, additive-only output fields).
  2. Then add id, name and platform to each find_projects result and update the description. Test: a find_projects call against the MSW fixture returns the fixture's id and platform.

Reports

  • MCP-SERVER-GT4 (2026-11-20): task was "list all accessible projects with IDs and platforms", feedback.kind=missing, impact=blocked, hosted server 0.42.0, HTTP transport. The client's sampled spans around the report show search_errors, find_dropped_events and find_releases calls; no find_projects span was sampled.

  • MCP-SERVER-GTY (2026-11-23): same automated client as GT4, task again "list project IDs and platforms". Sampled find_projects call with query=<slug>, fresh=true returned {"projects":[{"slug":"<slug>"}]}.

Report count: 2 (one caller)

via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_de116d40ec840217e63d672fce1318cd, automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_057ee70189236a4b8e06571467fdeca8.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 20, 2026

    @linear-code
  2. sentry-junior commented on Nov 23, 2026

    @sentry-junior
    ContributorAuthor

    Second report: user feedback MCP-SERVER-GTY (2026-11-23, hosted server 0.42.0, HTTP, feedback.kind=broken, impact=friction). Task was again "list project IDs and platforms". It comes from the same automated Python client as MCP-SERVER-GT4 (same client.id; it runs daily around 07:00 UTC).

    This time the find_projects call was sampled:

    • Input: query: "<project slug>", fresh: true
    • Result: {"projects":[{"slug":"<project slug>"}],"hasMore":false,"nextCursor":null}

    So narrowing the search and bypassing the cache don't help. The handler still maps each project to { slug } only (packages/mcp-core/src/tools/catalog/find-projects.ts:84 on main @ 8a4702e), and the output schema is still slug-only (:18-26).

    The blocker is unchanged: #2293. Its PR #2450 (open output schemas) is open and not a draft, mergeable, with green checks. Once it lands, adding id, name and platform here is a small follow-up.

    The same feedback also mentions search_errors and exact date windows. That part isn't this issue, and the sampled calls don't show the MCP dropping dates. Both sampled search_errors calls in the session came from the caller with query: "" and period: "14d". Earlier prose queries from this caller with explicit ISO bounds and no period ran with the correct start/end. Caller-supplied absolute windows are #1215.

    Report count: 2 (one caller)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions