feat: [AI-6948] register mcps slash command in server command list

Merged
AL
5mo ago
+10-0

Summary

  • Register /mcps in altimate-code's server command list (command/index.ts) so it appears in the slash autocomplete in the Altimate Code Chat webview
  • The command description: "list added MCP servers and their connection status"
  • The webview intercepts /mcps client-side (see companion PR) — this server-side registration ensures autocomplete works and provides a fallback template if ever routed through the LLM

Changes

  • packages/opencode/src/command/index.ts — add MCPS: "mcps" to Default constants; register mcps command entry with description and minimal template

Test plan

  • GET /command returns mcps in the command list
  • tsc --noEmit exits 0 in packages/opencode

Companion PR in vscode-altimate-mcp-server: AltimateAI/vscode-altimate-mcp-server#356

Requested by @saravmajestic via harness

Jira: AI-6948


Summary by cubic

Registers /mcps in altimate-code server commands so it shows in slash autocomplete and has a server-side fallback template. Addresses AI-6948 by letting users list configured MCP servers and their connection status from chat.

  • New Features
    • Added MCPS: "mcps" to Command.Default and registered /mcps with description and minimal template in packages/opencode/src/command/index.ts.
    • Keeps webview interception working, while providing a safe server fallback if /mcps is routed through the LLM.