@testneo/mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@testneo/mcp-serverGenerate tests from my latest Figma design"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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. Differentiation: the VS Code extension fits in-editor right‑click generate → tweak → run; MCP fits chat- and agent-driven TestNeo workflows from Cursor and other MCP clients — see VS Code extension or MCP? in the monorepo quickstart.
Resource | Link |
Product | |
Sign up & app | |
Hosted MCP docs (quickstart, tools, workflows, security) | |
Source |
Get started
1) Create a TestNeo account and project
Open app.testneo.ai/signup and register (or use your self-hosted deployment).
Recommended: validate locally first — run this monorepo’s API, set
TESTNEO_BASE_URLto that origin (e.g.http://127.0.0.1:8000), and point MCP atpackages/testneo-mcp-server/dist/index.jsafternpm run buildso project + environment + credentials match what you will ship to prod.Note the project id when you run workflows from chat. You can create the web project from MCP (
testneo_bootstrap_web_mcp_projectortestneo_create_web_project) whenTESTNEO_MCP_ALLOW_WRITE=true— full flow (inline env, credentials, API compatibility, Lighthouse): MCP quickstart section 4 (from the testneo-api monorepo root).Open account/API settings and create an API key (
tn_…). Treat it like a password.
2) Point the MCP server at your API
Variable | Value |
| TestNeo Cloud: |
| Optional. Browser origin for execution dashboard links in MCP (e.g. Vite |
| Optional. e.g. |
| your |
Defaults & optional knobs: if you omit optional TESTNEO_MCP_* variables, the server uses safe built-in defaults (e.g. read-only TESTNEO_MCP_ALLOW_WRITE, standard timeouts). TESTNEO_BASE_URL defaults to http://localhost:8001 when unset—wrong for cloud, so always set it for app.testneo.ai. Full table, client vs API (no MCP vars on AWS app/.env for normal usage), and how to override via mcp.json / shell: monorepo MCP quickstart (see also the environment variable table).
Use 127.0.0.1 instead of localhost if Cursor or npx hits proxy issues (monorepo troubleshooting).
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_WEB_APP_URL": "https://app.testneo.ai",
"TESTNEO_API_KEY": "tn_YOUR_KEY_HERE",
"TESTNEO_MCP_ALLOW_WRITE": "false",
"TESTNEO_MCP_TELEMETRY_JSONL": "true",
"TESTNEO_MCP_DEFAULT_EXECUTION_MODE": "local",
"TESTNEO_MCP_PREFER_LOCAL_AGENT": "true",
"TESTNEO_MCP_DEFAULT_EXECUTION_PLATFORM": "local",
"TESTNEO_MCP_REQUIRE_LOCAL_AGENT_FOR_BATCH": "true",
"TESTNEO_MCP_WAIT_FOR_AGENT_MS": "60000"
}
}
}
}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.
Guardrails (quick reference)
Knob | Role |
| MCP env: |
| Per guarded tool: |
| Optional (≥ 8 chars when set): dedupes retries so the same logical action is not applied twice. |
On execution tools: which project environment supplies |
Guardrails (full table + install): when developing inside testneo-api, see docs/mcp/mcp-quickstart.md (includes NLP API from Swagger, section 7) and customer E2E playbook. For the standalone npm/GitHub package only, use TestNeo MCP docs (same content when published).
4) Reload MCP and verify
Restart the IDE (or reload MCP servers), then in chat:
Validate my TestNeo connectionList my TestNeo projects5) Go deeper
Follow TestNeo MCP — Docs for quickstart detail, tool reference, workflows (e.g. qa_intelligence_workflow), and troubleshooting. In the testneo-api monorepo, the canonical Markdown is docs/mcp/mcp-tool-reference.md (mirrored into this package as docs/MCP_TOOL_REFERENCE.md before publish). Web AI Assistant from MCP (prompts & personas): monorepo docs/mcp/mcp-ai-assistant-and-prompts.md → package docs/MCP_AI_ASSISTANT_AND_PROMPTS.md.
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 smokeCopy .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 buildPoint your MCP config at:
node /absolute/path/to/this/repo/dist/index.jsSee 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(same content as monorepodocs/mcp/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), testneo_run_batch_by_tags (multi-test by tags), testneo_run_api_test_chain (multi-test in saved or suggested chain order), testneo_save_api_test_chain / testneo_delete_saved_api_test_chain, rerun failed, trigger Playwright, Swagger upload/impact, NLP updates, route map persist, Figma ingest, etc.
Reads for NLP API suites: testneo_suggest_api_test_chains, testneo_list_saved_api_test_chains (see docs).
Full list: docs/MCP_TOOL_REFERENCE.md (synced from monorepo docs/mcp/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
Execution routing (confused? start here): In the monorepo, open
docs/mcp/mcp-quickstart.md→ §1 Option A — the examplemcp.jsonincludes the fullenvblock. Agent-first:TESTNEO_MCP_DEFAULT_EXECUTION_MODE=local+TESTNEO_MCP_PREFER_LOCAL_AGENT=true. Not agent-first: the doc shows the alternate five lines to paste instead. Restart MCP after changes.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_AGENTBatch / local agent defaults (for
testneo_run_batch_by_tags):TESTNEO_MCP_DEFAULT_EXECUTION_MODE,TESTNEO_MCP_DEFAULT_EXECUTION_PLATFORM,TESTNEO_MCP_PREFER_LOCAL_AGENT,TESTNEO_MCP_REQUIRE_LOCAL_AGENT_FOR_BATCH,TESTNEO_MCP_WAIT_FOR_AGENT_MS,TESTNEO_MCP_OPEN_AGENT_SETUP_ON_AGENT_FAILURERoute hardening:
TESTNEO_ROUTE_HARDENING,TESTNEO_ROUTE_PROFILE,TESTNEO_ROUTE_MAP_JSON
Context generation: For SauceDemo.com demos only, pass auth_preamble: { enabled: true, preset: "saucedemo" } so login lines and optional route phrase alignment apply. For any other site (e.g. public demos, your own app), omit auth_preamble — no SauceDemo login is injected and env username/password checks are not forced for that call. Use TESTNEO_ROUTE_MAP_JSON or testneo_set_project_route_map when Navigate steps need phrase → path hints.
More detail: docs/MCP_NON_SAUCE_DEMO_TESTING.md (in this repo / npm package docs folder). Canonical copy in the monorepo: docs/mcp/mcp-non-saucedemo-testing.md.
Tests (no live API)
npm install
npm testnpm test runs a pretest build, then offline guardrail scripts (no TESTNEO_API_KEY required).
If npm install feels stuck or slow
Older versions of this repo used a prepare hook that ran a full rebuild on every install; that hook is removed. If install still hangs, try:
cd packages/testneo-mcp-server
npm install --no-audit --no-fund --ignore-scripts
npm run build
npm testThis package includes .npmrc (audit=false, fund=false, progress=false) so installs are less chatty.
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.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gururajhm-neo/testneo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server