@testneo/mcp-server
MCP server for TestNeo quality workflows, enabling test generation, execution, and analysis through MCP-compatible IDE clients.
README
@testneo/mcp-server
TestNeo MCP connects Cursor, VS Code, Claude Desktop, and other MCP-compatible clients to TestNeo — so your AI chat can list projects, inspect runs, generate tests from context (including Swagger/OpenAPI and design context), and (when you allow it) execute tests with guardrails.
| Resource | Link |
|---|---|
| Product | testneo.ai |
| Sign up & app | app.testneo.ai/signup |
| Hosted MCP docs (quickstart, tools, workflows, security) | testneo.ai/docs/testneo-mcp.html |
| Source | github.com/gururajhm-neo/testneo-mcp |
Get started (production)
1) Create a TestNeo account and project
- Open app.testneo.ai/signup and register.
- In the app, create a project (web/API automation) and note the project id when you run workflows from chat.
- Open your account/API settings and create an API key (
tn_…). Treat it like a password.
2) Point the MCP server at TestNeo Cloud
Use the production API base URL:
| Variable | Value |
|---|---|
TESTNEO_BASE_URL |
https://app.testneo.ai |
TESTNEO_API_KEY |
your tn_… key |
Self-hosted customers can set TESTNEO_BASE_URL to their own API origin instead.
3) Add the server to your IDE (recommended: npx)
No global install required. Example for Cursor (~/.cursor/mcp.json or Settings → MCP):
{
"mcpServers": {
"testneo": {
"command": "npx",
"args": ["-y", "@testneo/mcp-server"],
"env": {
"TESTNEO_BASE_URL": "https://app.testneo.ai",
"TESTNEO_API_KEY": "tn_YOUR_KEY_HERE",
"TESTNEO_MCP_ALLOW_WRITE": "false"
}
}
}
}
Keep TESTNEO_MCP_ALLOW_WRITE at false until you intentionally want execute/rerun/Swagger-write tools; read-only tools still work. Write tools also need confirm=true on each call — see hosted security section.
4) Reload MCP and verify
Restart the IDE (or reload MCP servers), then in chat:
Validate my TestNeo connection
List my TestNeo projects
5) Go deeper
Follow TestNeo MCP — Docs for quickstart detail, tool reference, workflows (e.g. qa_intelligence_workflow), and troubleshooting. This repo’s docs/MCP_TOOL_REFERENCE.md mirrors the same tool list for offline browsing.
Why use TestNeo MCP?
- Less context switching — quality signals, generation, and execution requests happen in the same chat as your code.
- Guarded writes — mutating tools stay off unless you set
TESTNEO_MCP_ALLOW_WRITE=trueand passconfirm=true. - Same backend as the product — projects, executions, Swagger pipeline, Figma/context flows, and Playwright SDK paths all go through your real TestNeo deployment.
Smoke check (against your account)
From a clone of this repo, after npm install and npm run build:
TESTNEO_BASE_URL="https://app.testneo.ai" TESTNEO_API_KEY="tn_YOUR_KEY_HERE" npm run smoke
Copy .env.example to .env and edit values if you prefer loading env from a file (your shell or tooling must export them before npm run smoke).
Optional: run from a local build instead of npx
npm install
npm run build
Point your MCP config at:
node /absolute/path/to/this/repo/dist/index.js
See docs/IDE_SETUP.md for more client-specific notes.
Responses & contracts
- Tool responses include
_telemetry(request_id,duration_ms,backend_paths, etc.) for support and auditing. testneo_get_failure_bundle(and triage-heavytestneo_run_agent_workflowsteps) may includesuggested_nlp_patchwheninclude_nlp_patch_suggestionis true (default). Details:docs/MCP_TOOL_REFERENCE.md.- Project execution preconditions (default on): generate/execute-style tools may return
project_precondition_failedunless the project resolves a real https base URL for the app under test (website_urlor environmentbase_url).example.complaceholders are rejected. For special dev setups only:TESTNEO_MCP_RELAX_PROJECT_PRECONDITIONS=true. - Execution intelligence: normalized payloads use
contract_version: execution_intelligence.v1(or pipeline variants) andcanonical_status(queued|running|passed|failed|cancelled|unknown) alongside raw backend status.
v1 tool surface (summary)
Read-heavy: connection, projects, executions, logs, trends, watch, failure bundles, agent workflows, unified contexts, Swagger preview, route map, etc.
Writes (guarded): execute generated test, testneo_run_generated_test_pipeline (run + wait + report), rerun failed, trigger Playwright, Swagger upload/impact, NLP updates, route map persist, Figma ingest, etc.
Full list: docs/MCP_TOOL_REFERENCE.md or hosted tool reference.
Environment reference
Required
TESTNEO_BASE_URL— usehttps://app.testneo.aifor TestNeo Cloud; otherwise your self-hosted API origin.TESTNEO_API_KEY— from the app after signup.
Common optional flags
TESTNEO_MCP_ALLOW_WRITE— defaultfalse; settrueonly when you want mutating tools.TESTNEO_MCP_RELAX_PROJECT_PRECONDITIONS— defaultfalse.TESTNEO_MCP_TELEMETRY_JSONL,TESTNEO_MCP_POLICY_MODE,TESTNEO_MCP_TIMEOUT_MS,TESTNEO_MCP_SWAGGER_TIMEOUT_MS,TESTNEO_MCP_USER_AGENT- Route hardening:
TESTNEO_ROUTE_HARDENING,TESTNEO_ROUTE_PROFILE,TESTNEO_ROUTE_MAP_JSON
Generation: testneo_generate_tests_from_context defaults to auto_align_saucedemo_route_map=true for SauceDemo-style auth presets when no custom map is set.
Tests (no live API)
npm test
Runs build checks and offline guardrail scripts (no TESTNEO_BASE_URL required).
Security
- API key is read only from the environment.
- Write tools are disabled unless
TESTNEO_MCP_ALLOW_WRITE=true. - Write tools require
confirm=true(and optionalidempotency_keyfor safe retries).
More policy detail: Security & Governance on the hosted docs.
License & reporting
- License: GPL-3.0 — see
LICENSE. - Security: see
SECURITY.md. - Changelog:
CHANGELOG.md.
Maintainers only: public GitHub mirror
The npm package and gururajhm-neo/testneo-mcp mirror are synced from the private TestNeo monorepo. Do not put monorepo paths or internal CI tokens in your MCP client config — that is maintainer workflow only.
Instructions (local push, optional GitHub Actions secret): docs/PUBLISHING.md.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。