> **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 Dev Rev MCP server

The Dev Rev MCP connector routes your AI agent's tool calls to Dev Rev's own MCP server through Scalekit. Each user connects their own Dev Rev access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 13 tools.

**Authentication:** Bearer Token
**Categories:** Developer Tools, Customer Support
**Tools:** 13: 9 read, 3 write, 1 destructive
**Users sign in with:** Access token
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=DEVREVMCP)

## 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 Dev Rev MCP connection

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

   **Console steps with screenshots:**

   Connect DevRev to Scalekit using a Personal Access Token (PAT). Scalekit stores the token securely and injects it into every tool call — your agent code never handles it directly.

   1. ### Generate a Personal Access Token

      - Log in to the [DevRev dashboard](https://rev.auth.devrev.ai/).
      - Click the **Settings** icon in the top-right corner.
      - In the left sidebar, select **Account**.
      - Scroll down to the **Personal access tokens** section and click **New token**.
      - Enter a name (e.g. `mcp`), set an expiry date, and click **Create**.
      - Copy the token — it is shown only once.

      > Image: DevRev Account Settings showing Personal access tokens section

   2. ### Create a connection in Scalekit

      - In the [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** → **Connections** → **Create Connection**.
      - Search for **DevRev MCP** and click **Create**.
      - Paste your Personal Access Token into the **Token** field.
      - Click **Save** and note the **Connection name** — use this as `connection_name` in your code.

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 = 'devrevmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Dev Rev 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: 'devrevmcp_discover_schema',
     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 = "devrevmcp"
   identifier = "user_123"

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

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

   ```bash
   python quickstart.py
   ```

   Each user opens the link once and enters their Dev Rev MCP server credentials there. If your app already has a user's credentials, add the account from your backend instead, as the console steps above show. 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: 'devrevmcp_discover_schema',
  toolInput: {},
  connector: 'devrevmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="devrevmcp_discover_schema",
    tool_input={},
    connection_name="devrevmcp",
    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.

### `devrevmcp_discover_schema`

Discover Schema · Read-only

Retrieve the input schema for a DevRev action, or list all available actions.

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

Inputs:

- `action_name` (`string`, optional): The action name to retrieve the schema for (e.g., create_issue). Omit to list all available actions.
- `subtype` (`string`, optional): The subtype to get the schema for. Omit to retrieve the schema for the stock type.

Example input: `{}`

### `devrevmcp_fetch_object_context`

Fetch Object Context · Read-only

Fetch contextual information about any DevRev object by its DON ID or display ID.

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

Inputs:

- `object_id` (`string`, required): The DON ID or display ID of the DevRev object to fetch context for.

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

### `devrevmcp_get_self`

Get Self · Read-only

Retrieve the profile details of the currently authenticated DevRev user.

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

Inputs: none.

Example input: `{}`

### `devrevmcp_get_sprint`

Get Sprint · Read-only

Retrieve the details of a specific DevRev sprint by its DON ID.

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

Inputs:

- `id` (`string`, required): The DON ID of the sprint to retrieve.

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

### `devrevmcp_get_sprint_board`

Get Sprint Board · Read-only

Retrieve the details of a specific DevRev sprint board (vista) by its DON ID.

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

Inputs:

- `id` (`string`, required): The DON ID of the sprint board (vista) to retrieve.

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

### `devrevmcp_get_tool_metadata`

Get Tool Metadata · Read-only

Retrieve comprehensive metadata about available DevRev MCP tools. Call this first before any other operation.

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

Inputs: none.

Example input: `{}`

### `devrevmcp_get_valid_stage_transitions`

Get Valid Stage Transitions · Read-only

Return valid stage transitions for a given DevRev object type and its current stage.

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

Inputs:

- `object_type` (`string`, required): The stock leaf type of the object. One of: `ticket`, `issue`, `incident`, `conversation`, `opportunity`, `account`.
- `stage_id` (`string`, required): The DON ID of the current stage of the object.

Example input: `{"object_type":"ticket","stage_id":"<stage_id>"}`

### `devrevmcp_hybrid_search`

Hybrid Search · Read-only

Search across DevRev's knowledge graph using natural language to find issues, tickets, articles, and other objects.

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

Inputs:

- `namespace` (`string`, required): Primary namespace to search in. One of: `account`, `article`, `capability`, `conversation`, `dashboard`, `dev_user`, `directory`, `dm`, `enhancement`, `feature`, `group`, `incident`, `issue`, `meeting`, `opportunity`, `product`, `question_answer`, `rev_org`, `rev_user`, `tag`, `ticket`, `vista`, `widget`, `custom_object.ai_agent_session_metrics`.
- `query` (`string`, required): A natural language question to search across DevRev's knowledge graph.
- `reranking_instruction` (`string`, required): A single sentence (≤15 words) guiding document ranking based on the query.
- `allowed_namespaces` (`array`, optional): Namespaces to restrict the search to. Leave empty to search all namespaces.
- `ids` (`array`, optional): DON IDs to filter search results by.
- `include_comments` (`boolean`, optional): Whether to include object comments in results. When true, results are limited to 10 objects.
- `limit` (`number`, optional): Maximum number of results to return.
- `projection_type` (`string`, optional): Shape of each returned object: id, id_with_label, or summary. One of: `id`, `id_with_label`, `summary`.

Example input: `{"namespace":"account","query":"<query>","reranking_instruction":"<reranking_instruction>"}`

### `devrevmcp_list_objects`

List Objects · Read-only

List DevRev objects (issues, tickets, etc.) with optional filters using a specified list action.

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

Inputs:

- `action_name` (`string`, required): The list action identifier (e.g., list_issues, list_tickets). Must be one of the list actions returned by discover_schema.
- `fields` (`array`, optional): Field names to include in each returned object. Omit to return all fields.
- `values` (`object`, optional): Filter parameters to narrow results. Call discover_schema first to get available filter fields.

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

### `devrevmcp_add_comment`

Add Comment · Write

Add a comment to any DevRev object, with support for markdown formatting and user mentions.

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

Inputs:

- `object` (`string`, required): DON ID of the DevRev object to comment on.
- `body` (`string`, optional): The markdown-formatted body of the comment.
- `snap_kit_body` (`string`, optional): Optional snap-kit UI component to render with the comment. Accepts a static snap-kit component as a valid JSON object.
- `visibility` (`string`, optional): Visibility of the comment: external (default), internal (dev org only), or private (specified users only). One of: `external`, `internal`, `private`.

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

### `devrevmcp_create_object`

Create Object · Write

Create a new DevRev object (issue, ticket, etc.) by specifying an action name and field values.

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

Inputs:

- `action_name` (`string`, required): The create action identifier (e.g., create_issue, create_ticket). Must be one of the create actions returned by discover_schema.
- `values` (`object`, required): Key-value pairs of field names and values for the new object. Call discover_schema first to get required and optional fields.
- `subtype` (`string`, optional): The subtype of the object to create (e.g., issue, ticket). Omit to create the stock type.

Example input: `{"action_name":"<action_name>","values":{}}`

### `devrevmcp_link_objects`

Link Objects · Write

Create a link between two DevRev objects using a specified link action.

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

Inputs:

- `action_name` (`string`, required): The link action identifier (e.g., link_ticket_with_issue). Must be one of the link actions returned by discover_schema.
- `source` (`string`, required): The display ID of the source object to link from (e.g., ISS-123, TKT-123).
- `target` (`string`, required): The display ID of the target object to link to (e.g., TKT-456, ISS-456).
- `link_type` (`string`, optional): Type of link defining the relationship between the two objects. One of: `is_parent_of`, `is_dependent_on`, `is_duplicate_of`.

Example input: `{"action_name":"<action_name>","source":"<source>","target":"<target>"}`

### `devrevmcp_update_object`

Update Object · Destructive

Update fields on an existing DevRev object using a specified update action.

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

Inputs:

- `action_name` (`string`, required): The update action identifier (e.g., update_issue, update_ticket). Must be one of the update actions returned by discover_schema.
- `values` (`object`, required): Fields to update including the object ID. Use discover_schema for allowed fields.
- `subtype` (`string`, optional): The subtype of the object to update. Omit to update the stock type.

Example input: `{"action_name":"<action_name>","values":{}}`

## Related

Other Developer Tools connectors ([all 131](/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 |
