Draft
Conversation
Bumps [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3) from 3.964.0 to 3.968.0. - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.968.0/clients/client-s3) --- updated-dependencies: - dependency-name: "@aws-sdk/client-s3" dependency-version: 3.968.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Add a Model Context Protocol (MCP) server for the FOAS CLI that enables AI agents to load, filter, and explore OpenAPI specifications. Features: - Tools: load_spec, filter_spec, export_spec, unload_spec, list_specs - Resources: /operations, /tags, /paths, /schemas (list and detail) - In-memory registry for loaded specs (max 50) - Reuses existing filter/slice functionality Build with: make build-mcp Binary: ./bin/openapi-mcp
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
This PR adds a Model Context Protocol (MCP) server POC for the FOAS CLI that enables AI agents to load, filter, and explore OpenAPI specifications.
Features
Tools
load_spec- Load an OpenAPI spec from diskfilter_spec- Filter a spec by tags, operation IDs, or pathsexport_spec- Save a spec to disk (JSON or YAML)unload_spec- Remove a spec from memorylist_specs- List all loaded specsResources
List Resources:
openapi://{alias}/operations- List all operationsopenapi://{alias}/tags- List all tagsopenapi://{alias}/paths- List all pathsopenapi://{alias}/schemas- List all schemasDetail Resources:
openapi://{alias}/operations/{operationId}- Get operation detailsopenapi://{alias}/tags/{tagName}- Get operations for a tagopenapi://{alias}/paths/{path}- Get operations for a pathopenapi://{alias}/schemas/{schemaName}- Get schema definitionUsage
Build
cd tools/cli make build-mcpConfigure with Augment
{ "mcpServers": { "openapi": { "command": "/path/to/openapi-mcp" } } }Implementation Details
github.com/modelcontextprotocol/go-sdk)slice.Slice()for filteringopenapi.Save()for exportFiles Changed
tools/cli/cmd/mcp/main.go- Entry pointtools/cli/internal/mcp/registry/- Spec storagetools/cli/internal/mcp/tools/- MCP toolstools/cli/internal/mcp/resources/- MCP resourcestools/cli/Makefile- Build targetsPull Request opened by Augment Code with guidance from the PR author