Chanl

MCP Integration

Connect Claude, Cursor, and other AI assistants to your Chanl tools via MCP

Every Chanl workspace exposes an MCP endpoint. Connect any MCP-compatible client -- Claude Desktop, Cursor, Claude Code, or custom agents -- and it gets instant access to your tools, knowledge base, and memory.

https://{workspace-slug}.chanl.dev/{toolset-slug}

Quick Setup

Step 1: Generate the config

chanl mcp config
MCP Configuration
─────────────────────────────────────────

Your MCP endpoint: https://acme.chanl.dev/admin-tools

Add this to your client config:

{
  "mcpServers": {
    "chanl": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/admin-tools",
      "headers": {
        "X-API-Key": "chanl_key_abc123..."
      }
    }
  }
}

Step 2: Add to your client

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "chanl": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/admin-tools",
      "headers": {
        "X-API-Key": "chanl_key_abc123..."
      }
    }
  }
}

Restart Claude Desktop. Chanl tools appear in the tools menu.

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "chanl": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/admin-tools",
      "headers": {
        "X-API-Key": "chanl_key_abc123..."
      }
    }
  }
}

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "chanl": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/admin-tools",
      "headers": {
        "X-API-Key": "chanl_key_abc123..."
      }
    }
  }
}

Replace acme with your workspace slug. Replace admin-tools with your toolset slug.

Step 3: Test the connection

chanl mcp test
MCP Connection Test
─────────────────────────────────────────
Status:      Connected ✓
Endpoint:    https://acme.chanl.dev/admin-tools
Latency:     45ms

Available Tools (12):
  - kb_search
  - kb_add
  - kb_list
  - memory_search
  - memory_add
  - memory_delete
  - tool_list
  - prompt_list
  - prompt_get
  - interaction_list
  - interaction_stats
  - workspace_stats

Generate Config for Specific Clients

# Claude Desktop format
chanl mcp config --output claude

# Cursor format
chanl mcp config --output cursor

# Specific toolset
chanl mcp config --toolset support-tools

Built-in Tools

Every workspace gets an admin-tools toolset automatically. No setup needed.

ToolWhat It Does
kb_searchSemantic search across your knowledge base
kb_addAdd a new knowledge base entry
kb_listList all knowledge base entries
memory_searchFind customer memories by semantic query
memory_addStore a memory (customer, agent, or session scoped)
memory_deleteRemove memories
tool_listList all tools in the workspace
prompt_listList prompt templates
prompt_getGet a prompt with resolved variables
interaction_listList recent conversations
interaction_statsConversation analytics and metrics
workspace_statsWorkspace overview

Custom Toolsets

The admin-tools endpoint includes everything. For production agents, create scoped toolsets with only the tools they need.

Create a custom toolset

chanl toolsets create --name "Support Tools" --slug "support-tools"
✓ Created toolset: toolset_abc123 (support-tools)
  Endpoint: https://acme.chanl.dev/support-tools

Add tools to it

chanl tools create --file lookup-order.json
chanl toolsets add-tool --toolset support-tools --tool tool_abc123
chanl toolsets add-tool --toolset support-tools --tool kb_search
chanl toolsets add-tool --toolset support-tools --tool memory_search

Point your agent to the custom endpoint

{
  "mcpServers": {
    "chanl-support": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/support-tools",
      "headers": {
        "X-API-Key": "chanl_key_abc123..."
      }
    }
  }
}

Now the agent gets lookup_order, kb_search, and memory_search -- nothing else.

Verify the toolset

chanl toolsets get support-tools
Toolset: Support Tools
────────────────────────────────────
ID:          toolset_abc123
Slug:        support-tools
Endpoint:    https://acme.chanl.dev/support-tools

Tools (3):
  - lookup_order (tool_abc123)
  - kb_search (system)
  - memory_search (system)

MCP Commands

CommandDescription
chanl mcp configGenerate MCP config for a client
chanl mcp testTest the MCP connection and list tools
chanl mcp statusView MCP server status
chanl mcp logsView MCP server logs

Config options

OptionDescription
--output <client>Client format: claude, cursor, generic
--toolset <slug>Specific toolset (default: admin-tools)

Test options

OptionDescription
--toolset <slug>Test a specific toolset endpoint
--jsonOutput as JSON

Logs

chanl mcp logs
chanl mcp logs --tail

Authentication

All MCP requests require an X-API-Key header. Keys are workspace-scoped.

HeaderRequiredValue
X-API-KeyYesYour workspace API key
Content-TypeYesapplication/json
AcceptYesapplication/json, text/event-stream

Create keys in the dashboard at Settings > API Keys. Each key is scoped to one workspace.

Multiple Workspaces

Configure separate MCP servers for different environments:

{
  "mcpServers": {
    "chanl-production": {
      "type": "streamablehttp",
      "url": "https://acme.chanl.dev/support-tools",
      "headers": {
        "X-API-Key": "chanl_key_prod..."
      }
    },
    "chanl-staging": {
      "type": "streamablehttp",
      "url": "https://acme-staging.chanl.dev/support-tools",
      "headers": {
        "X-API-Key": "chanl_key_staging..."
      }
    }
  }
}

URL Pattern

EnvironmentURL
Productionhttps://{workspace-slug}.chanl.dev/{toolset-slug}
Staginghttps://{workspace-slug}.staging.chanl.dev/{toolset-slug}

Security

Never commit API keys to version control. Use environment variables or your platform's secret management.

Scope toolsets to minimize exposure

A support agent does not need workspace_stats or memory_delete. Create focused toolsets:

chanl mcp config --toolset support-tools

Rotate keys

If a key is compromised, revoke it in Settings > API Keys and generate a new one. Update the MCP config and restart clients.

Troubleshooting

Platform: MCP

MCP concepts, architecture, and built-in tools

Tools & Toolsets

Create tools and organize them into toolsets

Platform: Toolsets

Toolset strategy and MCP endpoint design

Knowledge Base

Add content that agents search via MCP

On this page