Skip to content

MCP: coding_repos_list returns mismatched instanceId, plus intermittent tool-registration/schema loop #692

Description

@proagentstore

Summary

Two distinct faults observed via the PAGS MCP server on 16 Aug 2026.


Fault 1 — Wrong instance attribution in coding_repos_list

Calling coding_repos_list with a specific instance_id returned repo records whose instanceId field belonged to a different instance than the one requested.

Observed across five concurrent calls for instances:

  • f5e577a7-7147-443b-a491-795f1582544d
  • 0f75dc66-b1f4-46df-898a-429868d39f45
  • 5ef85042-e270-429d-8eb4-dd1d8d4fbbf6
  • 00b91906-6613-4ef1-b16b-0fc1b3d097d1
  • 73c4aced-d7a3-4dc4-84fc-48fe7c284d09

Each response carried a repo tagged to a different instance in the batch. Sequential single calls appear self-consistent, so the suspect mechanism is response routing/correlation under concurrency — replies from one request being delivered to the wrong concurrent caller.

Impact: Callers cannot trust which instance owns which repo, blocking automated rename or cleanup workflows.


Fault 2 — Intermittent tool-registration / schema loop

Tools that worked earlier in the same session became uncallable mid-session, cycling through the following error sequence:

  1. "has not been loaded yet" — with a valid schema echoed back in the error
  2. "tool not found"
  3. "not registered"
  4. Rejection of a call using the exact parameter names from the schema the error itself supplied

Affected tools: coding_repos_list and chat_with_instance — pointing to the MCP layer rather than a fault in any individual tool.

Additionally, tool naming flipped mid-session between two forms:

  • mcp_<uuid>_<name>
  • ProAgentStore:<name>

Steps to reproduce (Fault 1)

  1. Issue five concurrent coding_repos_list calls, each with a distinct instance_id from the list above.
  2. Inspect the instanceId field on each returned repo record.
  3. Observe that the instanceId in the response does not match the instance_id passed in the request.

Steps to reproduce (Fault 2)

  1. Open an MCP session and call any tool successfully.
  2. Continue calling tools in the same session; observe intermittent "not loaded / not found / not registered" errors even for tools called successfully moments before.
  3. Note that the error messages themselves echo a valid schema, yet a call using those exact parameter names is also rejected.

Environment

  • Date observed: 16 Aug 2026
  • Server: PAGS MCP server
  • Both faults reproducible in the same session

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2: correctnessReal defect, no live harm today — inert fields, miscounts, missing guardsbackendBackend / Worker / API workbugSomething isn't workingcoderThe Coder wedge agent (#68) — Engine, Pilot, Co-pilot, Loop, OverseermcpMCP server surface — the operator's instrument panel, not the product

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions