Skip to content

fix(mcp): keep server configuration inline in MCP panel#238

Merged
echobt merged 1 commit intomasterfrom
fix/mcp-inline-config
Jan 27, 2026
Merged

fix(mcp): keep server configuration inline in MCP panel#238
echobt merged 1 commit intomasterfrom
fix/mcp-inline-config

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 27, 2026

Summary

Replace separate card/modal UI with inline form for Add MCP Server. Configuration now happens directly within the MCP Servers panel instead of opening a separate McpCard overlay.

Changes

  • Add InlineFormField and InlineFormState types for inline forms in interactive/state.rs
  • Add form rendering support to InteractiveWidget in interactive/renderer.rs
  • Add form input handling to interactive handlers
  • Add FormSubmitted result variant to InteractiveResult
  • Modify __add__ action to open inline form instead of McpCard
  • Add handle_inline_form_submission for processing form data

Rationale

The user requested that all MCP configuration stays in the existing MCP Servers panel:

╭ MCP Servers (0/1) ──────────────────────────────────────────────╮
│ Type to search...                                               │
│ > Add MCP Server  (Configure a new server)                      │
│   View All Tools  (List tools from all running servers)         │
│   Reload All Servers  (Restart all MCP servers)                 │
│   --- Configured Servers ---                                    │
│   test  (stopped - 0 tools)                                     │
╰─────────────────────────────────────────────────────────────────╯

Now when clicking "Add MCP Server", the form appears inline in this same panel rather than opening a separate card/modal.

Replace separate card/modal UI with inline form for Add MCP Server.
Configuration now happens directly within the MCP Servers panel instead
of opening a separate McpCard overlay.

Changes:
- Add InlineFormField and InlineFormState types for inline forms
- Add form rendering support to InteractiveWidget
- Add form input handling to interactive handlers
- Add FormSubmitted result variant to InteractiveResult
- Modify __add__ action to open inline form instead of McpCard
- Add handle_inline_form_submission for processing form data

This keeps the UX consistent - all MCP configuration stays in the same
panel where servers are listed.
@echobt echobt merged commit 942b944 into master Jan 27, 2026
2 of 3 checks passed
@echobt echobt deleted the fix/mcp-inline-config branch January 27, 2026 13: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.

2 participants