Skip to content

feat(plugin): declare the public MCP server in the plugin - #108

Merged
yeouchien-wego merged 2 commits into
mainfrom
devin/1794389158-plugin-public-mcp
Nov 12, 2026
Merged

yeouchien-wego merged 2 commits into
mainfrom
devin/1794389158-plugin-public-mcp

Conversation

@yeouchien-wego

@yeouchien-wego yeouchien-wego commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Tracks PET-428 (internal ticket). First of two PRs that make the Wego agent plugin work for an agent with no computer. The skill text change comes after this PR and after #103.

Why

An agent that cannot run a command cannot use the wego CLI, so the plugin gives it nothing today. The plugin that this repo publishes to wego/skills has no MCP declaration, so an install of the plugin does not connect the Wego public MCP server.

What changed

  • The plugin declares one MCP server: a root mcp.json with one server, wego, over streamable HTTP at https://mcp.wego.com/public-app/v1/mcp. No headers, no auth, no secrets.
  • The declaration ships with the plugin: the publish plan now carries plugin/mcp.json -> mcp.json, so the next promote writes it to the root of wego/skills.
  • Not changed: the skill, the plugin manifest and the plugin README. The agent-facing rule for when to use the CLI and when to use MCP is the next PR.

Verification

Check Result
plugin/mcp.json agrees with the Agent Plugins 1.0.0 MCP schema ✅ type and url only, both required fields present
Publish plan lists the file ✅ plugin/mcp.json -> mcp.json from bun run scripts/publish-plugin.ts --print-plan
One initialize call to the URL in the file ✅ HTTP 200, production
New publish-entry guard fails without the plan entry ✅ failed before the change, passes after
wego/skills has mcp.json at its root ⏳ after the next promote

Before and After

Case Before After
Files the promote lane writes to wego/skills plugin.json, README.md, LICENSE, skills/wego/SKILL.md The same four, plus mcp.json
Agent with no computer installs the plugin No Wego tools Client connects the Wego public MCP server

QA plan

Check Expected How to verify
mcp.json is at the root of wego/skills after the next promote File exists and equals plugin/mcp.json at the promoted tag gh api repos/wego/skills/contents/mcp.json -q .content | base64 -d and compare with plugin/mcp.json
The declared URL answers HTTP 200 on an MCP initialize POST, serverInfo.name is wego POST initialize to https://mcp.wego.com/public-app/v1/mcp with accept: application/json, text/event-stream
The after-publish verifier passes Promote workflow green at the plugin verify step Actions, latest promote-cli run

Notes for reviewers

  • The commits on this branch are unsigned (Devin has no signing key). #106 merged the same way: squash only, and GitHub signs the squash commit.
  • Plugin traffic is not separable from other public MCP traffic after this PR. A caller tag is separate work in wego/mcp-server.
  • #103 edits scripts/plugin-conformance.test.ts too. This PR adds one new describe block and edits no existing line in that file.

Details for AI and humans who like to read everything

Files

File Change
plugin/mcp.json New. $schema is the 1.0.0 MCP schema URL. mcpServers.wego has type: "streamable-http" and url.
scripts/plugin-publish.ts One new entry in pluginPublishPlan(). The publisher, --print-plan, the stray-file guard and the after-publish verifier all read this list, so no other logic changes.
scripts/plugin-publish.test.ts Plan expectation includes the new pair. The bare-repo publish test asserts the remote mcp.json equals the source.
scripts/plugin-conformance.test.ts New describe block: schema version equals the manifest schema version, closed field sets, one server named wego, the exact HTTPS URL. The closed key set of type and url excludes headers.

Evidence

  • bun run check: 1419 pass, 0 fail. bun run test:integration: 508 pass, 0 fail. Both at commit 4b30e13; the later commit 3a2cfac changes test code only.
  • bun test scripts/plugin-conformance.test.ts scripts/plugin-publish.test.ts: 35 pass, 0 fail, rerun on a second machine at 4b30e13.
  • initialize response: HTTP 200, protocolVersion: 2025-06-18, serverInfo.name: wego.
  • No workflow, doc or README lists the published file set. pluginPublishPlan() is the only list.

Not yet verified: the file in wego/skills. It can be checked after the next promote with the first QA plan row.

CI: the ci-cli job fails at the dependency audit step on main's lockfile (zod and undici advisories), before lint and tests run. This PR changes no dependency file. The same step fails on other open PRs.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The plugin now defines an MCP server configuration for wego. The publish plan includes that configuration, and tests check its fields and published contents.

Changes: MCP Configuration and Publishing

Layer / File(s) Summary
Define and validate MCP configuration
plugin/mcp.json, scripts/plugin-conformance.test.ts
Adds a schema-validated wego server using streamable HTTP. Conformance tests check the schema version, allowed fields, server count, transport, and URL.
Publish MCP configuration
scripts/plugin-publish.ts, scripts/plugin-publish.test.ts
Adds plugin/mcp.json to the publish plan as mcp.json. Tests check the plan entry and verify that the published file matches the source.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · previous review 3a2cf

This PR adds a declaration for the public MCP server and includes it in the publish plan. No concrete merge-blocking risk was identified. The separate dependency audit CI failure is unrelated to these changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses the Conventional Commits form with type feat and scope plugin. Plugin is a new scope, which the requirements allow when it names a real area. The subject is imperative and lowercase. Th…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title uses the Conventional Commits form with type feat and scope plugin. Plugin is a new scope, which the requirements allow when it names a real area. The subject is imperative and lowercase. The title matches the main change, which declares the public MCP server in plugin/mcp.json. It does not carry a breaking-change marker, and the changeset adds no breaking change to the wire contract, command stdout, or published ring content.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9bfd567 and 3a2cfac.

Files selected for processing: 4

  • plugin/mcp.json
  • scripts/plugin-conformance.test.ts
  • scripts/plugin-publish.test.ts
  • scripts/plugin-publish.ts

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

yeouchien-wego and others added 2 commits November 12, 2026 09:04
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1794389158-plugin-public-mcp branch from 3a2cfac to 2dd04dd Compare November 12, 2026 09:05
@yeouchien-wego
yeouchien-wego merged commit 5b5f39a into main Nov 12, 2026
2 checks passed
@yeouchien-wego
yeouchien-wego deleted the devin/1794389158-plugin-public-mcp branch November 12, 2026 09:13
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.

2 participants