[PR #307] feat: optionally preserve MCP tool names #250

Open
opened 2026-10-18 21:13:00 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/mcpo/pull/307
Author: @TheDropZone
Created: 8/20/2026
Status: 🔄 Open

Base: dev ← Head: preserve-tool-names


📝 Commits (1)

  • 3912ae5 feat: optionally preserve MCP tool names

📊 Changes

4 files changed (+52 additions, -1 deletions)

View changed files

📝 README.md (+2 -0)
📝 src/mcpo/__init__.py (+4 -0)
📝 src/mcpo/main.py (+12 -0)
📝 src/mcpo/tests/test_main.py (+34 -1)

📄 Description

Pull Request Checklist

  • Target branch: dev
  • No new dependencies
  • Tests added and passing
  • Self-reviewed
    • I have a patched version of the MCPO container running this exact code and tested with open-webui v0.10.2

Description

For example, Firecrawl exposes an MCP tool named firecrawl_search. MCPO normally generates the OpenAPI operation ID tool_firecrawl_search_post; with --preserve-tool-names, it remains firecrawl_search.

Default behavior:
Screenshot 2026-08-20 at 2 35 14 PM

With "--preserve-tool-names":
Screenshot 2026-08-20 at 2 35 22 PM

Changelog Entry

Description

Add an opt-in --preserve-tool-names flag that uses the original MCP tool name as the OpenAPI operationId. The current generated operation IDs remain the default.

Added

  • Optional MCP tool name preservation for OpenAPI operation IDs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/mcpo/pull/307 **Author:** [@TheDropZone](https://github.com/TheDropZone) **Created:** 8/20/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `preserve-tool-names` --- ### 📝 Commits (1) - [`3912ae5`](https://github.com/open-webui/mcpo/commit/3912ae52dadb6191cd8c3e312537feb1c422aa91) feat: optionally preserve MCP tool names ### 📊 Changes **4 files changed** (+52 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) 📝 `src/mcpo/__init__.py` (+4 -0) 📝 `src/mcpo/main.py` (+12 -0) 📝 `src/mcpo/tests/test_main.py` (+34 -1) </details> ### 📄 Description # Pull Request Checklist - [x] Target branch: `dev` - [x] No new dependencies - [x] Tests added and passing - [x] Self-reviewed - I have a patched version of the MCPO container running this exact code and tested with open-webui v0.10.2 # Description For example, Firecrawl exposes an MCP tool named `firecrawl_search`. MCPO normally generates the OpenAPI operation ID `tool_firecrawl_search_post`; with `--preserve-tool-names`, it remains `firecrawl_search`. **Default behavior:** <img width="405" height="106" alt="Screenshot 2026-08-20 at 2 35 14 PM" src="https://github.com/user-attachments/assets/ec5d22d3-9249-4c5e-ad1f-d043001af0a1" /> **With "--preserve-tool-names":** <img width="320" height="71" alt="Screenshot 2026-08-20 at 2 35 22 PM" src="https://github.com/user-attachments/assets/2e41cf18-f639-4645-b74b-e89bfcdc2432" /> # Changelog Entry ### Description Add an opt-in `--preserve-tool-names` flag that uses the original MCP tool name as the OpenAPI `operationId`. The current generated operation IDs remain the default. ### Added - Optional MCP tool name preservation for OpenAPI operation IDs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/mcpo#250
No description provided.