mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #206] feat: Resource and resource templates support #205
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/206
Author: @krewi1
Created: 7/17/2025
Status: 🔄 Open
Base:
dev← Head:main📝 Commits (10+)
1feed83Introduce resource and resource templates support in mcpd54032dRevert back the version21c37ddDo not convert from list back to single string because of how openwebui is rendering0dcda9eRemove redundant comments712c869One more comment deletion6eef961Merge remote-tracking branch 'upstream/dev'5bf2080Process the response3dc7d24Add check for corrent path in register_resource_templates test and fix other tests after refactoring63fb4bcMerge remote-tracking branch 'upstream/dev'ad15827Fix errors after incorrect merge📊 Changes
13 files changed (+923 additions, -441 deletions)
View changed files
📝
pyproject.toml(+2 -1)📝
src/mcpo/main.py(+15 -51)➕
src/mcpo/tests/test_register_resource_templates.py(+135 -0)➕
src/mcpo/tests/test_register_resources.py(+96 -0)📝
src/mcpo/tests/test_register_tools.py(+1 -1)➕
src/mcpo/tests/test_resource_response.py(+87 -0)➕
src/mcpo/utils/normalize_server_type.py(+5 -0)➕
src/mcpo/utils/register_resource_templates.py(+49 -0)➕
src/mcpo/utils/register_resources.py(+33 -0)📝
src/mcpo/utils/register_tools.py(+43 -6)➕
src/mcpo/utils/resource_response.py(+26 -0)➕
src/mcpo/utils/routes.py(+9 -0)📝
uv.lock(+422 -382)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR adds comprehensive support for MCP resources and resource templates, enabling:
These changes enhance the functionality of the MCP protocol by providing a standardized way to handle various resource types.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.