Skip to content

feat(mcp): better /mcp UX with interactive add, status view, and TUI support #136

@justrach

Description

@justrach

Summary

The current /mcp command is CLI-only (graff mcp list/import/remove/show/reload) and not available in the codegraff TUI at all. Typing /mcp in the TUI silently sends it to the LLM. We need a much better experience, inspired by opencode's MCP UX.

What opencode does well

  • mcp add — interactive guided prompts to add local (subprocess) or remote (HTTP/SSE) servers
  • mcp ls — unified status view showing connection state, disabled status, and auth requirements in one glance
  • mcp auth/logout — first-class OAuth lifecycle as dedicated subcommands
  • Per-agent tool scoping — global disable + per-agent enable

What we need

  1. Wire /mcp into the codegraff TUI command palette
  2. Interactive mcp add — guided flow instead of raw JSON import
  3. Rich status view — connection state, tool count, errors, auth status at a glance
  4. TUI-native MCP panel — browse servers, tools, and status without leaving the TUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureBrand new functionality, features, pages, workflows, endpoints, etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions