core-agent-ide/codex-rs/rmcp-client/src
Gabriel Peal 40fba1bb4c
[MCP] Add support for resources (#5239)
This PR adds support for [MCP
resources](https://modelcontextprotocol.io/specification/2025-06-18/server/resources)
by adding three new tools for the model:
1. `list_resources`
2. `list_resource_templates`
3. `read_resource`

These 3 tools correspond to the [three primary MCP resource protocol
messages](https://modelcontextprotocol.io/specification/2025-06-18/server/resources#protocol-messages).

Example of listing and reading a GitHub resource tempalte
<img width="2984" height="804" alt="CleanShot 2025-10-15 at 17 31 10"
src="https://github.com/user-attachments/assets/89b7f215-2e2a-41c5-90dd-b932ac84a585"
/>

`/mcp` with Figma configured
<img width="2984" height="442" alt="CleanShot 2025-10-15 at 18 29 35"
src="https://github.com/user-attachments/assets/a7578080-2ed2-4c59-b9b4-d8461f90d8ee"
/>

Fixes #4956
2025-10-17 01:05:15 -04:00
..
bin [MCP] Add support for resources (#5239) 2025-10-17 01:05:15 -04:00
auth_status.rs [MCP] Allow specifying custom headers with streamable http servers (#5241) 2025-10-16 23:15:47 -04:00
find_codex_home.rs [MCP] Add support for MCP Oauth credentials (#4517) 2025-10-03 13:43:12 -04:00
lib.rs [MCP] Prompt mcp login when adding a streamable HTTP server that supports oauth (#5193) 2025-10-15 12:27:40 -04:00
logging_client_handler.rs [MCP] Introduce an experimental official rust sdk based mcp client (#4252) 2025-09-26 13:13:37 -04:00
oauth.rs [MCP] Add auth status to MCP servers (#4918) 2025-10-08 17:37:57 -04:00
perform_oauth_login.rs [MCP] Allow specifying custom headers with streamable http servers (#5241) 2025-10-16 23:15:47 -04:00
rmcp_client.rs [MCP] Add support for resources (#5239) 2025-10-17 01:05:15 -04:00
utils.rs [MCP] Allow specifying cwd and additional env vars (#5246) 2025-10-17 00:24:43 -04:00