Skip to content

Using prompt from MCP server doesn't trigger tool calls on the first message #5762

Open
@04cfb1ed

Description

@04cfb1ed

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to assistant in Continue hub:

Description

I'm trying to use a prompt loaded in an MCP server to execute steps.

The MCP prompt is used with the "/" and is loaded correctly, but once the tool calls are received from the model, continue doesn't execute them. Adding a second message allows executing the process, but I want the process to run automatically without additional user intervention.

If the prompt message is "written" manually, the tool calls are executed immediately

Image

Image

I'm using the example MCP server provided here

#5517 (comment)

@mcp.prompt()
def debug_routine() -> str:
    return """
Execute the following steps

1. Call terminal tool and execute a ls command
2. Call terminal tool and execute a git status
"""

To reproduce

Tested with 1.1.37 (pre-release) and 1.0.7, 1.0.11

Log output

Metadata

Metadata

Labels

area:mcpRelates to Model Context Protocol (MCP)kind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions