openapi-diff
MCP server from lordofthejars/openapi-diff-mcp-server
How to use
The openapi-diff MCP server from lordofthejars enables developers to efficiently compare two OpenAPI specifications, allowing for seamless tracking of changes in API definitions. This tool streamlines the process of identifying differences between API versions, making it invaluable for maintaining backward compatibility and ensuring smooth API evolution.
Once connected to the openapi-diff MCP server, you can submit comparison requests by providing two OpenAPI specification files. The server will analyze the differences and return a detailed report highlighting any additions, removals, or modifications in the API endpoints and schemas. Utilize RESTful commands for optimal results, and ensure your API specs are in JSON or YAML format for compatibility.
How to install
Prerequisites
- Ensure you have Node.js installed on your system. You can check your installation with
node -v.
Option A: Quick start with npx
You can quickly start using openapi-diff with the following command:
npx -y lordofthejars/openapi-diff-mcp-server
Option B: Global install alternative
To install the server globally, use:
npm install -g lordofthejars/openapi-diff-mcp-server
This allows you to run the server from anywhere on your system.
Additional notes
For optimal performance, consider setting environment variables for configuration, such as specifying the port the server runs on. Common gotchas include ensuring the OpenAPI specification files are correctly formatted and accessible to avoid errors during comparison. Always validate your API specs before running comparisons to ensure accurate results.