-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Feature: MCP client Resources support #3024
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fennb
wants to merge
40
commits into
pydantic:main
Choose a base branch
from
fennb:feature/1783-minimal-mcp-resources-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+603
−22
Open
Changes from 12 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
9fde764
Add initial list_resources() method to MCPServer.
fennb a7404a2
Add list_resource_templates() to MCPServer.
fennb ecea466
Workaround limitations with inline-snapshot & AnyUrl.
fennb 1886299
Add basic read_resource() to MCPServer.
fennb dfb54db
Update mcp client docs to add Resources section.
fennb f52bb71
Organize imports in doc examples.
fennb 232ff04
Update MCP resource example docs.
fennb 38675da
Merge branch 'pydantic:main' into feature/1783-minimal-mcp-resources-…
fennb 317416c
Create native Resource and ResourceTemplate types and update MCPServe…
fennb 67f9b07
Update MCPServer.read_resource() to decode/return native types.
fennb e6cb086
Add native MCP ResourceAnnotations type.
fennb b8424d8
Allow MCPServer.read_resource() to read resources by Resource.
fennb 50cab26
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
fennb 6857ef2
Bump dependency mcp>=1.18.0
fennb 18743cd
Add test coverage for ResourceAnnotations now that we can.
fennb 4e5d627
Add MCPServer.capabilities property.
fennb 6f3a87a
Introduce native MCPError type and use it in MCP server resource meth…
fennb 72d66ac
Simplify error messages.
fennb 3000511
Add MCPServerError and use it appropriately upon upstream resource er…
fennb 30f4e7f
Cleanup MCP error naming and usage.
fennb 456e714
Increase MCP server test coverage.
fennb 3d95521
Fix test coverage gap.
fennb 918f85c
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
fennb 28cf761
Return [] | None on MCP resource methods when not found or no capabil…
fennb 9804f18
Cleanup + relocate MCP errors.
fennb d173f88
Merge branch 'pydantic:main' into feature/1783-minimal-mcp-resources-…
fennb f7c5319
Move public MCP resources to appropriate place.
fennb 21ad2b0
Improve clarity of MCP Resource handling documentation.
fennb 14c3973
Test cleanups.
fennb 44c327a
Improve type safety on MCPError.
fennb 7346061
Update docs/mcp/client.md
fennb b9216b4
Update MCP resources docs example.
fennb 3d47349
Docs cleanup.
fennb 278d141
Cleanup MCP resource tests.
fennb 2445540
Make error handing in MCP ResourceLink reading consistent.
fennb eb31106
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
fennb 196d139
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
DouweM 94f91ec
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
DouweM 509d6ef
Use future import annotations for cleaner syntax.
fennb a9e10cf
Merge branch 'main' into feature/1783-minimal-mcp-resources-support
fennb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.