Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch will lead to immediate closure of the PR.
Description: Provide a concise description of the changes made in this pull request down below.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
BREAKING CHANGE: Significant changes that may affect compatibility
build: Changes that affect the build system or external dependencies
ci: Changes to our continuous integration processes or workflows
chore: Refactor, cleanup, or other non-functional code changes
docs: Documentation update or addition
feat: Introduces a new feature or enhancement to the codebase
fix: Bug fix or error correction
i18n: Internationalization or localization changes
perf: Performance improvement
refactor: Code restructuring for better maintainability, readability, or scalability
style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
test: Adding missing tests or correcting existing tests
WIP: Work in progress, a temporary label for incomplete or ongoing work
Changelog Entry
Description
[Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
Added
[List any new features, functionalities, or additions]
Changed
[List any changes, updates, refactorings, or optimizations]
Deprecated
[List any deprecated functionality or features that have been removed]
Removed
[List any removed features, files, or functionalities]
Fixed
[List any fixes, corrections, or bug fixes]
Security
[List any new or updated security-related changes, including vulnerability fixes]
Breaking Changes
BREAKING CHANGE: [List any breaking changes affecting compatibility or functionality]
Additional Information
[Insert any additional context, notes, or explanations for the changes]
[Reference any related issues, commits, or other relevant information]
Screenshots or Videos
[Attach any relevant screenshots or videos demonstrating the changes]
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.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 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/open-webui/pull/21269
**Author:** [@xill0912ier](https://github.com/xill0912ier)
**Created:** 2/9/2026
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `ACP-4913`
---
### 📝 Commits (10+)
- [`b731c64`](https://github.com/open-webui/open-webui/commit/b731c64b2d4e4a43c672981e4e5d5beac93cb05c) feat: Add local MCP server integration for tool registration, discovery, and invocation in Open WebUI
- [`a088bb8`](https://github.com/open-webui/open-webui/commit/a088bb8a413cbc28d0e2a2727c896b51a8b05053) feat: Add product requirements document for local MCP tool integration in Open WebUI
- [`7779a25`](https://github.com/open-webui/open-webui/commit/7779a25a13025effba1dc8512b3e34e01d7735bd) Create GroupPRD.md
- [`10afdfb`](https://github.com/open-webui/open-webui/commit/10afdfb3845a1a9c9523fdf6cf9f9ffe87c830d0) Update PRD
- [`7132de6`](https://github.com/open-webui/open-webui/commit/7132de63be138dc8ce1f537f3655446ff638f7d4) feat: Enhance tool registration documentation for external OpenAPI Tool Servers and internal Python tools
- [`828bb66`](https://github.com/open-webui/open-webui/commit/828bb662907c26735e34902f50b9ba6074d74aa0) docs: Update documentation for local MCP tool integration and clarify tool invocation processes
- [`3a7bb84`](https://github.com/open-webui/open-webui/commit/3a7bb84cff26c4cf4cbbb6b48eaf056858224e30) docs: Update PRD writing guidelines to enhance clarity, completeness, and error handling strategies
- [`2d82aef`](https://github.com/open-webui/open-webui/commit/2d82aef1d1c69bb6f4d38be5df4b6a0fba9a78ee) Enhance tool registration documentation and introduce mcpo README
- [`a4fed4d`](https://github.com/open-webui/open-webui/commit/a4fed4d7267f2c7bf1f7f14d9a41877610df05f0) feat: Enhance local tool integration by ensuring isolation in multi-user environments
- [`8608e08`](https://github.com/open-webui/open-webui/commit/8608e086174feedb22fc45d4795580b4f4ce33ce) feat: implement group synchronization service for user login
### 📊 Changes
**149 files changed** (+8804 additions, -877 deletions)
<details>
<summary>View changed files</summary>
➕ `.devcontainer/devcontainer.json` (+82 -0)
📝 `.gitignore` (+10 -0)
➕ `.vscode/Microsoft.PowerShell_profile.ps1` (+14 -0)
➕ `.vscode/launch.json` (+35 -0)
📝 `Dockerfile` (+22 -2)
📝 `LICENSE` (+1 -1)
📝 `README.md` (+55 -41)
➕ `THIRD_PARTY_LICENSES` (+42 -0)
➕ `acp-3825-search-plan-agent-buttons/README.md` (+63 -0)
➕ `acp-3835-selectable-knowledge-source/README.md` (+69 -0)
➕ `backend/DB-Migration-ACP-3780/dev-openwebui-schema.sqlserver.sql` (+360 -0)
➕ `backend/DB-Migration-ACP-3780/import_data_to_mssql.py` (+541 -0)
➕ `backend/DB-Migration-ACP-3780/資料庫遷移標準作業程序 (SOP).md` (+1 -0)
📝 `backend/open_webui/config.py` (+30 -2)
📝 `backend/open_webui/env.py` (+40 -3)
📝 `backend/open_webui/functions.py` (+3 -1)
📝 `backend/open_webui/internal/db.py` (+18 -1)
📝 `backend/open_webui/main.py` (+23 -7)
📝 `backend/open_webui/models/auths.py` (+1 -1)
📝 `backend/open_webui/models/chats.py` (+146 -59)
_...and 80 more files_
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
**Before submitting, make sure you've checked the following:**
- [ ] **Target branch:** Verify that the pull request targets the `dev` branch. **Not targeting the `dev` branch will lead to immediate closure of the PR.**
- [ ] **Description:** Provide a concise description of the changes made in this pull request down below.
- [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources.
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [ ] **Testing:** Perform manual tests to **verify the implemented fix/feature works as intended AND does not break any other functionality**. Take this as an opportunity to **make screenshots of the feature/fix and include it in the PR description**.
- [ ] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
- [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [ ] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **BREAKING CHANGE**: Significant changes that may affect compatibility
- **build**: Changes that affect the build system or external dependencies
- **ci**: Changes to our continuous integration processes or workflows
- **chore**: Refactor, cleanup, or other non-functional code changes
- **docs**: Documentation update or addition
- **feat**: Introduces a new feature or enhancement to the codebase
- **fix**: Bug fix or error correction
- **i18n**: Internationalization or localization changes
- **perf**: Performance improvement
- **refactor**: Code restructuring for better maintainability, readability, or scalability
- **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
- **test**: Adding missing tests or correcting existing tests
- **WIP**: Work in progress, a temporary label for incomplete or ongoing work
# Changelog Entry
### Description
- [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
### Added
- [List any new features, functionalities, or additions]
### Changed
- [List any changes, updates, refactorings, or optimizations]
### Deprecated
- [List any deprecated functionality or features that have been removed]
### Removed
- [List any removed features, files, or functionalities]
### Fixed
- [List any fixes, corrections, or bug fixes]
### Security
- [List any new or updated security-related changes, including vulnerability fixes]
### Breaking Changes
- **BREAKING CHANGE**: [List any breaking changes affecting compatibility or functionality]
---
### Additional Information
- [Insert any additional context, notes, or explanations for the changes]
- [Reference any related issues, commits, or other relevant information]
### Screenshots or Videos
- [Attach any relevant screenshots or videos demonstrating the changes]
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21269
Author: @xill0912ier
Created: 2/9/2026
Status: ❌ Closed
Base:
main← Head:ACP-4913📝 Commits (10+)
b731c64feat: Add local MCP server integration for tool registration, discovery, and invocation in Open WebUIa088bb8feat: Add product requirements document for local MCP tool integration in Open WebUI7779a25Create GroupPRD.md10afdfbUpdate PRD7132de6feat: Enhance tool registration documentation for external OpenAPI Tool Servers and internal Python tools828bb66docs: Update documentation for local MCP tool integration and clarify tool invocation processes3a7bb84docs: Update PRD writing guidelines to enhance clarity, completeness, and error handling strategies2d82aefEnhance tool registration documentation and introduce mcpo READMEa4fed4dfeat: Enhance local tool integration by ensuring isolation in multi-user environments8608e08feat: implement group synchronization service for user login📊 Changes
149 files changed (+8804 additions, -877 deletions)
View changed files
➕
.devcontainer/devcontainer.json(+82 -0)📝
.gitignore(+10 -0)➕
.vscode/Microsoft.PowerShell_profile.ps1(+14 -0)➕
.vscode/launch.json(+35 -0)📝
Dockerfile(+22 -2)📝
LICENSE(+1 -1)📝
README.md(+55 -41)➕
THIRD_PARTY_LICENSES(+42 -0)➕
acp-3825-search-plan-agent-buttons/README.md(+63 -0)➕
acp-3835-selectable-knowledge-source/README.md(+69 -0)➕
backend/DB-Migration-ACP-3780/dev-openwebui-schema.sqlserver.sql(+360 -0)➕
backend/DB-Migration-ACP-3780/import_data_to_mssql.py(+541 -0)➕
backend/DB-Migration-ACP-3780/資料庫遷移標準作業程序 (SOP).md(+1 -0)📝
backend/open_webui/config.py(+30 -2)📝
backend/open_webui/env.py(+40 -3)📝
backend/open_webui/functions.py(+3 -1)📝
backend/open_webui/internal/db.py(+18 -1)📝
backend/open_webui/main.py(+23 -7)📝
backend/open_webui/models/auths.py(+1 -1)📝
backend/open_webui/models/chats.py(+146 -59)...and 80 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.