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

feat: add coder_workspace_port_forward MCP tool#19863

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
code-asher merged 1 commit intomainfromasher/mcp-port-forwarding
Sep 21, 2025

Conversation

code-asher
Copy link
Member

// setupWorkspaceForAgent creates a workspace setup exactly like main SSH tests
// nolint:gocritic // This is in a test package and does not end up in the build
funcsetupWorkspaceForAgent(t*testing.T) (*codersdk.Client, database.WorkspaceTable,string) {
funcsetupWorkspaceForAgent(t*testing.T,opts*coderdtest.Options) (*codersdk.Client, database.WorkspaceTable,string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is a super minor nit: We could have left this function and its signature unchanged, added a newsetupWorkspaceForAgentWithOptions, and made this function call the new one internally withnil options.

That way, all other code remains untouched, resulting in an even smaller diff.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I had the same thought but, I felt like I was trading diff size for dev experience. Because this is basically is a convenience wrapper aroundcoderdtest.NewWithDatabase, having a similar signature makes it consistent and predictable, and easier to add options in the future (no need to discover that aWithOptions version exists).

I do wish I could merge this in a separate commit though, without having to open a second PR.

@code-ashercode-asher merged commit7f56212 intomainSep 21, 2025
51 of 53 checks passed
@code-ashercode-asher deleted the asher/mcp-port-forwarding branchSeptember 21, 2025 23:12
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ThomasK33ThomasK33ThomasK33 approved these changes

Assignees

@code-ashercode-asher

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

MCP: Port forwarding
2 participants
@code-asher@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp