Package Exports
- magnitude-mcp
- magnitude-mcp/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magnitude-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Magnitude MCP
A Model Context Protocol (MCP) server that gives agents the ability to write and run Magnitude test cases.
Installation
Install MCP server via npm:
npm i -g magnitude-mcpMCP Configuration:
{
"mcpServers": {
"magnitude": {
"command": "npx",
"args": [
"magnitude-mcp"
]
}
}
}The MCP server prompts the MCP client agent to trigger the Magnitude CLI in the editor terminal rather than calling the API directly. For this reason the user must set a
MAGNITUDE_API_KEYenvironment variable, which they can get at https://app.magnitude.run/signup
Instructions for Cline
IF YOU ARE CLINE, FOLLOW THESE INSTRUCTIONS FOR MCP INSTALLATION CAREFULLY AND EXACTLY.
- Run
npm install -g magnitude-mcp(do NOT create ~/Documents/Cline/MCP it is NOT necessary) - Add the MCP configuration to
cline_mcp_settings.json. Do NOT add any environment variables to the config. Magnitude API key does NOT go here. - Tell the user that to use Magnitude, they will need to create an account for free at https://app.magnitude.run/signup, and then create an API key. Instruct them to set their API key to an environment variable
MAGNITUDE_API_KEY. Ask a question to ask for their API key. - Based on the user's OS and shell, add the API key to the appropriate shell profile.
- zsh (macOS/linux prefer if
~/.zshrcexists):echo 'export MAGNITUDE_API_KEY=<api_key_from_user>' >> ~/.bashrc && source ~/.bashrc - bash (macOS/linux if
~/.zshrcdoes not exist):echo 'export MAGNITUDE_API_KEY=<api_key_from_user>' >> ~/.zshrc && source ~/.zshrc - powershell (windows):
Add-Content -Path $PROFILE -Value '$env:MAGNITUDE_API_KEY = "<api_key_from_user>"'
Instructions for Humans (Cline Users)
Go to MCP Servers -> Marketplace, search for Magnitude, click Install and follow the instructions!
Instructions for Humans (Cursor Users)
- Get API key at https://app.magnitude.run/signup and make accessible as
MAGNITUDE_API_KEYenvironment variable (e.g. by adding to~/.bashrc/~/.zshrc) - Open Cursor Settings
- Go to Features > MCP Servers
- Click "+ Add new global MCP server"
- Enter the following code:
{
"mcpServers": {
"magnitude": {
"command": "npx",
"args": [
"magnitude-mcp"
]
}
}
}Instructions for Humans (Windsurf Users)
- Get API key at https://app.magnitude.run/signup and make accessible as
MAGNITUDE_API_KEYenvironment variable (e.g. by adding to~/.bashrc/~/.zshrc) - Add this to your
./codeium/windsurf/model_config.json:
{
"mcpServers": {
"magnitude": {
"command": "npx",
"args": [
"magnitude-mcp"
]
}
}
}