Skip to content
프로젝트

소개

Shift-left API Integration | Auto-fix integration drift before integration. Specmatic turns API specifications into executable contracts, continuously verifying that every change made by AI coding agents and engineers stays true to the desired behaviour. Ship AI-ready APIs 10x faster, from intent to implementation, with Spec-Driven API Development.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+2
in 15 days
+4
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Specmatic

Maven Central GitHub release CI Build Twitter Follow Docker Pulls

Shift-left API Integration and auto-fix integration drift before integration

Specmatic turns API specifications into executable contracts, continuously verifying that every change made by AI coding agents and engineers stays true to the desired behaviour. Ship AI-ready APIs 10x faster, from intent to implementation, with Spec-Driven API Development.

Context

In a complex, interdependent ecosystem, where each service is evolving rapidly, esp with AI-coding agents, we want to make the dependencies between them explicit in the form of executable contracts.

Design, build, test and govern high-quality, AI-ready APIs at scale. Spec-Driven API Development drives every stage of the API lifecycle from the same API specifications, turning OpenAPI/Swagger, AsyncAPI, GraphQL SDL files, gRPC Proto files, Arazzo and WSDL into executable contracts. Scribe is your AI-native API designer, taking you from idea to AI-ready API specifications. Skeptic is your API linter, validating your API specifications and examples. Studio is your visual workspace for spec-driven contract testing and mocking, while Core brings the same capabilities to developer workflows and CI/CD through the command line. Insights is your continuous governance control plane for optimising your API ecosystem. Genie is your agent harness, enabling AI coding agents to work across the entire API development lifecycle.

Learn more at specmatic.io 🌐

Get started now 🚀

Specmatic - Contract Driven Development - YouTube playlist

YouTube playlist 📺

MCP Auto Test over stdio

Pass the server executable and one --arg per argument. Use --arg=value for arguments that start with a dash.

specmatic mcp test --transport-kind STDIO --command python --arg=-m --arg=my_mcp_server

Specmatic starts the server for the test run and closes its stdin during shutdown. The server sends MCP messages on stdout and diagnostic output on stderr. Use --working-directory to set the server's working directory and --env NAME=VALUE to override a variable in its inherited environment.

For a config-driven run, set mcp.test.transportKind to STDIO and mcp.test.command to the executable. The default transport for mcp.test is STREAMABLE_HTTP. Optional stdio fields are args, env, and workingDirectory. A relative workingDirectory is resolved from the configuration file.

Test Specmatic's MCP server locally

Run the Kotlin end-to-end test from the repository root with Java and Git available.

./gradlew :specmatic-executable:test --tests 'application.mcp.SpecmaticMcpAutoTest'

The tests launch the compiled CLI and MCP server as separate processes, run a functional scenario for each of the five tools, and run MCP Auto Test with --enable-resiliency-tests. They use a local HTTP fixture and a temporary Git repository. A mock lifecycle test starts a mock over MCP, checks that an HTTP request returns the contract example, stops the mock, and verifies that it disappears from the inventory and releases its port. JUnit retains the temporary files on failure.

To test a different server build, pass -PspecmaticMcpServerJar=/path/to/specmatic.jar to the same Gradle command.

Specmatic Tests Orchestrator

The existing Java Build with Gradle workflow triggers specmatic/specmatic-tests-orchestrator after the snapshot publish step on main. It can also be run manually from the same workflow.

The caller-owned manifest lives at .github/test-executor.json. gradle.yml reads that file and embeds its JSON content as orchestrator_options.test_executor_json, so the orchestrator does not need to know this repository's file layout.

How it runs:

  1. gradle.yml builds Specmatic on the configured OS matrix.
  2. On main, after Publish Snapshot completes on Ubuntu, it creates OS-scoped commit statuses and dispatches the orchestrator once per configured runner label.
  3. For a manual run, open Actions -> Java Build with Gradle, click Run workflow, and provide ENTERPRISE_VERSION if you want something other than the default SNAPSHOT selector.
  4. Leave TEST_EXECUTOR_JSON_PATH as .github/test-executor.json unless you want to embed another manifest from this repository.
  5. The orchestrator always dispatches the target repository workflows from the embedded manifest in parallel.

The workflow creates OS-scoped commit statuses such as Ubuntu - Specmatic Orchestrator Gate and Windows - Specmatic Orchestrator Gate. While the orchestrator is running, those statuses remain pending. After the callback completes, use the repository commit status popover or the workflow summary to open each gate's Details link, which points to the exact specmatic-tests-orchestrator run. The orchestrator run uploads outputs/orchestration-summary.json and outputs/index.html as artifacts.

관련 프로젝트 살펴보기

불러오는 중…