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_read_file MCP tool#19562

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 3 commits intomainfromasher/mcp-file-read
Sep 9, 2025

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedAug 27, 2025
edited
Loading

Follows similarly to the bash tool (and some code to connect to an agent was extracted from it).

There are two main parts: a new agent endpoint, and then a new MCP tool that consumes that endpoint.

@code-ashercode-asher changed the titlefeat: Add coder_workspace_read_file MCP toolfeat: add coder_workspace_read_file MCP toolAug 27, 2025
@code-ashercode-asherforce-pushed theasher/mcp-file-read branch 20 times, most recently from7bda4fd to2828b76CompareAugust 27, 2025 21:37
This will be used in multiple tools.
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.

LGTM.

I prefer buffering in the toolsdk instead of the workspacesdk, but I don't want to block on it.

Comment on lines 488 to 490
// Ideally we could stream this all the way back, but it looks like the MCP
// interfaces only allow returning full responses which means the whole thing
// has to be read into memory. So, add a maximum to compensate.
Copy link
Member

Choose a reason for hiding this comment

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

We might want to implement the buffering in the MCP server/toolsdk and keep this part as a streaming response. Functionality-wise, this should remain the same.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

100% agree. Will change.

ThomasK33 reacted with thumbs up emoji
Copy link
Member

@ThomasK33ThomasK33Sep 9, 2025
edited
Loading

Choose a reason for hiding this comment

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

Let me know if you want another review; otherwise, it's good to merge with that change from my POV.

code-asher reacted with heart emoji
@code-ashercode-asher merged commit4bf63b4 intomainSep 9, 2025
31 checks passed
@code-ashercode-asher deleted the asher/mcp-file-read branchSeptember 9, 2025 23:12
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 9, 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.

2 participants
@code-asher@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp