pestrail (TestRail) for VS Code
io.github.poyrazemun/pestrail
Safety-first TestRail access: read runs, cases and results, add results. Never deletes anything.
client:VS Code
transport:stdio
runtime:pypi
Install pestrail (TestRail) in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "testrail-url",
"description": "TESTRAIL_URL",
"password": true
},
{
"type": "promptString",
"id": "testrail-username",
"description": "TESTRAIL_USERNAME",
"password": true
},
{
"type": "promptString",
"id": "testrail-api-key",
"description": "TESTRAIL_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "testrail-read-only",
"description": "TESTRAIL_READ_ONLY",
"password": true
},
{
"type": "promptString",
"id": "testrail-attachment-roots",
"description": "TESTRAIL_ATTACHMENT_ROOTS",
"password": true
},
{
"type": "promptString",
"id": "testrail-allowed-project-ids",
"description": "TESTRAIL_ALLOWED_PROJECT_IDS",
"password": true
},
{
"type": "promptString",
"id": "testrail-allowed-run-ids",
"description": "TESTRAIL_ALLOWED_RUN_IDS",
"password": true
},
{
"type": "promptString",
"id": "pestrail-toolsets",
"description": "PESTRAIL_TOOLSETS",
"password": true
},
{
"type": "promptString",
"id": "testrail-allow-case-creation",
"description": "TESTRAIL_ALLOW_CASE_CREATION",
"password": true
},
{
"type": "promptString",
"id": "pestrail-env-file",
"description": "PESTRAIL_ENV_FILE",
"password": true
}
],
"servers": {
"pestrail": {
"type": "stdio",
"command": "uvx",
"args": [
"pestrail"
],
"env": {
"TESTRAIL_URL": "${input:testrail-url}",
"TESTRAIL_USERNAME": "${input:testrail-username}",
"TESTRAIL_API_KEY": "${input:testrail-api-key}",
"TESTRAIL_READ_ONLY": "${input:testrail-read-only}",
"TESTRAIL_ATTACHMENT_ROOTS": "${input:testrail-attachment-roots}",
"TESTRAIL_ALLOWED_PROJECT_IDS": "${input:testrail-allowed-project-ids}",
"TESTRAIL_ALLOWED_RUN_IDS": "${input:testrail-allowed-run-ids}",
"PESTRAIL_TOOLSETS": "${input:pestrail-toolsets}",
"TESTRAIL_ALLOW_CASE_CREATION": "${input:testrail-allow-case-creation}",
"PESTRAIL_ENV_FILE": "${input:pestrail-env-file}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs