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_ls MCP tool#19652

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-file-list
Sep 12, 2025
Merged

Conversation

code-asher
Copy link
Member

A continuation from#19629

@code-ashercode-asherforce-pushed theasher/mcp-file-list branch 5 times, most recently from577ae7e toa5b63d6CompareAugust 30, 2025 01:43
@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelSep 7, 2025
@github-actionsgithub-actionsbot removed the staleThis issue is like stale bread. labelSep 9, 2025
@code-ashercode-asherforce-pushed theasher/mcp-file-edit branch 2 times, most recently fromd82a0ff to1f7ae1fCompareSeptember 10, 2025 01:09
Copy link
Member

@ThomasK33ThomasK33 left a comment

Choose a reason for hiding this comment

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

Looks good to me, but you might want to get a second opinion, though.

code-asher reacted with thumbs up emoji
@code-asher
Copy link
MemberAuthor

code-asher commentedSep 11, 2025
edited
Loading

@ethanndickson I think you added thelist-directoryagent endpoint, right? Just want to get your opinion to make sure I have not broken anything for Coder Desktop since I think it uses this endpoint too.

@code-asher
Copy link
MemberAuthor

Yikes, sorry all for the pings, it happened when I was changing the base...

Copy link
Member

@ethanndicksonethanndickson left a comment

Choose a reason for hiding this comment

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

I tested it live w/ Coder Desktop & A Linux workspace, just in case of any subtle regressions, but it lgtm! (sans the compile error)

code-asher reacted with heart emoji
t.Parallel()

query:=LSRequest{
fs:=afero.NewMemMapFs()

Choose a reason for hiding this comment

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

Thanks for plumbing this through!

code-asher reacted with heart emoji
// `contents` may be partially populated even if the operation fails midway.
contents,_:=f.ReadDir(-1)
respContents:=make([]LSFile,0,len(contents))
contents,_:=f.Readdir(-1)

Choose a reason for hiding this comment

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

It's a shame Afero doesn't exposeReadDir here :(

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Too true 😢

ctx,span:=tracing.StartSpan(ctx)
deferspan.End()

res,err:=c.apiRequest(ctx,http.MethodPost,fmt.Sprintf("/api/v0/list-directory?path=%s",path),req)

Choose a reason for hiding this comment

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

Fails to compile - not sure why CI isn't running though..

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ahh oops I messed up the base 🤦

@code-ashercode-asher changed the base branch frommain toasher/mcp-file-editSeptember 12, 2025 20:37
Base automatically changed fromasher/mcp-file-edit tomainSeptember 12, 2025 23:36
@code-ashercode-asher merged commitbe7aa58 intomainSep 12, 2025
31 checks passed
@code-ashercode-asher deleted the asher/mcp-file-list branchSeptember 12, 2025 23:57
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 12, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ThomasK33ThomasK33ThomasK33 approved these changes

@ethanndicksonethanndicksonethanndickson 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.

3 participants
@code-asher@ThomasK33@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp