Repository navigation
feat: add Pi support for agent configuration and MCP registration - #250
Merged
Merged
Conversation
- Add tests for Pi configuration, credential redaction, and MCP registration/removal - Reuse existing MCP configuration management and file-writing utilities - Preserve compatibility with existing Pi configuration files and ensure endpoint updates take effect
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pi users currently have to configure Bailian models and MCP servers separately. This adds Pi to the existing
config agentand MCP connect/disconnect targets.PI_CODING_AGENT_DIR.Native MCP support uses Pi's built-in implementation (0.99.0+) with streamable HTTP and follows the existing China-site MCP endpoint policy.
Related to #230.
Validation
vp check: passed, with 3 existing warnings outside the changed files.bailian-cli-commandsbuild: passed.qwen-plusrequest returnedPI_OK; native MCP discovery and abailian_image_gencall succeeded. The returned 512×512 PNG downloaded with HTTP 200. Image editing and fusion were not executed.skills-agents,advisor-sync,permission.e2e, andmanaged-agent.e2e. All 14 were reproduced on the unmodified base under the same local configuration.