tram-mcp

v0.6.0
tram-mcp Checked 4 days ago Published 6 months ago

MCP server exposing TestRail API endpoints as tools for LLMs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_testrail_auth

Verify the configured TestRail credentials and report a structured diagnosis. Calls a lightweight TestRail endpoint (``get_priorities``, which every authenticated user can reach) and translates the outcome into an actionable result the LLM can act on. Use this when: - A user reports the server isn't working - Another tool returns a 401/403/auth error and the cause is unclear - Confirming setup is correct before kicking off a longer workflow Returns a dict with at least: - ``ok``: bool — True if the credential check succeeded - ``config``: which URL / username / auth method the server…

browse_testrail_api

Browse all available TestRail API categories and their methods. Returns a dict mapping each category name to its description and list of available method names. Use describe_testrail_method() to get details for a specific method, then run_testrail_command() to call it.

describe_testrail_method

Describe a specific TestRail API method — its parameters, types, and docs.

ParameterTypeDescription
category *stringThe API category (e.g. "projects", "cases", "runs").
method *stringThe method name (e.g. "get_projects", "add_case").

search_test_cases

Search for test cases by title (case-insensitive substring match).

ParameterTypeDescription
project_id *integerThe ID of the project to search in.
query *stringThe search string to match against case titles.
suite_idOptional suite ID to narrow the search.

run_testrail_command

Execute a TestRail API method.

ParameterTypeDescription
category *stringThe API category (e.g. "projects", "cases", "runs").
method *stringThe method name (e.g. "get_projects", "add_case").
extra_paramsOptional dict of additional query parameters that are appended to the API request URL. Use this for filters not directly supported by the method signature, such as custom field filters (e.g. ``{"custo…
fieldsOptional list of field names to include in each result item. When provided and the response is a list of dicts, each dict is filtered to only contain the specified keys. Useful for reducing response s…
max_resultsOptional maximum number of items to return. When provided and the response is a list longer than this value, the list is truncated and the return value becomes a dict with ``results`` (the truncated l…
paramsOptional dict of parameters to pass to the method.