mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #52] [MERGED] feat: Add spec-compliant support for parameterless MCP tools #154
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#154
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/52
Author: @AlvinNorin
Created: 4/6/2025
Status: ✅ Merged
Merged: 4/6/2025
Merged by: @tjbck
Base:
dev← Head:feat/mcp-parameterless-tools📝 Commits (1)
81e095bHandle empty input schemas and add support for no-argument tool endpoints📊 Changes
1 file changed (+45 additions, -33 deletions)
View changed files
📝
src/mcpo/main.py(+45 -33)📄 Description
Summary
Enables true parameterless endpoints for MCP tools while fixing OpenAPI documentation inaccuracies.
Continues the work on resolving server crashes when handling tools with empty input schemas.
Changes
Detect
inputSchema.propertiesexistence to conditionally create endpointsDeduplicate response processing into
process_tool_responseCorrect
ToolOutputreference per MCP protocol definitionsRemove invalid requestBody declarations from OpenAPI schema
OpenAPI Schema Changes
Before (Incorrect):
After (OAS 3.1 Compliant):
[OpenAPI Spec Reference § Request Body] (https://spec.openapis.org/oas/v3.1.0#request-body-object):
Impact
Verification
Changelog
Added
process_tool_responseFixed
Changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.