-
Notifications
You must be signed in to change notification settings - Fork 19.8k
feat: add MCP server headers support #22718 #24760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
crazywoola
merged 14 commits into
langgenius:main
from
Cluas:feat-mcp_tool_support_custom_headers
Sep 8, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
83a809e
feat: add headers support to MCP tool provider and update related ser…
Cluas d3ab74a
fix: update MCP tool manage service tests to include headers and time…
Cluas ab7d75b
fix(tests): update MCPToolManageService tests to create MCP provider …
Cluas 9d148d9
[autofix.ci] apply automated fixes
autofix-ci[bot] 593ca5d
feat: add headers support to MCP modal and update related components
Cluas b0e1c03
feat: enhance MCP tool provider with encrypted and masked headers sup…
Cluas 880074e
fix: update MCPToolProvider to use type hints and improve header hand…
Cluas f8ddda4
fix(migrations): remove comment from encrypted_headers column in MCP …
Cluas c61cf80
Merge branch 'main' into feat-mcp_tool_support_custom_headers
Cluas 9077dba
fix: migration version confict
Cluas 96cce90
Merge branch 'main' into feat-mcp_tool_support_custom_headers
crazywoola ac50b0d
chore: handle migrations
Nov1c444 1cce348
Merge branch 'main' into feat-mcp_tool_support_custom_headers
Nov1c444 1ff3458
chore: handle web style error
Nov1c444 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
api/migrations/versions/2025_09_08_1007-c20211f18133_add_headers_to_mcp_provider.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| """add_headers_to_mcp_provider | ||
|
|
||
| Revision ID: c20211f18133 | ||
| Revises: 8d289573e1da | ||
| Create Date: 2025-08-29 10:07:54.163626 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import models as models | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = 'c20211f18133' | ||
| down_revision = 'b95962a3885c' | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| # Add encrypted_headers column to tool_mcp_providers table | ||
| op.add_column('tool_mcp_providers', sa.Column('encrypted_headers', sa.Text(), nullable=True)) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| # Remove encrypted_headers column from tool_mcp_providers table | ||
| op.drop_column('tool_mcp_providers', 'encrypted_headers') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.