- Notifications
You must be signed in to change notification settings - Fork906
fix(cli): fix prompt issue in mcp configure claude-code#17599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR fixes the prompt generation issue in the “mcp configure claude‐code” CLI command. It updates the default coder prompt text, introduces a new report task prompt that is conditionally included, and revises the associated tests to verify the new behaviors.
- Updated expected prompt contents in tests based on agent token and app slug availability.
- Introduced a new variable (reportTaskPrompt) and updated function signatures/calls (injectClaudeMD and promptsBlock) to incorporate the report task prompt.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
cli/exp_mcp_test.go | Adjusted test cases with revised expected MD content and string fixes |
cli/exp_mcp.go | Updated prompt generation logic to conditionally include the report task prompt |
Uh oh!
There was an error while loading.Please reload this page.
22b932a
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
CODER_MCP_CLAUDE_CODER_PROMPT
.