feat(cloud-mode): add cloud mode support for MCP server π #137
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.
οΏ½οΏ½ Cloud Mode Support for MCP Server
What's Changed
Key Features
β Cross-process isolation: Prevents cache pollution between different MCP instances
β Environment-based config: Uses env vars for auth and env ID, no local files
β Tool filtering: Only exposes cloud-compatible tools
β Multiple activation methods: CLI flag, env var, or code configuration
β Backward compatibility: No impact on existing local mode usage
Usage Examples
Environment Variables
CLOUDBASE_MCP_CLOUD_MODE=true
- Enable cloud modeTENCENTCLOUD_SECRETID
- Authentication secret IDTENCENTCLOUD_SECRETKEY
- Authentication secret keyCLOUDBASE_ENV_ID
- CloudBase environment IDTesting
Documentation
Complete specification documents added in
specs/cloud-mode-optimization/
Resolves issues with cross-process cache pollution and tool filtering for cloud deployment.