Skip to content

feat: add MCP server lifecycle commands (mcp-add, mcp-auth, mcp-remove, mcp-enable, mcp-disable) - #31

Merged
mateuszk-opera merged 2 commits into
mainfrom
feat/mcp-server-management
Aug 31, 2026
Merged

feat: add MCP server lifecycle commands (mcp-add, mcp-auth, mcp-remove, mcp-enable, mcp-disable)#31
mateuszk-opera merged 2 commits into
mainfrom
feat/mcp-server-management

Conversation

@mateuszk-opera

Copy link
Copy Markdown
Contributor

Five new CLI commands to manage MCP servers in the browser:

  • mcp-add — register, connect, and authenticate (if needed). Transparently switches to headed mode for OAuth popups, then restores.
  • mcp-auth — standalone OAuth re-authentication for a registered server. Requires headed mode.
  • mcp-remove — unregister a server and its stored auth tokens.
  • mcp-enable / mcp-disable — toggle without unregistering.

opera_authenticate_mcp_server is added to OPERA_AI_TOOLS (long timeout, non-replayable) in both bridge.ts and client.ts. The other lifecycle tools (register, connect, unregister, enable, disable) are regular MCP calls with standard timeouts.

…e, mcp-enable, mcp-disable)

Five new CLI commands to manage MCP servers in the browser:

- mcp-add <name> <url> — register, connect, and authenticate (if needed).
  Transparently switches to headed mode for OAuth popups, then restores.
- mcp-auth <name> — standalone OAuth re-authentication for a registered
  server. Requires headed mode.
- mcp-remove <name> — unregister a server and its stored auth tokens.
- mcp-enable <name> / mcp-disable <name> — toggle without unregistering.

opera_authenticate_mcp_server is added to OPERA_AI_TOOLS (long timeout,
non-replayable) in both bridge.ts and client.ts. The other lifecycle
tools (register, connect, unregister, enable, disable) are regular MCP
calls with standard timeouts.
Comment thread src/cli.ts
Comment thread src/cli.ts
@mateuszk-opera
mateuszk-opera merged commit ea2ae8f into main Aug 31, 2026
2 checks passed
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