| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:17e89274-1090-d6c6-094a-5f5f42c76640 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A1B0:16AB79:1CF1E95:24C89B3:6B015C3C |
| html-safe-nonce | 3645b2c2024a3ffb0a0a99b1817c5e748f40d221baec6553514b02b94095c26e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUIwOjE2QUI3OToxQ0YxRTk1OjI0Qzg5QjM6NkIwMTVDM0MiLCJ2aXNpdG9yX2lkIjoiNDY1MTIwMjAzNzYwNTU3MTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 703c2a4ee22d9f95c35609c43c3d41b297d812d73cdb538bb10182c49cc7e21d |
| hovercard-subject-tag | pull_request:5043837467 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/pull/31385/files |
| twitter:image | https://avatars.githubusercontent.com/u/39577870?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/39577870?s=400&v=4 |
| og:image:alt | Part of CODAGT-1430. Stacked on #31384.
Workspace MCP tool results go through the agent's convertResult, which turns an embedded resource into a [embedded resource: ...] string and drops struct... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/coder/coder/pull/31385/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F31385%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F31385%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/31385/files |
| Reload | https://github.com/coder/coder/pull/31385/files |
| Reload | https://github.com/coder/coder/pull/31385/files |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| ethanndickson | https://github.com/ethanndickson |
| codagt-1430-media-rule | https://github.com/coder/coder/tree/codagt-1430-media-rule |
| codagt-1430-workspace-mcp-results | https://github.com/coder/coder/tree/codagt-1430-workspace-mcp-results |
|
Conversation
20
| https://github.com/coder/coder/pull/31385 |
|
Commits
6
| https://github.com/coder/coder/pull/31385/commits |
|
Checks
40
| https://github.com/coder/coder/pull/31385/checks |
|
Files changed
| https://github.com/coder/coder/pull/31385/files |
| Please reload this page | https://github.com/coder/coder/pull/31385/files |
|
feat: return raw MCP results from workspace MCP tools
| https://github.com/coder/coder/pull/31385/files#top |
|
Show all changes
6 commits
| https://github.com/coder/coder/pull/31385/files |
|
63f2a16
refactor(coderd/x/chatd/mcpclient): export ConvertCallResult
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31385/commits/63f2a1619cca81d8d10952dbbc2b7a5347088844 |
|
f30c17a
feat: return raw MCP results from the agent call-tool API
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31385/commits/f30c17a29f49ff139582f160afee4fdd9b04794b |
|
dabca0d
fix(coderd/x/chatd/chattool): convert workspace MCP results with mcpc…
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31385/commits/dabca0d87c1bcc08823a06f94b53b23be2c1fd92 |
|
57bc948
refactor(agent/x/agentmcp): encode raw MCP results in their own function
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31385/commits/57bc948688aed9a56beedfa80d68e1d59427441d |
|
2eef4d2
docs(docs/ai-coder/agents): describe images and PDFs in workspace MCP…
ethanndickson Oct 28, 2026
| https://github.com/coder/coder/pull/31385/commits/2eef4d224e5b7193c112ae6f921e7370a05e3302 |
|
d2aad7c
docs(docs/coder-agents): link workspace MCP tool results to the share…
ethanndickson Nov 9, 2026
| https://github.com/coder/coder/pull/31385/commits/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b |
|
Clear filters
| https://github.com/coder/coder/pull/31385/files |
| Please reload this page | https://github.com/coder/coder/pull/31385/files |
| Please reload this page | https://github.com/coder/coder/pull/31385/files |
|
manager.go
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
manager_internal_test.go
| https://github.com/coder/coder/pull/31385/files#diff-0cf112b4ca7ee320feebba04f0f46ce57f74ed0ef19de7908eb905a2f98460a4 |
|
mcpworkspace.go
| https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
|
mcpworkspace_test.go
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
export_test.go
| https://github.com/coder/coder/pull/31385/files#diff-2f21cdef9152832da0227caa08944d3140e9d5b1b69c3eb3e5c65c9ca6b680fe |
|
mcpclient.go
| https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
|
mcpclient_test.go
| https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
|
agentconn.go
| https://github.com/coder/coder/pull/31385/files#diff-4a9389f5b9f3a4e44d42e098bc76363901ad6b68a8768e7f4ff35870c6a61b03 |
|
extending-agents.md
| https://github.com/coder/coder/pull/31385/files#diff-6f15f9778b8417743db76f0d8ec903e6f0bafc72a3a1da9e0e1d69e8b570a659 |
| agent/x/agentmcp/manager.go | https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/agent/x/agentmcp/manager.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c1331d410fd968fa3486746881660ffa3eb5e227fc9397a08ac391f269b1ae5a |
| agent/x/agentmcp/manager_internal_test.go | https://github.com/coder/coder/pull/31385/files#diff-0cf112b4ca7ee320feebba04f0f46ce57f74ed0ef19de7908eb905a2f98460a4 |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/agent/x/agentmcp/manager_internal_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-0cf112b4ca7ee320feebba04f0f46ce57f74ed0ef19de7908eb905a2f98460a4 |
|
| https://github.com/coder/coder/pull/31385/files#diff-0cf112b4ca7ee320feebba04f0f46ce57f74ed0ef19de7908eb905a2f98460a4 |
| coderd/x/chatd/chattool/mcpworkspace.go | https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/coderd/x/chatd/chattool/mcpworkspace.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
|
| https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
|
| https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
|
| https://github.com/coder/coder/pull/31385/files#diff-00113f49ff60d03a52d3be45399fb3535ff23009c1617d446a429d3fec4ce3ac |
| coderd/x/chatd/chattool/mcpworkspace_test.go | https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/coderd/x/chatd/chattool/mcpworkspace_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
|
| https://github.com/coder/coder/pull/31385/files#diff-c7d3dd33e47a7991289e8db4c9c291879cee2efcbdc0b350bab47b44930ba93a |
| coderd/x/chatd/mcpclient/export_test.go | https://github.com/coder/coder/pull/31385/files#diff-2f21cdef9152832da0227caa08944d3140e9d5b1b69c3eb3e5c65c9ca6b680fe |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/coderd/x/chatd/mcpclient/export_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-2f21cdef9152832da0227caa08944d3140e9d5b1b69c3eb3e5c65c9ca6b680fe |
|
| https://github.com/coder/coder/pull/31385/files#diff-2f21cdef9152832da0227caa08944d3140e9d5b1b69c3eb3e5c65c9ca6b680fe |
| coderd/x/chatd/mcpclient/mcpclient.go | https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/coderd/x/chatd/mcpclient/mcpclient.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
|
| https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
|
| https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
|
| https://github.com/coder/coder/pull/31385/files#diff-e7a10ba57112a5b96d8ebb907c0c550a6548e45de1e016296dd9772726dbd9d5 |
| coderd/x/chatd/mcpclient/mcpclient_test.go | https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/coderd/x/chatd/mcpclient/mcpclient_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
|
| https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
|
| https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
|
| https://github.com/coder/coder/pull/31385/files#diff-2063c385d77e2bd64c7dd0fdc6f3d3b3b5ed2d7799efcda22c2cacc24676c1a9 |
| codersdk/workspacesdk/agentconn.go | https://github.com/coder/coder/pull/31385/files#diff-4a9389f5b9f3a4e44d42e098bc76363901ad6b68a8768e7f4ff35870c6a61b03 |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/codersdk/workspacesdk/agentconn.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-4a9389f5b9f3a4e44d42e098bc76363901ad6b68a8768e7f4ff35870c6a61b03 |
|
| https://github.com/coder/coder/pull/31385/files#diff-4a9389f5b9f3a4e44d42e098bc76363901ad6b68a8768e7f4ff35870c6a61b03 |
| docs/coder-agents/extending-agents.md | https://github.com/coder/coder/pull/31385/files#diff-6f15f9778b8417743db76f0d8ec903e6f0bafc72a3a1da9e0e1d69e8b570a659 |
|
View file
| https://github.com/coder/coder/blob/d2aad7c1c9f195a45efaae1a4fe5e9ca24bf344b/docs/coder-agents/extending-agents.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31385/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31385/files#diff-6f15f9778b8417743db76f0d8ec903e6f0bafc72a3a1da9e0e1d69e8b570a659 |
|
| https://github.com/coder/coder/pull/31385/files#diff-6f15f9778b8417743db76f0d8ec903e6f0bafc72a3a1da9e0e1d69e8b570a659 |
| Please reload this page | https://github.com/coder/coder/pull/31385/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |