Skip to content

feat: support config store and redis configuration optional in mcp server#2035

Merged
johnlanni merged 29 commits intoalibaba:mainfrom
Jing-ze:mcp-market
Apr 14, 2025
Merged

feat: support config store and redis configuration optional in mcp server#2035
johnlanni merged 29 commits intoalibaba:mainfrom
Jing-ze:mcp-market

Conversation

@Jing-ze
Copy link
Collaborator

@Jing-ze Jing-ze commented Apr 9, 2025

Ⅰ. Describe what this PR did

support config handler and store in mcp server
feat: support mcp server redis configuration optional
fix bug of redis not enabled response body
feat: add internal IP check for config path access
update mcp-server.so to golang-filter.so
fix: support panic recover in go routine and pprof in mcp server

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 16.66667% with 40 lines in your changes missing coverage. Please review.

Project coverage is 43.66%. Comparing base (ef31e09) to head (4e15c49).
Report is 503 commits behind head on main.

Files with missing lines Patch % Lines
pkg/ingress/kube/configmap/mcp_server.go 16.66% 39 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (16.66%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2035      +/-   ##
==========================================
+ Coverage   35.91%   43.66%   +7.75%     
==========================================
  Files          69       79      +10     
  Lines       11576    12752    +1176     
==========================================
+ Hits         4157     5568    +1411     
+ Misses       7104     6836     -268     
- Partials      315      348      +33     
Files with missing lines Coverage Δ
pkg/ingress/kube/configmap/mcp_server.go 40.14% <16.66%> (ø)

... and 74 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Jing-ze Jing-ze marked this pull request as ready for review April 10, 2025 09:48
Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall logic is fine, but the mcp server logic at the uid granularity needs to be completely decoupled and controlled through an independent configuration item, such as enableUserLevelServer: true

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnlanni johnlanni merged commit c7abfb8 into alibaba:main Apr 14, 2025
12 checks passed
VinceCui pushed a commit to VinceCui/higress that referenced this pull request May 21, 2025
ink-hz pushed a commit to ink-hz/higress-ai-capability-auth that referenced this pull request Nov 5, 2025
ISADBA pushed a commit to ISADBA/higress that referenced this pull request Jan 13, 2026
ISADBA pushed a commit to ISADBA/higress that referenced this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants