Semaphore CI MCP by usefulapi
v1.1.0Read pipelines, job logs, agents and flaky tests; rebuild, stop or terminate runs in Semaphore CI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
semaphore_get_pipeline Get a pipeline
Get one pipeline: its state, result, branch, blocks and jobs. Set detailed=true only when you need full block and job detail (costly). GET /pipelines/{pipeline_id}.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | string | The id (UUID or name) from another tool's output. |
detailed | boolean | Include all blocks and jobs (default false). |
semaphore_list_pipelines List pipelines
List pipelines for a project or a workflow, newest first, with filters by branch, creation and finish time. Give project_id or wf_id. GET /pipelines.
| Parameter | Type | Description |
|---|---|---|
branch_name | string | Branch name filter. |
created_after | integer | Unix timestamp in seconds. |
created_before | integer | Unix timestamp in seconds. |
done_after | integer | Unix timestamp in seconds. |
done_before | integer | Unix timestamp in seconds. |
next_page_url | string | next_page_url from the previous response. Pass it alone to get the next page; the other filters are then ignored. |
project_id | string | Project id (required unless wf_id is given). |
wf_id | string | Workflow id (required unless project_id is given). |
yml_file_path | string | Only pipelines from this YAML file. |
semaphore_list_plumber_workflows List workflows
List workflows (runs started by a commit, branch or pull request) for a project. GET /plumber-workflows?project_id=.
| Parameter | Type | Description |
|---|---|---|
branch_name | string | Branch name filter. |
created_after | integer | Unix timestamp in seconds. |
created_before | integer | Unix timestamp in seconds. |
next_page_url | string | next_page_url from the previous response. Pass it alone to get the next page; the other filters are then ignored. |
project_id | string | Project id (required unless next_page_url is given). |
semaphore_get_plumber_workflow Get a workflow
Get one workflow run by id: its commit, branch, trigger and pipeline list. GET /plumber-workflows/{workflow_id}.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string | The id (UUID or name) from another tool's output. |
semaphore_list_promotions List promotions
List the promotions (manual or automatic deployment steps) of one pipeline. GET /promotions?pipeline_id=.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | string | The id (UUID or name) from another tool's output. |
semaphore_get_job Get a job
Get one job: its name, state, result, machine type and timing. GET /jobs/{job_id}.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The id (UUID or name) from another tool's output. |
semaphore_get_job_logs Get job logs
Get the log events of one job (command output, timestamps, exit codes). Use it to explain a failed job. GET /logs/{job_id}.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The id (UUID or name) from another tool's output. |
semaphore_list_agents List agents
List running agents (cloud and self-hosted), optionally for one agent type. Use the cursor from the response for the next page. GET /agents.
| Parameter | Type | Description |
|---|---|---|
agent_type | string | Only agents of this agent type. |
cursor | string | Cursor from the previous response. |
page_size | integer | Agents per page (default 200). |
semaphore_get_agent Get an agent
Get one agent by name: its state, agent type, version and current job. GET /agents/{agent_name}.
| Parameter | Type | Description |
|---|---|---|
agent_name * | string | Agent name (from semaphore_list_agents). |
semaphore_list_self_hosted_agent_types List self-hosted agent types
List the self-hosted agent types of the organization and their settings. GET /self_hosted_agent_types.
semaphore_get_self_hosted_agent_type Get a self-hosted agent type
Get one self-hosted agent type and its settings. GET /self_hosted_agent_types/{agent_type_name}.
| Parameter | Type | Description |
|---|---|---|
agent_type_name * | string | Agent type name, e.g. s1-aws-small. |
semaphore_list_members List organization members
List organization members: users by default, or service accounts or groups with member_type. Paginated. GET /members.
| Parameter | Type | Description |
|---|---|---|
member_type | string | Subject type (default: human users). |
page_no | integer | Page number, starting at 0. |
page_size | integer | Items per page. |
semaphore_list_project_members List project members
List the members and their project roles for one project. GET /projects/{project_id}/members.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The id (UUID or name) from another tool's output. |
page_no | integer | Page number, starting at 0. |
page_size | integer | Items per page. |
semaphore_list_roles List roles
List the organization and project roles and the permissions each role grants. GET /roles.
semaphore_get_role Get a role
Get one role and its permissions. GET /roles/{role_id}.
| Parameter | Type | Description |
|---|---|---|
role_id * | string | The id (UUID or name) from another tool's output. |
semaphore_list_permissions List permissions
List the permissions available at organization or project scope. GET /permissions?scope=.
| Parameter | Type | Description |
|---|---|---|
scope | string | Scope (default org). |
semaphore_list_groups List groups
List the groups of the organization and their members. Paginated. GET /groups.
| Parameter | Type | Description |
|---|---|---|
page_no | integer | Page number, starting at 0. |
page_size | integer | Items per page. |
semaphore_list_service_accounts List service accounts
List the service accounts of the organization (names and state, never tokens). GET /service_accounts.
| Parameter | Type | Description |
|---|---|---|
page_size | integer | Accounts per page (default 100). |
page_token | string | next_page_token from the previous response. |
semaphore_list_deployment_targets List deployment targets
List the deployment targets of one project (for example production or staging). GET /deployment_targets?project_id=.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The id (UUID or name) from another tool's output. |
semaphore_get_deployment_target Get a deployment target
Get one deployment target: its rules, active state and environment variable names. GET /deployment_targets/{target_id}.
| Parameter | Type | Description |
|---|---|---|
target_id * | string | The id (UUID or name) from another tool's output. |
semaphore_get_deployment_target_history Get deployment history
Get the deployment history of one target: who deployed what, from which git reference and when. Use the cursor fields to page. GET /deployment_targets/{target_id}/history.
| Parameter | Type | Description |
|---|---|---|
target_id * | string | The id (UUID or name) from another tool's output. |
cursor_type | string | Where to start: FIRST, AFTER or BEFORE. |
cursor_value | string | Unix microsecond timestamp for AFTER or BEFORE. |
git_ref_label | string | Filter by git reference label, e.g. a branch name. |
git_ref_type | string | Filter by git reference type. |
triggered_by | string | Filter by the user who triggered the deployment. |
semaphore_get_pre_flight_checks Get pre-flight checks
Get the pre-flight checks (setup commands run before each job) of a project, or of the organization when project_id is omitted. GET /pre_flight_checks.
| Parameter | Type | Description |
|---|---|---|
project_id | string | Project id (omit for the organization setting). |
semaphore_list_artifacts List artifacts
List the artifact files and folders under a project, workflow or job scope. Lists only; it returns no download link. GET /artifacts.
| Parameter | Type | Description |
|---|---|---|
scope * | string | Artifact scope. |
scope_id * | string | The id (UUID or name) from another tool's output. |
path | string | Folder inside the scope (default: root). |
semaphore_list_flaky_tests List flaky tests
List the flaky tests of a project: tests whose pass rate is below a threshold on a branch. GET /projects/{project_id}/test_results/flaky_tests.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The id (UUID or name) from another tool's output. |
branch | string | Branch name filter. |
label | string | Comma-separated labels; tests must carry all of them. |
pass_rate | string | Threshold with operator, e.g. >=80 or <=50 (percent). |
semaphore_get_flaky_test Get a flaky test
Get one flaky test record: its pass rate and history. GET /projects/{project_id}/test_results/flaky_tests/{id}.
| Parameter | Type | Description |
|---|---|---|
flaky_test_id * | string | Flaky test record id (from semaphore_list_flaky_tests). |
project_id * | string | The id (UUID or name) from another tool's output. |
semaphore_get_performance_insights Get pipeline performance
Get the run time of one pipeline file over time (per day or per range). GET /projects/{project_id}/insights/performance.
| Parameter | Type | Description |
|---|---|---|
pipeline_file * | string | Pipeline YAML path in the repository, e.g. .semaphore/semaphore.yml. |
project_id * | string | The id (UUID or name) from another tool's output. |
aggregate | string | Aggregation window (default daily). |
branch | string | Branch name filter. |
from | string | Date, YYYY-MM-DD. |
to | string | Date, YYYY-MM-DD. |
semaphore_get_reliability_insights Get pipeline reliability
Get the pass rate of one pipeline file over time. Stopped pipelines are excluded. GET /projects/{project_id}/insights/reliability.
| Parameter | Type | Description |
|---|---|---|
pipeline_file * | string | Pipeline YAML path in the repository, e.g. .semaphore/semaphore.yml. |
project_id * | string | The id (UUID or name) from another tool's output. |
aggregate | string | Aggregation window (default daily). |
branch | string | Branch name filter. |
from | string | Date, YYYY-MM-DD. |
to | string | Date, YYYY-MM-DD. |
semaphore_get_frequency_insights Get pipeline frequency
Get how often one pipeline file ran over time. GET /projects/{project_id}/insights/frequency.
| Parameter | Type | Description |
|---|---|---|
pipeline_file * | string | Pipeline YAML path in the repository, e.g. .semaphore/semaphore.yml. |
project_id * | string | The id (UUID or name) from another tool's output. |
aggregate | string | Aggregation window (default daily). |
branch | string | Branch name filter. |
from | string | Date, YYYY-MM-DD. |
to | string | Date, YYYY-MM-DD. |
semaphore_partial_rebuild_pipeline Rebuild failed pipeline jobs
Start a partial rebuild of a pipeline: only failed and blocked parts run again. It uses machine time. Reuse the same request_token to retry safely. POST /pipelines/{pipeline_id}/partial_rebuild.
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | string | The id (UUID or name) from another tool's output. |
request_token * | string | Idempotency token, typically a UUID. Reuse it when retrying the same request. |
semaphore_stop_job Stop a job
Stop one running job. The job ends with a stopped result and cannot resume. POST /jobs/{job_id}/stop.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The id (UUID or name) from another tool's output. |
semaphore_terminate_workflow Terminate a workflow
Terminate one workflow run: all its pipelines stop. It cannot resume. POST /plumber-workflows/{workflow_id}/terminate.
| Parameter | Type | Description |
|---|---|---|
workflow_id * | string | The id (UUID or name) from another tool's output. |