# agent-sdk MCP server

> A TypeScript agent runtime that enables developers to build agents with planning, multi-agent handoffs, and human-in-the-loop capabilities.

- Repository: https://github.com/Cognipeer/agent-sdk
- Page: https://hostedmcp.org/servers/cognipeer/agent-sdk
- Transport: stdio
- Stars: 7
- License: MIT

## Install

### Claude Code

```sh
claude mcp add agent-sdk -- npx -y @cognipeer/agent-sdk
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "agent-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "@cognipeer/agent-sdk"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agent-sdk": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cognipeer/agent-sdk"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agent-sdk","type":"stdio","command":"npx","args":["-y","@cognipeer/agent-sdk"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "agent-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "@cognipeer/agent-sdk"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add agent-sdk -- npx -y @cognipeer/agent-sdk
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.agent-sdk]
command = "npx"
args = ["-y", "@cognipeer/agent-sdk"]
```

### Gemini CLI

```sh
gemini mcp add -s user agent-sdk npx -- -y @cognipeer/agent-sdk
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agent-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "@cognipeer/agent-sdk"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `OPENAI_API_KEY` | no | no |  |

## FAQ

### What programming language is the agent-sdk written in?

The SDK is a TypeScript-first agent runtime.

### Does the SDK require LangChain to work?

No, the SDK includes a built-in native provider layer that works directly with various providers without requiring LangChain.

### Can I use this with different AI providers?

Yes, it supports OpenAI, Anthropic, Azure, Bedrock, Vertex, and any OpenAI-compatible API.

### What are the Node.js requirements?

The SDK requires Node.js version 18.17 or higher.
