Skip to content

Regression: MCP prompts are no longer listed after connecting MCP server #28579

Closed as not planned

Description

@mustafagoksever

Description

Previously, when an MCP server was connected to OpenCode, the prompts exposed by the MCP server were listed and could be selected/used from OpenCode.

In the current version, the MCP server connects successfully, but MCP prompts are not listed anymore.

Tools may still work, but prompts are missing from the UI/autocomplete/listing with /. This looks like a regression because the same MCP server setup used to show the prompts in older OpenCode versions.

Expected behavior

When an MCP server exposes prompts, OpenCode should list those prompts after the MCP server is connected.

For example, prompts should be visible/usable from the relevant prompt list/autocomplete, similar to the previous behavior.

Actual behavior

The MCP server is connected, but the prompts exposed by the MCP server are not shown/listed.

Steps to reproduce

  1. Configure an MCP server that exposes one or more prompts.
  2. Start OpenCode with this MCP server configured.
  3. Verify that the MCP server is connected.
  4. Try to list/select/use MCP prompts.
  5. Observe that MCP prompts are not listed.

Regression

Yes. This used to work in older OpenCode versions. After upgrading to the current version, MCP prompts are no longer listed.

MCP server details

  • MCP server type: http
  • MCP server framework: spring ai
  • MCP server exposes:
    • Tools: yes
    • Prompts: yes

OpenCode version

1.15.5

Operating system

Windows

Terminal

Windows Terminal

Plugins

No response

OpenCode version

1.15.5

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 21, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    While your issue describes a regression where prompts used to work and no longer appear (rather than a server not implementing prompts/list at all), the root cause may overlap. Please review the above issues to see if they address your problem or if this is a distinct regression.

  2. Arcadi4 commented on May 21, 2026

    @Arcadi4
    Contributor

    Cannot reproduce under 1.15.16, perhaps this is already fixed?

    Image
  3. kagura-chen commented on May 21, 2026

    @kagura-chen
    Contributor

    I think this regression is caused by Command state being cached via InstanceState (a ScopedCache with infinite TTL) and never invalidated when MCP clients connect or their prompts change. The MCP.ToolsChanged bus event exists but no subscriber invalidates the Command cache, so if MCP prompts aren't available at Command init time, they never appear.

    I'll work on a fix that subscribes to MCP state changes and invalidates the Command cache accordingly.

  4. mustafagoksever commented on May 21, 2026

    @mustafagoksever
    Author

    MCP prompts are listed correctly when the MCP server is enabled during OpenCode startup. But when the same MCP server is enabled manually after startup, the prompts are not listed.

  5. github-actions commented on Jul 21, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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