Skip to content

feat(personal-mcp): add connector catalog and registry-read tools - #55

Merged
artempartos merged 2 commits into
developfrom
feat/mcp-catalog-tools
Aug 7, 2026
Merged

artempartos merged 2 commits into
developfrom
feat/mcp-catalog-tools

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

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_registry and install_skill existed, but nothing could read a skill's actual instructions before installing it.

What

Tool Does
search_connector_catalog Curated browse with no query, full-mirror search with one — the same split as the MCP servers page, because the upstream registry API only matches name substrings
get_connector One catalog entry: every install target (remote endpoint or package, with the exact launch command) and the inputs it declares, plus which servers in this project already came from it
install_connector Installs a target as an MCP server via MCP::ConnectorInstaller
get_mcp_server One configured server in full: transport/endpoint, connector provenance and version, tool-baseline drift, auth state
get_registry_skill A registry skill's full SKILL.md without installing it, plus the mirrored catalog's audit verdict

Serialization for get_connector goes through ConnectorResource (with snake_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_server returns header/env KEYS only, never values. A value there can be a bearer token or an API key; MCPServerResource masks them for the browser and a read tool has no better claim to them.
  • get_registry_skill installs 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_connector doesn't reimplement installing. It calls MCP::ConnectorInstaller, so an MCP install behaves like the web one: manifest re-fetched at install time, mirrored-manifest fallback reported as installed_from_mirror, and the 401-detected needs_auth signal with a next step (OAuth needs a browser, so it names the UI).
  • Ambiguity is an error, not a guess: with several supported targets the tool names the ids instead of picking one, and an uninstallable connector comes back with the registry's own reason.

Incidental change

SkillsRegistryService.unresolved_message is no longer private. install used 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 from get_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 at MCP::ConnectorRegistryClient / SkillsRegistryService — the app-owned adapters — so the installer under test still runs for real.

make check_all green on this branch (backend 90.8%, frontend 78.31%).

🤖 Generated with Claude Code

artempartos and others added 2 commits August 8, 2026 00:44
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]>
@artempartos

Copy link
Copy Markdown
Contributor Author

Update: skills side brought to the same shape

search_skill_registry was the odd one out. It called SkillsRegistryService.search (i.e. the registry transport) directly, while the skills page went through its own controller helpers — so on a typed query the tool returned strictly less than the page:

  • no description and no audit verdict (both live on mirrored rows, which the page merges in and the tool never did)
  • no mirror fallback when upstream was unreachable or empty — the agent got an empty catalog where a person saw results
  • no search-term recording, so agent demand never steered the catalog sweep
  • no min-query-length handling: a 1-character query went upstream and came back with nothing instead of browsing

New Skills::CatalogSearch owns the whole rule set — browse-vs-upstream, the 5-minute cache, term recording, the mirror merge, and returning unsaved rows for unmirrored hits — and both the controller and the tool now ask it. The tool serializes through CatalogSkillResource, the same resource the page renders, so audit verdicts reach agents. The controller lost ~60 lines of private helpers; its existing tests (default view, one-per-publisher, min-query, upstream order without persisting, mirror fallback, term recording) cover the extraction unchanged.

Behaviour change worth noting in review: result identity moved from id to registry_id, matching what the page has always sent. A live upstream hit has no mirror row behind it, so a database id would be null exactly when the entry is newest. install_skill takes that same string, so nothing else changes.

New tests: test/services/skills/catalog_search_test.rb (browse dedup, min-query never touching upstream, mirrored rows reused with verdict intact and unmirrored ones left unsaved, id-without-slash fallback, empty-upstream mirror fallback, term recorded once / never for short queries) plus two tool-level tests asserting the verdict actually arrives over MCP.

make check_all green again on the branch.

@artempartos
artempartos merged commit d2e0991 into develop Aug 7, 2026
7 checks passed
alex-astafyev pushed a commit to alex-astafyev/flow that referenced this pull request Aug 19, 2026
* 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)
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