PictMCP
Provides pairwise test generation for AI assistants using the PICT algorithm, running locally via WebAssembly.
README
PictMCP
[!CAUTION] This package has been archived and will no longer be maintained. Please consider using takeyaqa/tester-skills.
<p align="center"> <img src="assets/PictMCP_logo.svg" alt="PictMCP Logo" width="400"> </p>
Pairwise testing for your AI assistant
PictMCP is an MCP server for software developers who design test cases with AI assistants, providing reliable, algorithm-correct pairwise test generation.
Why use this?
- AI is great at test design, but not at combinatorial math.
- Pairwise generation must be deterministic and correct.
- PictMCP separates thinking (AI) from calculation (PICT).
Prefer a GUI? Check out PictRider.
Features
- 🔒 Local Processing - All processing runs locally with no external network calls
- ⚡ WebAssembly Powered - Fast execution using Microsoft's PICT algorithm compiled to WebAssembly
- 🔗 Constraint Support - Define constraints to filter out invalid parameter combinations
- 📊 Structured Output - Returns well-structured JSON results for easy integration
Installation
Prerequisites
- Node.js (v22 or higher)
MCP Client Configuration
Add the following configuration to your MCP client. This is an example configuration; the exact format may vary depending on your client. Please refer to your MCP client's documentation for details.
{
"mcpServers": {
"PictMCP": {
"command": "npx",
"args": ["-y", "pictmcp"]
}
}
}
Quick Start
Once installed, you can ask your AI assistant to generate test cases using pairwise combinatorial testing.
Example Prompt
Generate test cases for a login form with the following parameters:
- Browser: Chrome, Firefox, Safari
- OS: Windows, macOS, Linux
- Language: English, Japanese, Spanish
The AI assistant will use the generate-test-cases tool to create an optimized set of test cases that covers all pairwise combinations.
Example Result
AI assistants typically format the results as a table:
# Browser OS Language 1 Chrome Linux Japanese 2 Chrome macOS Spanish 3 Safari Linux Spanish 4 Firefox Linux English 5 Safari Windows English 6 Firefox Windows Spanish 7 Firefox macOS Japanese 8 Safari macOS Japanese 9 Chrome macOS English 10 Chrome Windows Japanese
Example with Constraints
Generate test cases for:
- Browser: Chrome, Firefox, Safari
- OS: Windows, macOS, Linux
- Language: English, Japanese, Spanish
With constraint: Safari only works on macOS
You can describe constraints in plain language — the AI assistant will convert them into PICT constraint syntax automatically.
# Browser OS Language 1 Firefox Linux Spanish 2 Chrome Windows Spanish 3 Firefox Windows Japanese 4 Chrome Linux Japanese 5 Chrome macOS English 6 Firefox Windows English 7 Chrome Linux English 8 Safari macOS Spanish 9 Safari macOS Japanese 10 Firefox macOS Spanish 11 Safari macOS English
FAQ
Does this communicate with external servers?
No. All processing runs locally with no external network calls.
I already use the pict CLI. Do I need this?
If your AI agent can execute CLI commands directly, you may not need this tool. However, PictMCP provides:
- A standardized MCP interface for AI assistants
- No need to install PICT separately (WebAssembly-based)
- Structured JSON output instead of TSV
What is pairwise testing?
Pairwise testing (also known as all-pairs testing) is a combinatorial testing method that generates test cases covering all possible pairs of input parameters. This significantly reduces the number of test cases while maintaining high defect detection rates.
What constraint syntax is supported?
You don't need to write PICT syntax directly. Simply describe constraints in natural language and your AI assistant will handle the conversion. PictMCP supports the full PICT constraint syntax. See the PICT documentation for details.
License
This project is licensed under the MIT License—see the LICENSE file for details.
Disclaimer
PictMCP is provided "as is", without warranty of any kind. The authors are not liable for any damages arising from its use.
Generated test cases do not guarantee complete coverage or the absence of defects. Please supplement pairwise testing with other strategies as appropriate.
PictMCP is an independent project and is not affiliated with Microsoft Corporation.
If you find PictMCP useful, please consider starring the repository.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。