OpenCode fetches all available prompts from MCPs on initialization (in addition to when the user invokes a prompt with /) #7773

Open
opened 2026-02-16 18:08:11 -05:00 by yindo · 0 comments
Owner

Originally created by @woweow on GitHub (Jan 27, 2026).

Originally assigned to: @thdxr on GitHub.

Description

Overview

My company hosts an MCP server that provides prompts over MCP. We noticed something strange in our metrics because we saw a massive spike in usage, equally across all prompts.

Problem

This is coming from OpenCode. Upon starting a new session, OpenCode is fetching ALL prompts on the server.

Then, when a user wants to run one of the remote prompts and types in /<server-name>:<prompt-name> and presses enter, OpenCode once again makes a request to fetch the prompt from the server.

Expected behavior

OpenCode should fetch the prompt from the server when the user types / and then hits enter to run that prompt. This is necessary because prompts over MCP support arguments, and the server is responsible for injecting those arguments into the prompt and returning the fully constructed prompts.

Prompts should not be fetched when OpenCode initializes.

Plugins

No response

OpenCode version

latest

Steps to reproduce

  1. Add an MCP server which hosts prompts
  2. open OpenCode
  3. monitor traffic and see that a GET request fired for every prompt on the server
  4. run one of the prompts manually
  5. monitor traffic and see that a new GET request fired to the server for that prompt

Screenshot and/or share link

No response

Operating System

macos

Terminal

terminal

Originally created by @woweow on GitHub (Jan 27, 2026). Originally assigned to: @thdxr on GitHub. ### Description ## Overview My company hosts an MCP server that provides prompts over MCP. We noticed something strange in our metrics because we saw a massive spike in usage, equally across all prompts. ## Problem This is coming from OpenCode. Upon starting a new session, OpenCode is fetching ALL prompts on the server. Then, when a user wants to run one of the remote prompts and types in `/<server-name>:<prompt-name>` and presses enter, OpenCode once again makes a request to fetch the prompt from the server. ## Expected behavior OpenCode should fetch the prompt from the server when the user types / and then hits enter to run that prompt. This is necessary because prompts over MCP support arguments, and the server is responsible for injecting those arguments into the prompt and returning the fully constructed prompts. Prompts should _not_ be fetched when OpenCode initializes. ### Plugins _No response_ ### OpenCode version latest ### Steps to reproduce 1. Add an MCP server which hosts prompts 2. open OpenCode 3. monitor traffic and see that a GET request fired for every prompt on the server 4. run one of the prompts manually 5. monitor traffic and see that a new GET request fired to the server for that prompt ### Screenshot and/or share link _No response_ ### Operating System macos ### Terminal terminal
yindo added the bug label 2026-02-16 18:08:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7773