MCP server bridging specs (Linear / JIRA / GitHub Issues / Notion / Markdown / Figma) to tests, with bidirectional traceability and a spec-quality coach (AI 規格大師)
Project description
MK Spec Master
AI 規格大師 — specs in, scenarios out. Bidirectional traceability so you always know what's tested.
English · 繁體中文
Spec-driven testing over MCP. Turn Linear / JIRA / GitHub Issues / Notion / Figma / Markdown specs into runnable scenarios, hand off to any test runner via
mk-qa-master, and keep a live spec ↔ test coverage matrix.
⚠️ Alpha — v0.1 MVP. 7 tools shipped (markdown_local + github_issues sources). Full design in
docs/prd.md. Next: Linear / JIRA adapters + coverage matrix in v0.2.
Install
uvx mk-spec-master # or: pip install mk-spec-master
Add to your MCP client config:
{
"mcpServers": {
"mk-spec-master": {
"command": "uvx",
"args": ["mk-spec-master"],
"env": {
"SPEC_SOURCE": "markdown_local",
"SPEC_PROJECT_ROOT": "/path/to/your/project"
}
}
}
}
Then in Claude / Cursor / Codex / Gemini CLI:
"Use mk-spec-master to parse SPEC-001, extract scenarios, and hand them to mk-qa-master so we can generate Playwright tests."
What this is
An MCP server that turns specs — Linear tickets, JIRA stories, GitHub Issues, Notion pages, Figma annotations, plain Markdown — into structured test scenarios, hands them to any test runner (via mk-qa-master or directly), and maintains a live spec ↔ test coverage matrix.
Sibling to mk-qa-master in the mk-* family of opinionated AI-QA MCPs.
Why this is missing from the ecosystem
| Tool | Lock-in | What we do differently |
|---|---|---|
| AWS Kiro | AWS IDE only, proprietary | MCP-native, multi-client, open source |
| Jama Connect MCP | $50k+/year, enterprise-only | SMB / indie / AI-native segment |
| GitHub Spec Kit | spec→code; runtime test coverage out of scope | We add runtime test coverage |
| testomat.io / JIRA MCPs | Single source (JIRA), SaaS lock | Multi-source, file-based index, no lock |
See docs/prd.md §4 for the full positioning.
Tool surface (v0.1)
| Tool | Purpose |
|---|---|
get_spec_source_info |
Active adapter + all available — call this first |
list_specs |
Enumerate specs from the active source (filter by status / label / limit) |
fetch_spec |
Pull a single spec's full content by id |
parse_spec |
Heuristic AC extraction (en + zh-TW + zh-CN headings supported); accepts spec_id or raw_text |
extract_scenarios |
AC → scenarios with happy / edge / error classification (negation-aware) and best-effort Given/When/Then split |
generate_test_plan |
One-shot fetch + parse + extract → markdown plan ready to feed to mk-qa-master.generate_test(business_context=...) |
link_test_to_spec |
Record that a test verifies a spec (writes to SPEC_PROJECT_ROOT/.mk-spec-master/index.json) |
More arrive in v0.2 — get_coverage_matrix, get_drift_report, analyze_spec_quality, propose_spec_improvements (the spec-quality coach).
Adapter status
SPEC_SOURCE |
Source | Status | Auth |
|---|---|---|---|
markdown_local |
Local *.md with YAML-ish frontmatter |
✅ v0.1 | none |
github_issues |
GitHub Issues via gh CLI |
✅ v0.1 | gh auth login or GITHUB_TOKEN |
linear |
Linear API | ⬜ v0.2 | LINEAR_API_KEY |
jira |
JIRA Cloud / Server | ⬜ v0.2 | JIRA_API_TOKEN + JIRA_BASE_URL |
notion |
Notion databases | ⬜ v0.3 | NOTION_TOKEN |
figma |
Figma annotations + comments | ⬜ v0.3 | FIGMA_TOKEN |
Walkthrough — spec → test → coverage
Given a Linear ticket LIN-123 "Apply discount at checkout" with 4 acceptance criteria:
You: Use mk-spec-master to fetch LIN-123, extract scenarios, generate
Playwright tests with mk-qa-master, run them, and report coverage.
The AI client chains:
mk-spec-master.fetch_spec("LIN-123")
mk-spec-master.parse_spec(spec_id="LIN-123") → 4 AC
mk-spec-master.extract_scenarios(...) → 1 happy + 3 error
mk-spec-master.generate_test_plan(spec_id="LIN-123")
for scenario in plan:
mk-qa-master.generate_test(business_context=scenario.gherkin)
mk-spec-master.link_test_to_spec(spec_id="LIN-123", test_node_id=...)
mk-qa-master.run_tests
The traceability index now records all 4 links. Next sprint, when the spec changes, get_drift_report (v0.2) will flag tests that may be stale.
Status
| Milestone | Target | Status |
|---|---|---|
| v0.1 (MVP — markdown_local + github_issues, 7 tools) | June 2026 | ✅ Shipped |
| v0.2 (Linear, JIRA, coverage matrix, spec-quality coach) | Aug 2026 | ⬜ |
| v0.3 (Notion, Figma, auto-link, optimization plan) | Oct 2026 | ⬜ |
| v1.0 (production-ready, docs, integration recipes) | Q4 2026 | ⬜ |
Family
mk-qa-master— AI 測試大師, the test-runner sibling. Tests run via mk-qa-master; coverage tracked here.- More
mk-*MCPs in design (mk-perf-master,mk-a11y-master).
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mk_spec_master-0.1.1.tar.gz.
File metadata
- Download URL: mk_spec_master-0.1.1.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dffb627baf6ab99484ff4f5648a5a83f153d0eab7987e792606499109de3f61
|
|
| MD5 |
fc7f03d560d86e204be402262628f0c8
|
|
| BLAKE2b-256 |
9903afd28179fbcbab52ee6826d5d3895db9ed2b98d03ae096b9bcb12c69f82b
|
Provenance
The following attestation bundles were made for mk_spec_master-0.1.1.tar.gz:
Publisher:
publish.yml on kao273183/mk-spec-master
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mk_spec_master-0.1.1.tar.gz -
Subject digest:
6dffb627baf6ab99484ff4f5648a5a83f153d0eab7987e792606499109de3f61 - Sigstore transparency entry: 1548627325
- Sigstore integration time:
-
Permalink:
kao273183/mk-spec-master@6324371eb7d5c310b0c542c9bcee195dfa1501b4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kao273183
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6324371eb7d5c310b0c542c9bcee195dfa1501b4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mk_spec_master-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mk_spec_master-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85a0e9752dce2216ae4aa4b69486f30ee5e06f60d9e6e6e4e68e3c9889c3504e
|
|
| MD5 |
c44aa99a08a8b7eb11078342c79461af
|
|
| BLAKE2b-256 |
312201e0314bde846149d12ef70fd00c03c1b9d3cb643a1e5a68245ff3924488
|
Provenance
The following attestation bundles were made for mk_spec_master-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on kao273183/mk-spec-master
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mk_spec_master-0.1.1-py3-none-any.whl -
Subject digest:
85a0e9752dce2216ae4aa4b69486f30ee5e06f60d9e6e6e4e68e3c9889c3504e - Sigstore transparency entry: 1548627340
- Sigstore integration time:
-
Permalink:
kao273183/mk-spec-master@6324371eb7d5c310b0c542c9bcee195dfa1501b4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kao273183
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6324371eb7d5c310b0c542c9bcee195dfa1501b4 -
Trigger Event:
release
-
Statement type: