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

chore: allow MCP to use reduced agent token scope#17858

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
ThomasK33 merged 3 commits intorelease/2.22fromcherry-pick-release/2.22
May 15, 2025

Conversation

ThomasK33
Copy link
Member

johnstcnand others added3 commitsMay 15, 2025 18:08
This test was failing inside a Coder workspace due to`CODER_AGENT_TOKEN` being set.Signed-off-by: Thomas Kosiewski <tk@coder.com>
Part of#17649Signed-off-by: Thomas Kosiewski <tk@coder.com>---# Allow MCP server to run without authenticationThis PR enhances the MCP server to operate without requiring authentication, making it more flexible for environments where authentication isn't available or necessary. Key changes:- Replaced `InitClient` with `TryInitClient` to allow the MCP server to start without credentials- Added graceful handling when URL or authentication is missing- Made authentication status visible in server logs- Added logic to skip user-dependent tools when no authenticated user is present- Made the `coder_report_task` tool available with just an agent token (no user token required)- Added comprehensive tests to verify operation without authenticationThese changes allow the MCP server to function in more environments while still using authentication when available, improving flexibility for CI/CD and other automated environments.
Change-Id: I67d271a426be98270ff4b3114466e16718e9a7d6Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33ThomasK33 changed the titlecherry pick: Allow MCP to use reduced agent token scopechore: cherry pick - Allow MCP to use reduced agent token scopeMay 15, 2025
@ThomasK33ThomasK33 changed the titlechore: cherry pick - Allow MCP to use reduced agent token scopechore: allow MCP to use reduced agent token scopeMay 15, 2025
@ThomasK33ThomasK33 merged commit4a70bdc intorelease/2.22May 15, 2025
45 of 46 checks passed
@ThomasK33ThomasK33 deleted the cherry-pick-release/2.22 branchMay 15, 2025 18:13
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 15, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@EmyrkEmyrkEmyrk approved these changes

Assignees

@ThomasK33ThomasK33

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ThomasK33@johnstcn@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp