Repository navigation
feat(personal-mcp): add connector catalog and registry-read tools - #55
Conversation
An agent wiring up a workflow could only use MCP servers and skills that were already in the project, or hand-write a server from scratch. The catalogs the UI browses were unreachable: no search, no way to read an entry, no install. Five read/install tools close that: search_connector_catalog (curated browse, full-mirror search), get_connector (install targets and their declared inputs), install_connector, get_mcp_server (wiring, connector provenance, tool drift), and get_registry_skill (a registry skill's SKILL.md plus its audit verdict, without installing it first). Two deliberate refusals: get_mcp_server returns header/env KEYS only, never values, and get_registry_skill installs nothing — reading a third-party prompt before it runs is the point. install_connector reuses MCP::ConnectorInstaller, so a catalog install over MCP behaves exactly like the web one, including the mirrored-manifest fallback and the 401-detected needs_auth signal. SkillsRegistryService.unresolved_message becomes public: a second caller now has to explain an unresolvable id, and duplicating the wording is how "not found" starts hiding "that publisher has no index". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
The skills page and search_skill_registry answered the same question with different code, and the tool's answers were worse: it called the registry transport directly, so a search result arrived without the description or the audit verdict the mirror holds, with no mirror fallback when upstream was unreachable, and without recording the term that steers the next sweep. An agent choosing a skill saw less than a person choosing the same skill. Skills::CatalogSearch now owns browse-vs-upstream, the cache, term recording, the mirror merge and the unsaved transient rows; both callers ask it. The tool serializes through CatalogSkillResource, the same resource the page renders, so audit verdicts reach agents too. Result ids move from `id` to `registry_id`, matching the page: a live upstream hit has no mirror row behind it, so a database id would be null exactly when the entry is newest. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Update: skills side brought to the same shape
New Behaviour change worth noting in review: result identity moved from New tests:
|
* origin/develop: feat(personal-mcp): add connector catalog and registry-read tools (AixleHQ#55) fix(workflows): offer company assets in the workflow asset pickers (AixleHQ#56) feat(mcp): add sub-step update, delete and reorder tools (AixleHQ#54) feat(workflows): pick repositories and assets on a workflow step (AixleHQ#53)
Why
Over personal MCP an agent could only wire up MCP servers and skills that were already in the project, or hand-write a server from scratch with
create_mcp_server. The catalogs the UI browses were unreachable: no connector search, no way to read an entry before installing it, no install path at all. Skills were half-covered —search_skill_registryandinstall_skillexisted, but nothing could read a skill's actual instructions before installing it.What
search_connector_catalogget_connectorinstall_connectorMCP::ConnectorInstallerget_mcp_serverget_registry_skillSerialization for
get_connectorgoes throughConnectorResource(withsnake_keys: true), so the manifest dialect stays understood in exactly one place instead of being re-read here and drifting from the UI's reading.Deliberate refusals
get_mcp_serverreturns header/env KEYS only, never values. A value there can be a bearer token or an API key;MCPServerResourcemasks them for the browser and a read tool has no better claim to them.get_registry_skillinstalls nothing. A third-party SKILL.md is prompt text your agents will follow — being able to read it before it runs is the whole point of the tool.install_connectordoesn't reimplement installing. It callsMCP::ConnectorInstaller, so an MCP install behaves like the web one: manifest re-fetched at install time, mirrored-manifest fallback reported asinstalled_from_mirror, and the 401-detectedneeds_authsignal with a next step (OAuth needs a browser, so it names the UI).Incidental change
SkillsRegistryService.unresolved_messageis no longer private.installused to be its only caller; now the read tool must explain an unresolvable id too, and two callers inventing their own wording is how "not found" starts hiding "that publisher publishes no skill index".Tests
personal_mcp_resource_crud_test.rb— secret values withheld fromget_mcp_server, provenance + update-available, cross-project refusal, curated-vs-search scoping (incl. a registry-pulled entry staying undiscoverable), targets/inputs/already-installed, install of a sole target, the multi-target and uninstallable errors, registry skill read with audit verdict, and both unresolvable-id messages. Registry access is stubbed atMCP::ConnectorRegistryClient/SkillsRegistryService— the app-owned adapters — so the installer under test still runs for real.make check_allgreen on this branch (backend 90.8%, frontend 78.31%).🤖 Generated with Claude Code