feat: import OpenAPI and GraphQL specs as MCP tools#198
Open
daltoniam wants to merge 1 commit into
Open
Conversation
Let users bring their own API by pasting an OpenAPI 3.x document or a GraphQL introspection result. Each import becomes a live integration whose operations are exposed as searchable, executable MCP tools, with a management page in the web UI and live reload so new tools appear without a restart. Also fixes two issues that prevented imported tools from being reachable: config loading silently discarded imports on every read, and the enabled-integration lookup used by search indexing and execute resolution ignored imports entirely. Co-Authored-By: Crush <noreply@anthropic.com>
acmacalister
approved these changes
Jul 1, 2026
acmacalister
left a comment
Collaborator
There was a problem hiding this comment.
CI/status checks all passing (build, test, lint, security). Clean PR — follows project conventions, comprehensive test coverage, no blocking issues found. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
How it works
specimport/package parses a spec into a runtimeIntegration(Load), and aSyncerreconciles the registry against config on startup and on every config change — it only ever touches integrations it registered, never built-ins.spec_importsand injected server-side credentials never reach the model.Fixes bundled in
Two bugs discovered during live testing that made imported tools invisible to
search/executeeven though they showed as active in the UI:Verification
Tested end-to-end against the live Swagger Petstore: search returns the imported tools and
executeperforms real upstream calls (valid IDs return data, invalid IDs return the upstream 404). Full CI passes (build, vet, race tests, lint).💘 Generated with Crush