Skip to content

fix: remove the mcp capability - #4

Merged
kpal81xd merged 1 commit into
mainfrom
fix/remove-mcp-capability
Oct 12, 2026
Merged

kpal81xd merged 1 commit into
mainfrom
fix/remove-mcp-capability

Conversation

@kpal81xd

Copy link
Copy Markdown
Owner

Clears the last "Uses a credential from the user's machine" finding: server/mcphost.ts expanded ${VAR} references from the environment into MCP server configs.

The mcp capability let a published page call the viewer's local MCP servers live (self-refreshing dashboards). It's outside the plugin's focus, 3D mockups and comment-driven edits, so it's removed entirely:

  • server/mcphost.ts, the daemon's /_frame/api/mcp/* routes and one-time approvals
  • the viewer's consent and "run this tool" prompts, the runtime's mcp handling, caps.js's mcp namespace
  • mcp from the capability roster and grants; the skill, prompts and README no longer mention it
  • its tests and the mcp-notes.mjs fixture

Claude's own MCP tools in the session are unaffected. Comments, monitors, 3D scenes, db, files and room are unchanged.

Smoke test

  1. Publish a page that declares capabilities: { mcp: {} } → publish is refused with unknown capability "mcp".
  2. Publish a 3D mockup, leave a comment on an object and send it to Claude → the session picks it up and Claude edits the scene.
  3. Publish a page with files, open the permissions shield → it lists "Read project files" only.

pages calling the viewer's MCP servers live isn't part of the plugin's focus (3d mockups and comment-driven edits), and
expanding ${VAR} into those servers' configs read credentials from the environment. drops mcphost.ts, the daemon's
mcp routes and approvals, the viewer's consent and confirm prompts for it, and its runtime, docs and tests
@kpal81xd
kpal81xd merged commit 48cbc15 into main Oct 12, 2026
3 checks passed
@kpal81xd
kpal81xd deleted the fix/remove-mcp-capability branch October 12, 2026 20:42
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