SpecPrism — AI Product & QA Co-Architect
Stateless Socratic spec triage, EARS acceptance criteria, and REQ-to-TC test traceability.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"specprism": {
"command": "npx",
"args": [
"specprism"
]
}
}
}可运行的软件包
1.6.1stdio远程端点
https://spec-prism.app/mcpstreamable-http它能做什么
工具清单
工具(7)
⚪specprism_triage_idea(ideaPrompt, draftTriage, requestState, answers)
Run Stage 1 Socratic Scope & Boundary Triage before writing code. Round 1 takes ideaPrompt and returns 3-4 paired PM/Engineer Decision Cards plus an HMAC-signed requestState handle; Round 2 takes ideaPrompt, draftTriage, requestState, and answers to lock canonical ASM-* scope assumptions.
输入模式
{
"type": "object",
"properties": {
"ideaPrompt": {
"type": "string",
"description": "1-3 sentence feature or product idea (minimum 5 characters)."
},
"draftTriage": {
"type": "object",
"description": "Draft SocraticTriage object returned in MRTR Round 1; pass back in Round 2 to lock answers."
},
"requestState": {
"type": "object",
"description": "HMAC-SHA256 signed stateless MRTR state handle returned in Round 1."
},
"answers": {
"type": "array",
"description": "Selected option IDs or custom user overrides for each Socratic question in Round 2.",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"questionId": {
"type": "string",
"description": "Question identifier (e.g. Q-1)."
},
"selectedOptionId": {
"type": "string",
"description": "Chosen option identifier (e.g. Q1-A)."
},
"customUserOverride": {
"type": "string",
"description": "Optional free-text override when none of the preset options fit."
}
},
"required": [
"questionId"
]
}
}
},
"required": [
"ideaPrompt"
],
"additionalProperties": false
}🟢specprism_verify_traceability(spec, projectId)
Audit a SpecPrism spec.json document (or synced cloud projectId) read-only for vertical story touchpoints (entrySurface, domainLogic, persistenceOrExternal), canonical EARS SHALL clauses, and zero-orphan REQ-to-TC test coverage. Returns a deterministic pass/fail report with actionable violation messages.
输入模式
{
"type": "object",
"properties": {
"spec": {
"type": "object",
"description": "Full SpecIterationDocument JSON object to audit locally."
},
"projectId": {
"type": "string",
"description": "Optional synced cloud project UUID when loading the specification from SpecPrism."
}
},
"additionalProperties": false
}🟢specprism_compute_delta(baseSpec, targetSpec, changePrompt)
Compute deterministic Stage 5 ADDED, MODIFIED, and REMOVED requirement deltas (DLT-*) between baseSpec and targetSpec, classifying every TC-* test case as regression_shield, requires_update, new_test_required, or obsolete. Read-only and side-effect free.
输入模式
{
"type": "object",
"properties": {
"baseSpec": {
"type": "object",
"description": "Baseline SpecIterationDocument JSON (e.g. v1)."
},
"targetSpec": {
"type": "object",
"description": "Updated SpecIterationDocument JSON (e.g. v2)."
},
"changePrompt": {
"type": "string",
"description": "Optional human summary of why the specification evolved."
}
},
"required": [
"baseSpec",
"targetSpec"
],
"additionalProperties": false
}🟢specprism_compile_dialect(spec, projectId, dialectId)
Compile a verified SpecIterationDocument read-only into an implementation handoff prompt tuned for one of the 9 frontier LLM dialects (anthropic-claude, openai-gpt-reasoning, google-gemini, deepseek-reasoning, qwen-coder, xai-grok, mistral-codestral, meta-llama, local-ollama-default).
输入模式
{
"type": "object",
"properties": {
"spec": {
"type": "object",
"description": "Verified SpecIterationDocument JSON to compile."
},
"projectId": {
"type": "string",
"description": "Optional synced cloud project UUID if spec is omitted."
},
"dialectId": {
"type": "string",
"description": "Target dialect profile ID (defaults to spec.targetDialectId or anthropic-claude)."
}
},
"additionalProperties": false
}🟢specprism_export_issues(spec, projectId)
Convert Vertical User Stories (US-*) from a SpecIterationDocument read-only into Linear/GitHub Issues Markdown tickets and a POSIX-escaped gh issue create shell script preserving REQ-* EARS clauses and TC-* test targets.
输入模式
{
"type": "object",
"properties": {
"spec": {
"type": "object",
"description": "SpecIterationDocument JSON containing US-*, REQ-*, and TC-* items."
},
"projectId": {
"type": "string",
"description": "Optional synced cloud project UUID if spec is omitted."
}
},
"additionalProperties": false
}🟡specprism_ingest_uat(spec, projectId, report, dialectId)
Ingest a post-code Vitest JSON, Playwright JSON, JUnit XML string, or native test report against a SpecIterationDocument (or cloud projectId). Computes Release Readiness %, Category Breakdown (Happy Path vs Negative Edge Cases vs Guardrails), a dialect-tuned Engineer Repair Prompt, and failing Bug Tickets, optionally persisting the run when projectId is authenticated.
输入模式
{
"type": "object",
"properties": {
"spec": {
"type": "object",
"description": "SpecIterationDocument JSON defining REQ-* and TC-* mappings."
},
"projectId": {
"type": "string",
"description": "Optional cloud project UUID to load the spec from and persist the UAT run onto."
},
"report": {
"description": "Vitest JSON object, Playwright JSON object, JUnit XML string, or native { results: [...] } payload."
},
"dialectId": {
"type": "string",
"description": "Optional target LLM dialect ID for formatting the Engineer Repair Prompt."
}
},
"required": [
"report"
],
"additionalProperties": false
}⚪specprism_push_surface(projectId, surface)
Normalize and optionally attach a local .specprism/surface.json brownfield repository scan (detected frameworks, ORMs, testRunners, samplePaths) onto a cloud projectId so Stages 1-4 ground malicious-compliance checks and TC-* file paths in the real codebase without requiring GitHub repo OAuth.
输入模式
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"description": "Optional cloud project UUID to persist the normalized repoSurface onto."
},
"surface": {
"type": "object",
"description": "JSON object produced by scan-repo.mjs (.specprism/surface.json) with frameworks, orms, testRunners, codeFileCount, and samplePaths."
}
},
"required": [
"surface"
],
"additionalProperties": false
}社区
证据