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): modifyexp mcp configure to also read claude API key from CLAUDE_API_KEY env#17229

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-configure-api-key-arg
Apr 3, 2025

Conversation

johnstcn
Copy link
Member

Currently you have to setCODER_MCP_CLAUDE_API_KEY, which can be obnoxious.

@johnstcnjohnstcn self-assigned thisApr 2, 2025
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 updates the CLI configuration for Claude Code to support reading the API key from the canonical CLAUDE_API_KEY environment variable rather than only CODER_MCP_CLAUDE_API_KEY.

  • Renames apiKey to claudeAPIKey and introduces a deprecated alias variable (claudeAPIKeyAlt) for backwards compatibility.
  • Updates warning messages and command flag configurations to reflect the new canonical environment variable.
Comments suppressed due to low confidence (2)

cli/exp_mcp.go:144

  • Consider implementing a fallback assignment where if claudeAPIKey is empty but claudeAPIKeyAlt is provided, claudeAPIKey is set to claudeAPIKeyAlt. This change would allow users to rely on the deprecated alias during the transition period.
if claudeAPIKey == "" && claudeAPIKeyAlt == "" {

cli/exp_mcp.go:114

  • [nitpick] Consider renaming 'claudeAPIKeyAlt' to 'deprecatedClaudeAPIKey' to more clearly indicate that this alias is temporary and will be removed in a future version.
claudeAPIKeyAlt     string

johnstcn reacted with thumbs up emoji
@johnstcnjohnstcn changed the titlefix(cli): exp mcp configure: also read claude API key from canonical CLAUDE_API_KEY envfix(cli): modifyexp mcp configure to also read claude API key from CLAUDE_API_KEY envApr 2, 2025
@johnstcnjohnstcn merged commit4aa45a5 intomainApr 3, 2025
29 checks passed
@johnstcnjohnstcn deleted the cj/exp-mcp-configure-api-key-arg branchApril 3, 2025 08:45
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 3, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@hugodutkahugodutkahugodutka approved these changes

@kylecarbskylecarbsAwaiting requested review from kylecarbs

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@johnstcn@hugodutka

[8]ページ先頭

©2009-2025 Movatter.jp