Skip to content

feat: add Pi support for agent configuration and MCP registration - #250

Merged
XXPermanentXX merged 1 commit into
mainfrom
feat/pi-agent-integration
Oct 14, 2026
Merged

XXPermanentXX merged 1 commit into
mainfrom
feat/pi-agent-integration

Conversation

@XXPermanentXX

Copy link
Copy Markdown
Collaborator

Pi users currently have to configure Bailian models and MCP servers separately. This adds Pi to the existing config agent and MCP connect/disconnect targets.

  • Configure Pi's native provider, credentials, and default model while preserving existing configuration and honoring PI_CODING_AGENT_DIR.
  • Reuse the existing JSON MCP adapter, managed-entry checks, and file-writing utilities.
  • Update supported-agent lists and generated references, with unit and CLI E2E coverage.

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

  • Related Agent/MCP regressions: 116 passed, 1 skipped, rerun on this commit.
  • vp check: passed, with 3 existing warnings outside the changed files.
  • bailian-cli-commands build: passed.
  • Pi 1.0.4: real qwen-plus request returned PI_OK; native MCP discovery and a bailian_image_gen call succeeded. The returned 512×512 PNG downloaded with HTTP 200. Image editing and fusion were not executed.
  • The completed offline full-suite run during implementation had 2654 passed, 240 skipped, and 14 failures across skills-agents, advisor-sync, permission.e2e, and managed-agent.e2e. All 14 were reproduced on the unmodified base under the same local configuration.

- 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
@XXPermanentXX
XXPermanentXX merged commit 0a700ff into main Oct 14, 2026
2 checks passed
@XXPermanentXX
XXPermanentXX deleted the feat/pi-agent-integration branch October 14, 2026 06:06
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.

1 participant