TestOptim

io.github.TestOptim-AI由 GitHub 账号 TestOptim-AI 发布v1.0.0更新于 Nov 3, 2026

在你的 Web 应用上运行 AI QA 测试,并查看其发现的缺陷及复现步骤。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Run AI QA test runs on your web app and read the bugs they find, with steps to reproduce.

已验证Streamable HTTP可网页运行

概览

TestOptim 的托管 MCP 服务(api.testoptim.com);需要 API 密钥;Streamable HTTP。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

端点
api.testoptim.com
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 TestOptim,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.TestOptim-AI%2Ftestoptim/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "testoptim": {
      "type": "http",
      "url": "https://api.testoptim.com/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

[TestOptim]

TestOptim MCP server

Connect Claude Code, Cursor, VS Code and other MCP clients to TestOptim, so your AI assistant can run QA tests on your web app and read the issues they find.

"Run the QA suite on my project and show me the critical issues."

TestOptim hosts the server; there is nothing to install or run. This repository holds the setup instructions, ready-to-copy client configs, and the server.json that lists the server in MCP registries.

  • Endpoint: https://api.testoptim.com/api/mcp
  • Transport: Streamable HTTP (stateless; POST only)
  • Auth: a TestOptim API key, sent as Authorization: Bearer topt_...

Contents

Before you start

  • A TestOptim account with at least one project that has generated test cases. See Generate test cases.
  • The Owner or Admin role in your organization, to create API keys.
  • Runs started over MCP use your plan's test executions, the same as runs started in the app. They are attributed to the person who created the key.

Create an API key

  1. In TestOptim, open Settings, then API keys, and select New token.
  2. Give it a name you will recognise, such as Claude Code - laptop.
  3. Under Project access, choose All projects or a single project. A single project limits what a leaked key can reach.
  4. Keep only the permissions you need (see Tools for which tool needs which).
  5. Copy the token. It starts with topt_ and is shown once.

Then export it in the shell your client starts from, so it never lands in a config file:

bash
export TESTOPTIM_TOKEN="topt_..."

The full guide, with screenshots, is Run TestOptim tests from CI with an API key.

To run tests from a GitHub Actions workflow instead, use TestOptim Run Tests.

Connect your client

Each snippet is also in examples/.

Claude Code

bash
claude mcp add --transport http testoptim https://api.testoptim.com/api/mcp \  --header "Authorization: Bearer ${TESTOPTIM_TOKEN}"

This stores the token in your local Claude Code config. Add --scope user to use it in every project.

To share the server with your team without sharing a token, commit a project .mcp.json instead. Claude Code expands ${TESTOPTIM_TOKEN} from each person's environment (examples/claude-code.mcp.json):

json
{  "mcpServers": {    "testoptim": {      "type": "http",      "url": "https://api.testoptim.com/api/mcp",      "headers": {        "Authorization": "Bearer ${TESTOPTIM_TOKEN}"      }    }  }}

Cursor

Add to ~/.cursor/mcp.json, or .cursor/mcp.json in your project (examples/cursor.mcp.json):

json
{  "mcpServers": {    "testoptim": {      "url": "https://api.testoptim.com/api/mcp",      "headers": {        "Authorization": "Bearer ${env:TESTOPTIM_TOKEN}"      }    }  }}

Cursor reads TESTOPTIM_TOKEN from your shell or system environment; remote servers don't support envFile.

VS Code

Add to .vscode/mcp.json in your workspace, or run MCP: Open User Configuration for every workspace (examples/vscode.mcp.json). VS Code asks for the key the first time the server starts and stores it securely:

json
{  "inputs": [    {      "type": "promptString",      "id": "testoptim-token",      "description": "TestOptim API key (starts with topt_)",      "password": true    }  ],  "servers": {    "testoptim": {      "type": "http",      "url": "https://api.testoptim.com/api/mcp",      "headers": {        "Authorization": "Bearer ${input:testoptim-token}"      }    }  }}

Windsurf

Add to your MCP config file (open it from Cascade's MCP settings). Remote servers use serverUrl (examples/windsurf.mcp_config.json):

json
{  "mcpServers": {    "testoptim": {      "serverUrl": "https://api.testoptim.com/api/mcp",      "headers": {        "Authorization": "Bearer ${env:TESTOPTIM_TOKEN}"      }    }  }}

Claude (claude.ai and Claude Desktop)

Add TestOptim as a custom connector:

  1. Open Customize > Connectors, select + Add, then Add custom connector.
  2. Name it TestOptim and enter https://api.testoptim.com/api/mcp as the server URL.
  3. Under Authentication, choose No sign in.
  4. Under Request headers, add Authorization with the value Bearer topt_... (your key).
  5. Select Add.

On Team and Enterprise plans an Owner adds it under Organization settings > Connectors, and everyone who uses the connector shares that one key. Use a key limited to one project, and leave out tests:run unless every member should be able to start runs. Claude's Research mode can call connector tools without asking first, which is another reason to keep write permissions off a shared key. To change the key later, remove the connector and add it again.

Other clients

Any client that supports Streamable HTTP with custom headers works. Point it at https://api.testoptim.com/api/mcp and send Authorization: Bearer <your key> on every request. The server is stateless: it doesn't issue session IDs, and it answers GET and DELETE with 405.

Agent skill and Claude Code plugin

The testoptim-qa skill teaches your coding agent the loop: after it changes a page or flow, it re-tests only that area, reads the critical and high issues, fixes them and re-tests. It follows the open Agent Skills format, so it works in Claude Code, Codex, Cursor, Copilot and other agents that read SKILL.md. Export TESTOPTIM_TOKEN first (see Create an API key).

Claude Code plugin

The plugin installs the skill and connects the MCP server in one step:

/plugin install testoptim --marketplace TestOptim-AI/testoptim-mcp

On Claude Code older than 2.1.275, add the marketplace first:

/plugin marketplace add TestOptim-AI/testoptim-mcp/plugin install testoptim@testoptim

Other agents

Install the skill with the skills CLI, then connect the MCP server as shown in Connect your client:

bash
npx skills add TestOptim-AI/testoptim-mcp

Tools

The server only lists the tools your key's permissions allow, so a read-only key never sees start_test_run.

ToolPermissionWhat it doesArguments
list_projectsprojects:readLists the projects the key can access, to find the project ID the other tools need.none
start_test_runtests:runStarts a test run and returns the run ID. Pass changedAreas to re-test only the pages or flows you just changed; leave it out for the whole suite. Runs take minutes.projectId, changedAreas (e.g. ["/checkout", "/cart"]; optional)
get_test_runtests:readShows a run's status (pending, running, completed, failed), progress, current step and issue counts by severity.testRunId
stop_test_runtests:runStops a running test run, so no further test cases are executed and billed. A stopped run reports as failed.testRunId
list_issuesissues:readLists a project's issues as summaries: ID, title, severity, category, status. Pass testRunId for only what one run found.projectId, severity (critical, high, medium or low; optional), testRunId (optional), limit (1-100, default 20)
get_issueissues:readGets one issue in full: description, steps to reproduce, expected and actual behaviour, page URL and screenshot.issueId
start_explorationknowledge:exploreExplores the project's app so TestOptim learns new or changed pages and flows. Spends the plan's page allowance and replaces an exploration already running. Returns an exploration ID.projectId
get_explorationprojects:readShows an exploration's status, progress and, once it ends, how many pages, flows and entities it recorded. waiting_otp_ready or waiting_otp means the login needs a one-time code entered in the TestOptim app.explorationId

Results come back as JSON text, using the same field names as the TestOptim API.

Example prompts

  • "Which TestOptim projects can I access?"
  • "Run the QA suite on the checkout project and tell me when it's done."
  • "List the critical and high issues on my project, then show the steps to reproduce the first one."
  • "I just changed the signup form. Run the tests, and if anything fails, open the issue and fix the code."
  • "I changed /checkout. Re-test only that with TestOptim and fix any critical issues."
  • "I added a settings page. Explore the app again so TestOptim picks it up."
  • "Stop the test run you started; it's on the wrong project."

Security

  • Least privilege. Create a separate key per client and per machine, limited to one project and to the permissions it needs. A key without tests:run can't start or stop runs.
  • Project-scoped keys are refused for any other project, and tools never show another organization's data.
  • Keep keys out of files you commit. Use the environment-variable or input-prompt forms above. Keys start with topt_, so they are easy to search for in logs and repositories.
  • Revoke a key under Settings > API keys if it leaks or a device is lost. It stops working immediately.
  • An assistant connected with tests:run can start runs that use your plan's test executions. Most clients ask before calling a tool; keep that confirmation on.

Limits and errors

  • 120 requests per minute per client IP address, shared with the TestOptim REST API.
  • A project runs one job at a time. Starting a run while another job is in progress on the same project is refused; wait for it to finish and try again.
  • Like Run all in the app, a run is trimmed to your remaining test executions. Check totalCases on the run if you need the full suite.

Troubleshooting

SymptomCause
401 Missing API tokenThe Authorization header didn't arrive. Check the environment variable is set in the shell that starts your client, then restart the client.
401 Invalid API tokenThe key is wrong, revoked or expired. Create a new one.
A tool you expect is missingThe key lacks that tool's permission. Create a key with it.
This token is restricted to a different projectThe key is scoped to one project; use that project's ID or a key for all projects.
405 Method not allowedSomething sent a GET or DELETE. The server only accepts POST; use a client with Streamable HTTP support.

Contributing

Spotted an outdated client config, or want to add one for another client? See CONTRIBUTING.md. For problems with your account or the TestOptim service itself, contact TestOptim support instead.

License

MIT

来源:README.md,提交 6d86c69

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v1.0.0最新Nov 3, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分