Currents
Enable AI Agents to fix Playwright test failures reported to Currents.
Currents MCP Server
This is a MCP server that allows you to provide test results context to your AI agents by connecting them to Currents. Useful for asking AI to fix or optimize tests failing in CI.
Tools
get-api-config
- Get the API key and URL used to make requests to Currents API
get-run
- Get the run information by its ID
get-spec-file-attempts-and-errors
- Get the instance information about attempts and errors by its ID
Setup
API Key
Get a Currents API key by following the instructions here.
Usage with Cursor Editor
- Go to Cursor Settings > MCP > Enable
- Add the following to your
mcp.json
.
NPX
{
"mcpServers": {
"currents": {
"command": "npx",
"args": [
"-y",
"@currents/mcp"
],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
}
}
}
Usage with Claude Desktop
Installing via Smithery
To install Currents Test Results Context Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @currents-dev/currents-mcp --client claude
Add the following to your claude_desktop_config.json
:
NPX
{
"mcpServers": {
"currents": {
"command": "npx",
"args": [
"-y",
"@currents/mcp"
],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
}
}
}
⚠️ Notice
By connecting AI tools (e.g., via MCP) to Currents, you are granting them access to your API key, test results and CI metadata. It is your responsibility to vet any AI agents or services you use, and to ensure they handle your data securely.
How to Contribute
We welcome contributions of all kinds—bug fixes, features, and documentation updates!
Quick Start
- Fork this repository and clone your fork:
git clone https://github.com/<your-username>/currents-mcp.git cd currents-mcp
- Install dependencies:
cd mcp-server npm install
- Build the project:
npm run build
- Run locally (stdio):
You should see:npm start
Currents MCP Server running on stdio
.
Local Development with a Client (optional)
To test with a local MCP client (e.g., Cursor or Claude Desktop), point the client to your built server:
- Command:
node
- Args:
./mcp-server/build/index.js
- Env: set
CURRENTS_API_KEY
to a valid key
Example snippet for a client config:
{
"mcpServers": {
"currents": {
"command": "node",
"args": ["./mcp-server/build/index.js"],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
}
}
}
Making Changes
- Create a feature branch:
git checkout -b feat/short-description
- Make changes under
mcp-server/src/
, then rebuild and re-run:npm run build && npm start
- Keep changes focused and documented (add comments/types where helpful).
Commit and PR Guidelines
- Write clear commit messages (e.g., “fix: handle missing env vars” or “feat: add get-run tool filters”).
- Push your branch and open a Pull Request:
git push origin feat/short-description
- In your PR, describe the motivation, approach, and any trade-offs. Link related issues if applicable.
Reporting Issues
- Before creating a new issue, please search existing issues to avoid duplicates.
- When filing a bug report, include steps to reproduce, expected vs. actual behavior, and environment details (OS, Node.js version).
License
By contributing, you agree that your contributions will be licensed under the ISC license (as specified in the package metadata).
Related Servers
Remote MCP Server (Authless)
An authentication-free, remote MCP server deployable on Cloudflare Workers. Customize tools directly in the source code and deploy via Cloudflare or locally.
Thirdweb
Read/write to over 2k blockchains, enabling data querying, contract analysis/deployment, and transaction execution, powered by Thirdweb.
Android Tester MCP
Automate Android devices using the Gbox SDK.
DeepView MCP
Enables IDEs like Cursor and Windsurf to analyze large codebases using Gemini's 1M context window.
Azure DevOps
Interact with Azure DevOps for managing projects, pipelines, and repositories.
Cargo MCP Server
Tools for managing Rust projects using the cargo command-line tool.
Agentic Tools MCP Companion
A VS Code extension with a GUI for the agentic-tools-mcp server, enhancing task and memory management.
UIAutomator2 MCP Server
Automate and control Android devices using the UIAutomator2 framework.
Prefect
Interact with the Prefect API for workflow orchestration and management.
Gemini Imagen 3.0
Generate high-quality images using Google's Imagen 3.0 model via the Gemini API.