Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
johnstcn merged 3 commits intomainfromcj/exp-mcp-update-prompt
Apr 29, 2025

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedApr 29, 2025
edited
Loading

  • Updates default Coder prompt.
  • Skips the directions to report tasks if the pre-requisites are not available (agent token and app slug).
  • Adds the capability to override the default Coder prompt viaCODER_MCP_CLAUDE_CODER_PROMPT.

@johnstcnjohnstcn self-assigned thisApr 29, 2025
@johnstcnjohnstcn requested a review fromCopilotApril 29, 2025 10:55
Copy link
Contributor

@CopilotCopilotAI left a 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.

FileDescription
cli/exp_mcp_test.goAdjusted test cases with revised expected MD content and string fixes
cli/exp_mcp.goUpdated prompt generation logic to conditionally include the report task prompt

@johnstcnjohnstcn merged commit22b932a intomainApr 29, 2025
31 checks passed
@johnstcnjohnstcn deleted the cj/exp-mcp-update-prompt branchApril 29, 2025 14:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@bpmctbpmctbpmct approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@johnstcn@bpmct

[8]ページ先頭

©2009-2025 Movatter.jp