Marketplace catalog discovery, install, removal, and installed-item detection
lived in the VS Code extension, so any other editor client would have had to
reimplement catalog parsing, scope resolution, config writing, and archive
extraction.
Move that logic behind three CLI endpoints and make the extension a client of
them, so every editor shares one marketplace implementation over the SDK:
GET /kilocode/marketplace catalog + installed detection per scope
POST /kilocode/marketplace/install install an MCP server, agent, or skill
POST /kilocode/marketplace/remove remove an MCP server, agent, or skill
No user-visible change in VS Code. The panel UI and suggestion relevance stay
client-side, since relevance depends on installed VS Code extensions.
The contract is shaped for generated clients so the JetBrains plugin can build
on it: response and model schemas are named rather than inline, and install
takes an item's type, id, and content instead of a full catalog entry.