Skip to content

feat(mcp): add MCP add/approve, permissions test, and improve skill remove#67

Merged
jom-sq merged 1 commit intomainfrom
jom/feature-mcp-skill-management
Feb 23, 2026
Merged

feat(mcp): add MCP add/approve, permissions test, and improve skill remove#67
jom-sq merged 1 commit intomainfrom
jom/feature-mcp-skill-management

Conversation

@jom-sq
Copy link
Copy Markdown
Collaborator

@jom-sq jom-sq commented Feb 23, 2026

PR 2: MCP & Skill Management UI

Implements the MCP & Skill Management UI from the feature parity plan.

Changes

Server (server/lib/skills.ts, server/routes/skills.ts):

  • addMcp(name, source) — wraps amp mcp add
  • approveMcp(name) — wraps amp mcp approve
  • testPermission(tool, cmd) — wraps amp permissions test
  • Routes: /api/mcp-add (POST), /api/mcp-approve (POST), /api/permissions-test (POST)

Command Palette (src/commands/):

  • mcp: add server — two-step InputModal (name → source command)
  • mcp: approve server — InputModal for server name
  • permissions: test — two-step InputModal (tool → command)

Skill Remove improvement (src/hooks/useModalActions.ts):

  • Now fetches installed skills list via /api/skills-summary before showing the remove dialog
  • Displays available skill names in the modal label for easier selection

Verification

  • pnpm typecheck
  • pnpm test ✅ (242 tests pass)

@jom-sq jom-sq force-pushed the jom/feature-mcp-skill-management branch from 085d6b0 to 123be41 Compare February 23, 2026 15:51
@jom-sq jom-sq marked this pull request as ready for review February 23, 2026 18:27
@jom-sq jom-sq force-pushed the jom/feature-mcp-skill-management branch from 123be41 to c122b7c Compare February 23, 2026 21:26
…emove

- Add addMcp() and approveMcp() server functions wrapping amp mcp add/approve
- Add testPermission() server function wrapping amp permissions test
- Add /api/mcp-add, /api/mcp-approve, /api/permissions-test routes
- Add mcp: add server and mcp: approve server commands to command palette
- Add permissions: test command to command palette
- Improve skill remove to fetch installed skills list before showing picker
- Wire all new handlers through useModalActions and useAppModalHandlers
- Two-step InputModal flow for MCP add (name → source) and permissions test (tool → cmd)

Co-authored-by: Amp <amp@ampcode.com>
@jom-sq jom-sq force-pushed the jom/feature-mcp-skill-management branch from c122b7c to e45d78f Compare February 23, 2026 21:30
@jom-sq jom-sq merged commit e0bc81e into main Feb 23, 2026
4 checks passed
@jom-sq jom-sq deleted the jom/feature-mcp-skill-management branch February 23, 2026 21:32
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