[PR #273] [FEAT](utils): ADD HEADERS FW to tools #223

Open
opened 2026-02-15 21:15:22 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/mcpo/pull/273
Author: @GlisseManTV
Created: 12/8/2025
Status: 🔄 Open

Base: devHead: dev


📝 Commits (2)

  • 90307f4 feat(utils): mask sensitive headers in logs and improve header forwarding handling
  • 1d6cdf0 refactor: rename mcpo_headers to headers across request handling and logging

📊 Changes

1 file changed (+40 additions, -8 deletions)

View changed files

📝 src/mcpo/utils/main.py (+40 -8)

📄 Description

Pull Request Checklist

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • 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?
  • 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

  • Add headers forwarding through mcpo.
    using a custom arg "mcpo_headers" pushed in arguments list.
    Adding a function to mask headers in logs.

Added

  • Header forwarding
  • Function to hide sensitive headers in logs

Changed

  • _meta to "mcpo_headers"

Deprecated

  • [List any deprecated functionality or features that have been removed]

Removed

  • _meta mention in utils/main.py

Fixed

  • [List any fixes, corrections, or bug fixes]

Security

  • Hide sensitive headers in logs

Breaking Changes

  • BREAKING CHANGE: tools must use "mcpo_headers" to find auth headers

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]

🔄 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/273 **Author:** [@GlisseManTV](https://github.com/GlisseManTV) **Created:** 12/8/2025 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`90307f4`](https://github.com/open-webui/mcpo/commit/90307f48c901acdc60ed9b70510e6b9411c340b6) feat(utils): mask sensitive headers in logs and improve header forwarding handling - [`1d6cdf0`](https://github.com/open-webui/mcpo/commit/1d6cdf002e2ab69dd2f001832713148eb8318a71) refactor: rename `mcpo_headers` to `headers` across request handling and logging ### 📊 Changes **1 file changed** (+40 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/mcpo/utils/main.py` (+40 -8) </details> ### 📄 Description # Pull Request Checklist **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests to validate the changes? - [X] **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? - [x] **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 - Add headers forwarding through mcpo. using a custom arg "mcpo_headers" pushed in arguments list. Adding a function to mask headers in logs. ### Added - Header forwarding - Function to hide sensitive headers in logs ### Changed - _meta to "mcpo_headers" ### Deprecated - [List any deprecated functionality or features that have been removed] ### Removed - _meta mention in utils/main.py ### Fixed - [List any fixes, corrections, or bug fixes] ### Security - Hide sensitive headers in logs ### Breaking Changes - **BREAKING CHANGE**: tools must use "mcpo_headers" to find auth headers --- ### 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] --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/mcpo#223