Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Respan Server

БесплатноНе проверен

Enables AI assistants to access and manage Respan logs, traces, customers, and prompts for monitoring and management.

GitHubEmbed

Описание

Enables AI assistants to access and manage Respan logs, traces, customers, and prompts for monitoring and management.

README

Model Context Protocol (MCP) server for Respan - access logs, prompts, traces, and customer data directly from your AI assistant.

Features

  • Logs - Query, filter, and create LLM request logs
  • Traces - View complete execution traces with span trees
  • Customers - Access customer data and budget information
  • Prompts - Manage prompt templates and versions

Quick Start

Option 1: Public HTTP (Recommended)

No installation required.

  1. Get your API key from platform.respan.ai

  2. Add to your MCP config file:

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "respan": {
      "url": "https://mcp.respan.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RESPAN_API_KEY"
      }
    }
  }
}

Claude Desktop (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "respan": {
      "url": "https://mcp.respan.ai/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_RESPAN_API_KEY"
      }
    }
  }
}
  1. Restart Cursor/Claude Desktop

Option 2: Local Stdio

Run the MCP server locally for personal development or offline use.

Prerequisites: Node.js v18+

git clone https://github.com/Keywords-AI/keywordsai-mcp.git
cd keywordsai-mcp
npm install
npm run build
{
  "mcpServers": {
    "respan": {
      "command": "node",
      "args": ["/absolute/path/to/respan-mcp/dist/lib/index.js"],
      "env": {
        "RESPAN_API_KEY": "YOUR_RESPAN_API_KEY"
      }
    }
  }
}

Option 3: Private HTTP (Teams)

Deploy your own instance to Vercel for teams sharing a single deployment.

Deploy with Vercel

Set RESPAN_API_KEY in Vercel Dashboard > Settings > Environment Variables.

Share this config with your team:

{
  "mcpServers": {
    "respan": {
      "url": "https://your-project.vercel.app/mcp"
    }
  }
}

Available Tools

Logs

Tool Description
list_logs List and filter LLM request logs with powerful query capabilities
get_log_detail Retrieve complete details of a single log by unique ID
create_log Create a new log entry for any type of LLM request

Traces

Tool Description
list_traces List and filter traces with sorting and pagination
get_trace_tree Retrieve complete hierarchical span tree of a trace

Customers

Tool Description
list_customers List customers with pagination and sorting
get_customer_detail Get customer details including budget usage

Prompts

Tool Description
list_prompts List all prompts in your organization
get_prompt_detail Get detailed prompt information
list_prompt_versions List all versions of a prompt
get_prompt_version_detail Get specific version details

Filter Syntax

Tools that support filtering accept a filters object:

{
  "cost": {"operator": "gt", "value": [0.01]},
  "model": {"operator": "", "value": ["gpt-4"]},
  "customer_identifier": {"operator": "contains", "value": ["user"]},
  "metadata__session_id": {"operator": "", "value": ["abc123"]}
}

Operators: "" (equal), not, lt, lte, gt, gte, contains, icontains, startswith, endswith, in, isnull


Project Structure

respan-mcp/
├── api/
│   └── mcp.ts                # HTTP entry point (Vercel serverless function)
├── lib/
│   ├── index.ts              # Stdio entry point (local mode)
│   ├── shared/
│   │   └── client.ts         # API client, auth config, path validation
│   ├── observe/
│   │   ├── logs.ts           # list_logs, get_log_detail, create_log
│   │   ├── traces.ts         # list_traces, get_trace_tree
│   │   └── users.ts          # list_customers, get_customer_detail
│   └── develop/
│       └── prompts.ts        # list_prompts, get_prompt_detail, versions
├── vercel.json               # Vercel config (rewrites, function timeout)
├── tsconfig.json             # TypeScript config
└── package.json

Architecture

  • Two entry points: api/mcp.ts (HTTP via Vercel) and lib/index.ts (stdio for local use)
  • Shared core: Both entry points create an AuthConfig and pass it to the same tool registration functions via closures - no global mutable state
  • Tool modules: Organized by domain (observe/ for runtime data, develop/ for prompt management)
  • API client: lib/shared/client.ts handles all upstream API calls with 30s timeout, path validation, and auth

Enterprise Configuration

For custom API endpoints, set the RESPAN_API_BASE_URL environment variable:

Stdio mode:

{
  "mcpServers": {
    "respan": {
      "command": "node",
      "args": ["/path/to/respan-mcp/dist/lib/index.js"],
      "env": {
        "RESPAN_API_KEY": "YOUR_API_KEY",
        "RESPAN_API_BASE_URL": "https://your-endpoint.example.com/api"
      }
    }
  }
}

Private deployment: Set RESPAN_API_BASE_URL in Vercel environment variables.


Local Development

npm run build        # Compile TypeScript
npm run watch        # Watch mode
npm run stdio        # Build and run in stdio mode

Documentation

Full documentation at docs.respan.ai/documentation/resources/mcp

License

MIT

from github.com/respanai/respan-mcp

Установка Respan Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/respanai/respan-mcp

FAQ

Respan Server MCP бесплатный?

Да, Respan Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Respan Server?

Нет, Respan Server работает без API-ключей и переменных окружения.

Respan Server — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Respan Server в Claude Desktop, Claude Code или Cursor?

Открой Respan Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Respan Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai