> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Semaphore CI MCP server

The Semaphore CI MCP connector routes your AI agent's tool calls to Semaphore CI's own MCP server through Scalekit. Each user signs in to Semaphore CI once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 18 tools.

**Authentication:** OAuth2.1/DCR
**Categories:** Developer Tools
**Tools:** 18: 15 read, 3 write, 0 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=SEMAPHORECIMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Semaphore CI MCP connection

   In **AgentKit > Connections**, create a Semaphore CI MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Semaphore CI MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'semaphorecimcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Semaphore CI MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'semaphorecimcp_organizations_list',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "semaphorecimcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Semaphore CI MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="semaphorecimcp_organizations_list",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'semaphorecimcp_artifact_job_logs',
  toolInput: {
    job_id: '<job_id>',
    organization_id: '<organization_id>',
  },
  connector: 'semaphorecimcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="semaphorecimcp_artifact_job_logs",
    tool_input={
        "job_id": "<job_id>",
        "organization_id": "<organization_id>",
    },
    connection_name="semaphorecimcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `semaphorecimcp_artifact_job_logs`

Artifact Job Logs · Read-only

Fetch a signed URL for full artifact-backed job logs in Semaphore CI.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `job_id` (`string`, required): The UUID of the job whose artifact logs to fetch.
- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.

Example input: `{"job_id":"<job_id>","organization_id":"<organization_id>"}`

### `semaphorecimcp_artifacts_list`

Artifacts List · Read-only

List artifacts for a project, workflow, or job scope in Semaphore CI.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.
- `scope` (`string`, required): The scope level at which to list artifacts. One of: `projects`, `workflows`, `jobs`.
- `scope_id` (`string`, required): The UUID of the scoped resource (project ID, workflow ID, or job ID).
- `path` (`string`, optional): Optional path prefix to filter artifacts.
- `project_id` (`string`, optional): Optional project UUID for additional context filtering.

Example input: `{"organization_id":"<organization_id>","scope":"projects","scope_id":"<scope_id>"}`

### `semaphorecimcp_artifacts_signed_url`

Artifacts Signed URL · Read-only

Generate a signed URL for a single artifact file in Semaphore CI.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.
- `path` (`string`, required): The artifact file path to generate a signed URL for.
- `scope` (`string`, required): The scope level of the artifact. One of: `projects`, `workflows`, `jobs`.
- `scope_id` (`string`, required): The UUID of the scoped resource (project, workflow, or job).
- `method` (`string`, optional): HTTP method for the signed URL (GET or HEAD). One of: `GET`, `HEAD`. Default: `GET`.
- `project_id` (`string`, optional): Optional project UUID for additional filtering context.

Example input: `{"organization_id":"<organization_id>","path":"<path>","scope":"projects","scope_id":"<scope_id>"}`

### `semaphorecimcp_docs_search`

Docs Search · Read-only

Search Semaphore CI documentation for guides, references, and API details.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, required): The search query string to look up in Semaphore documentation.
- `limit` (`number`, optional): Maximum number of results to return (1–30). Default: `10`.
- `version` (`string`, optional): Optional documentation version to scope the search.

Example input: `{"query":"<query>"}`

### `semaphorecimcp_get_test_results`

Get Test Results · Read-only

Fetch aggregated test results for a specific Semaphore CI job or pipeline.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `scope` (`string`, required): Whether to fetch test results for a job or a pipeline. One of: `job`, `pipeline`.
- `job_id` (`string`, optional): The UUID of the job to fetch test results for (required when scope is 'job').
- `pipeline_id` (`string`, optional): The UUID of the pipeline to fetch test results for (required when scope is 'pipeline').

Example input: `{"scope":"job"}`

### `semaphorecimcp_jobs_describe`

Jobs Describe · Read-only

Get detailed information about a specific Semaphore CI job including its status, timestamps, and configuration.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `job_id` (`string`, required): The UUID of the job to describe.
- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.
- `mode` (`string`, optional): Level of detail to return for the job. One of: `summary`, `detailed`. Default: `summary`.

Example input: `{"job_id":"<job_id>","organization_id":"<organization_id>"}`

### `semaphorecimcp_jobs_logs`

Jobs Logs · Read-only

Retrieve the execution logs for a Semaphore CI job.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `job_id` (`string`, required): The UUID of the job whose logs to retrieve.
- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.

Example input: `{"job_id":"<job_id>","organization_id":"<organization_id>"}`

### `semaphorecimcp_organizations_list`

Organizations List · Read-only

List Semaphore CI organizations the authenticated user has access to.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `cursor` (`string`, optional): Pagination cursor from a previous response.
- `limit` (`number`, optional): Maximum number of organizations to return.

Example input: `{}`

### `semaphorecimcp_pipeline_jobs`

Pipeline Jobs · Read-only

List all jobs in a Semaphore CI pipeline.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): The UUID of the Semaphore CI organization.
- `pipeline_id` (`string`, required): The UUID of the pipeline whose jobs to list.

Example input: `{"organization_id":"<organization_id>","pipeline_id":"<pipeline_id>"}`

### `semaphorecimcp_pipelines_list`

List Pipelines · Read-only

List pipelines associated with a Semaphore CI workflow, most recent first.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the workflow.
- `workflow_id` (`string`, required): UUID of the workflow to list pipelines for.
- `cursor` (`string`, optional): Pagination cursor for fetching the next page of results.
- `limit` (`number`, optional): Maximum number of pipelines to return (1-100). Default: `20`.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.
- `project_id` (`string`, optional): UUID of the project to filter pipelines by, or empty string for no filter.

Example input: `{"organization_id":"<organization_id>","workflow_id":"<workflow_id>"}`

### `semaphorecimcp_projects_list`

List Projects · Read-only

List projects that belong to a Semaphore CI organization.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization to list projects for.
- `cursor` (`string`, optional): Pagination cursor for fetching the next page of results.
- `limit` (`number`, optional): Maximum number of projects to return (1-200). Default: `25`.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.

Example input: `{"organization_id":"<organization_id>"}`

### `semaphorecimcp_projects_search`

Search Projects · Read-only

Search Semaphore CI projects by name, repository URL, or description.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization to search projects in.
- `limit` (`number`, optional): Maximum number of projects to return (1-50). Default: `20`.
- `max_pages` (`number`, optional): Maximum number of pages to fetch when searching across paginated results (1-10). Default: `5`.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.
- `query` (`string`, optional): Text query to filter projects by name or description.
- `repository_url` (`string`, optional): Filter projects by their linked repository URL.

Example input: `{"organization_id":"<organization_id>"}`

### `semaphorecimcp_tasks_describe`

Describe Task · Read-only

Get detailed information about a Semaphore CI scheduled task (periodic).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the project.
- `project_id` (`string`, required): UUID of the project that owns the task.
- `task_id` (`string`, required): UUID of the scheduled task to describe.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.

Example input: `{"organization_id":"<organization_id>","project_id":"<project_id>","task_id":"<task_id>"}`

### `semaphorecimcp_tasks_list`

List Tasks · Read-only

List scheduled tasks (periodics) for a Semaphore CI project.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the project.
- `project_id` (`string`, required): UUID of the project to list tasks for.
- `cursor` (`string`, optional): Pagination cursor for fetching the next page of results.
- `limit` (`number`, optional): Maximum number of tasks to return (1-100). Default: `20`.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.

Example input: `{"organization_id":"<organization_id>","project_id":"<project_id>"}`

### `semaphorecimcp_workflows_search`

Search Workflows · Read-only

Search recent Semaphore CI workflows for a project, most recent first.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the project.
- `project_id` (`string`, required): UUID of the project to search workflows for.
- `branch` (`string`, optional): Filter workflows by git branch name.
- `cursor` (`string`, optional): Pagination cursor for fetching the next page of results.
- `limit` (`number`, optional): Maximum number of workflows to return (1-100). Default: `20`.
- `mode` (`string`, optional): Level of detail to include in the response. One of: `summary`, `detailed`. Default: `summary`.
- `my_workflows_only` (`boolean`, optional): If true, return only workflows triggered by the authenticated user. Default: `true`.
- `requester` (`string`, optional): Filter workflows by the username of the user who triggered them.

Example input: `{"organization_id":"<organization_id>","project_id":"<project_id>"}`

### `semaphorecimcp_tasks_run`

Run Task · Write

Trigger a Semaphore CI scheduled task to run immediately.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the project.
- `project_id` (`string`, required): UUID of the project that owns the task.
- `task_id` (`string`, required): UUID of the scheduled task to trigger.
- `branch` (`string`, optional): Git branch to run the task against, overriding the task's default branch.
- `parameters` (`object`, optional): Key-value pairs of pipeline parameters to pass to the task run.
- `pipeline_file` (`string`, optional): Path to the pipeline YAML file to use, overriding the task's default.

Example input: `{"organization_id":"<organization_id>","project_id":"<project_id>","task_id":"<task_id>"}`

### `semaphorecimcp_workflows_rerun`

Rerun Workflow · Write

Rerun an existing Semaphore CI workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `workflow_id` (`string`, required): ID of the workflow to rerun.

Example input: `{"workflow_id":"<workflow_id>"}`

### `semaphorecimcp_workflows_run`

Run Workflow · Write

Schedule a new Semaphore CI workflow run for a project.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organization_id` (`string`, required): UUID of the organization that owns the project.
- `project_id` (`string`, required): UUID of the project to run the workflow for.
- `reference` (`string`, required): Git reference to run the workflow against (e.g., refs/heads/main).
- `commit_sha` (`string`, optional): Specific git commit SHA to run the workflow at.
- `parameters` (`object`, optional): Key-value pairs of pipeline parameters to pass to the workflow run.
- `pipeline_file` (`string`, optional): Path to the pipeline YAML file to use for this workflow run.

Example input: `{"organization_id":"<organization_id>","project_id":"<project_id>","reference":"<reference>"}`

## Related

Other Developer Tools connectors ([all 128](/agentkit/connectors/?category=developer-tools)):

- [GitHub](/agentkit/connectors/github/): Scalekit connector, OAuth, 217 tools
- [Microsoft Entra ID](/agentkit/connectors/microsoftentraid/): Scalekit connector, OAuth, 82 tools
- [Datadog](/agentkit/connectors/datadog/): Scalekit connector, API key, 105 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
