zephyr-mcp

zephyr-mcp

Enables reading test cases and test steps from Zephyr Scale using the Zephyr Scale API.

Category
访问服务器

README

zephyr-test-zuellig-agentic

Agentic test generation for eZRX+ — converts Zephyr Scale test cases into Playwright integration tests using Claude Code or Codex.

What this repo does

  1. Runs a Zephyr Scale MCP server to fetch test cases and steps.
  2. Runs a code-review-graph MCP server to index the frontend codebase for token-efficient context loading.
  3. Provides a /write-integration-test command that Claude Code reads from .claude/commands/ — no global config needed.

All generated tests are written into datasource/frontend/ (a local clone of the frontend repo). Nothing is installed or modified in the real frontend repo.

Requirements

  • Node.js 20.6 or later
  • Python 3.10 or later with code-review-graph installed:
    pip install code-review-graph
    
  • Claude Code CLI or Codex CLI
  • Git Bash or WSL on Windows

Setup (first time)

1. Clone and enter the repo

git clone <repository-url>
cd zephyr-test-zuellig-agentic

2. Create .env

Get a Zephyr Scale API token:

  1. Sign in to Jira.
  2. Open profile menu → Zephyr Scale API Access Tokens.
  3. Create a token and copy it.

Zephyr Scale API Access Tokens

Then:

cp .env.example .env

Fill in the values:

ZEPHYR_API_TOKEN=your-zephyr-api-token
FRONTEND_REPO_URL=https://github.com/your-org/frontend.git

.env is gitignored — do not commit your token.

3. Run setup

./setup.sh

This will:

  • Clone FRONTEND_REPO_URL into datasource/frontend/
  • Build the code-review-graph index for the frontend
  • Build the Zephyr MCP server from source
  • Generate .mcp.json for Claude Code project-level MCP

4. Open in Claude Code

Open the zephyr-test-zuellig-agentic/ folder in Claude Code (not datasource/frontend/). Claude Code auto-loads .mcp.json — both MCP servers start automatically.

Verify:

/mcp

Both zephyr and code-review-graph should show as connected.

Daily usage

Write a test from a Zephyr TC

/write-integration-test EZRX-T10000

Claude will:

  1. Fetch the TC name, objective, and steps from Zephyr
  2. Search the codebase graph for relevant page objects and similar specs
  3. Generate the spec file (and any new page object methods / locators needed)
  4. Run tsc --noEmit and playwright test --list to verify

Generated files land in datasource/frontend/integration_test/. Commit and push from there.

Update the graph after local changes

When you edit files in datasource/frontend/ and want Claude to see the changes:

./update-graph.sh

Pull latest frontend + update graph

git -C datasource/frontend pull --ff-only
./update-graph.sh

Troubleshooting

.mcp.json missing — run ./setup.sh to regenerate it.

datasource/frontend missing — run ./setup.sh to clone the frontend repo.

MCP not connected — restart Claude Code after setup.sh completes, then check /mcp.

ZEPHYR_API_TOKEN error — make sure .env exists and ZEPHYR_API_TOKEN is set.

code-review-graph not found — run pip install code-review-graph.

Development

npm run typecheck
npm run build

Zephyr MCP source is in src/; compiled output goes to build/.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选