mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #17989] [CLOSED] fix: skip path validation for MCP mode in tool server connection #11428
Reference in New Issue
Block a user
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/open-webui/pull/17989
Author: @maeryo
Created: 10/2/2025
Status: ❌ Closed
Base:
main← Head:fix/mcp-path-validation📝 Commits (1)
f42c546fix: skip path validation for MCP mode in tool server connection📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/AddToolServerModal.svelte(+1 -1)📄 Description
Only validate path field for OpenAPI type, as MCP mode doesn't require an OpenAPI spec path. This fixes the validation error that occurred when switching from OpenAPI to MCP mode.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
verifyHandlerfunction insrc/lib/components/AddToolServerModal.svelteif (['', 'openapi'].includes(type) && path === '')Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Problem Scenario
openapi.jsonvalue in the OpenAPI Spec fieldRoot Cause
verifyHandlerfunction validates the path field for all typesSolution
Impact Scope
src/lib/components/AddToolServerModal.svelteverifyHandler(Line 95-143)Related Links
Screenshots or Videos
Before (Problem):


After (Fixed):


Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.