Skip to content

MCP connection setup UI should validate, connect, discover, and test a user-provided endpoint #266

Description

@serge-ivo

Problem

The current MCP-client setup is just agent settings fields like mcp_url and auth_mode. That is not enough for the user expectation: “give it a URL and it configures itself to operate an app.”

Even if backend OAuth works, users need a guided connection lifecycle that validates the endpoint, completes auth, discovers capabilities, chooses allowed tools, and verifies the connection.

Expected behavior

Instance settings should have a first-class MCP connection setup flow:

  1. Enter MCP endpoint URL.
  2. Validate URL and transport support.
  3. Discover auth requirements and start browser sign-in if needed.
  4. Run protocol/version negotiation.
  5. Fetch tool/resource/prompt catalogs.
  6. Let user enable allowed capabilities and write/destructive consent.
  7. Run a safe test call.
  8. Save connection state and show health/status.

Acceptance criteria

  • Settings page shows an MCP Connections section for agents with outbound MCP capability.
  • User can add, rename, reconnect, disconnect, and refresh an MCP endpoint connection.
  • Connection status distinguishes unconfigured, auth required, connected, expired, unsupported protocol, unreachable, and permission denied.
  • Successful setup populates the remote tool catalog for MCP agent instances should import remote MCP tools as first-class callable tools #261.
  • Safe test action validates auth and protocol without requiring write consent.
  • Errors are actionable and do not expose tokens/secrets.
  • Multiple MCP endpoints per instance are supported or intentionally constrained with clear UI copy.

Related

Code pointers

  • store/console/src/tabs/SettingsTab.tsx
  • workers/api/src/routes/tools.ts
  • workers/api/src/lib/connectors/mcp.ts
  • workers/api/src/lib/instance-settings.ts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions