bvoip-mcp

bvoip-mcp

MCP server for Bvoip / 1Stream that exposes call-reporting, phone-status, and CRM-extension-mapping endpoints as MCP tools.

Category
访问服务器

README

bvoip-mcp

MCP server for Bvoip / 1Stream — exposes the 1Stream ClientAccess.svc REST API's call-reporting, phone-status and CRM-extension-mapping endpoints as MCP tools.

Naming note: MSPbots' own integration is registered as "Bvoip" (subjectCode=BVOIP); the underlying vendor platform/API is "1Stream" (portal.1stream.com). This MCP covers exactly the 6 GET endpoints MSPbots itself has configured for this integration — see Known Gaps below for why the scope stops there.

Overview

  • Stateless HTTP service. No credentials are ever persisted — each request supplies its own API key via a header, and it is used only for the lifetime of that single request.
  • Supports concurrent requests; per-request credential isolation is done via Python contextvars, not a global/shared client instance.
  • Entry points: POST /mcp (MCP protocol) and GET /health (health check).
  • Default port: 8080 (configurable via MCP_HTTP_PORT).

Authentication

1Stream authenticates with a single static API key, created in the 1Stream portal (see "Creating API Keys in 1Stream" at docs.1stream.com). 1Stream's own integration convention sends this key as the raw value of the Authorization header — no Bearer prefix — and this server forwards it exactly that way.

HEADER 授权参数说明

Header 类型 是否必填 默认值 枚举值 字段描述 Example
X-Bvoip-Api-Key string 1Stream 静态 API Key,原样转发为上游 Authorization 请求头(不加 Bearer 前缀) a1b2c3d4e5f6...

Missing the header returns 401:

{
  "error": "Missing credentials",
  "message": "This server requires the X-Bvoip-Api-Key header",
  "required_headers": ["X-Bvoip-Api-Key"],
  "optional_headers": []
}

Environment Variables

Variable 类型 是否必填 默认值 说明
MCP_HTTP_PORT int 8080 HTTP 监听端口
MCP_HTTP_HOST string 0.0.0.0 HTTP 监听地址
BVOIP_BASE_URL string https://portal.1stream.com/api/ClientAccess.svc 1Stream ClientAccess 基础 URL

MCP Endpoint

  • POST /mcp — MCP protocol (streamable HTTP transport)
  • GET /health — health check, returns {"status": "ok", "service": "bvoip-mcp", "transport": "http"}

Tool List

All 6 tools are plain GET calls against ClientAccess.svc with no required parameters — this matches exactly how MSPbots itself calls this integration today. Each tool accepts an optional extra_params pass-through dict for any additional query-string filters (e.g. a date range), since 1Stream's full filter reference is only published in their partner-gated Postman collection (see Known Gaps).

Tool 功能 参数
bvoip_get_call_logs 列出通话详单(起止时间、方向、分机、队列/振铃组、通话时长、录音链接、关联 CRM 工单等) extra_params: dict[str,str] | None
bvoip_get_phone_statuses 列出当前分机/队列状态(注册状态、登录/可用状态、队列坐席分配/可用/通话数、自定义状态等) extra_params: dict[str,str] | None
bvoip_get_calls_by_hour 按小时统计通话量(呼入/呼出/总数/未接听) extra_params: dict[str,str] | None
bvoip_get_calls_leaderboard 统计周期内的通话总量(呼入/呼出/总数/未接听) extra_params: dict[str,str] | None
bvoip_get_calls_by_extension 按分机统计通话数据(呼入/呼出/总数、平均及总通话时长) extra_params: dict[str,str] | None
bvoip_get_client_crm_user_extension_mappings 列出 1Stream 用户/分机与关联 CRM(如 ConnectWise)成员账号的映射(分机、CRM 成员 ID/用户名、角色、套餐等) extra_params: dict[str,str] | None

测试示例

# Health check
curl -s http://localhost:8080/health

# Call a tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
  -H "X-Bvoip-Api-Key: <your-1stream-api-key>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "mcp-session-id: <session-id-from-initialize>" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "bvoip_get_phone_statuses",
      "arguments": {}
    }
  }'

Expected: 200 with the phone-status list on a valid key; 401/403 (surfaced by the tool as Error: Bvoip API error 401/403: ...) on an invalid or revoked key.

API Reference

  • Overview: https://docs.1stream.com/apis/1stream-api
  • Full REST/Postman API reference: partner-gated — 1Stream states "please reach out to our team at partners@bvoip.com to request the documentation, or if you're an active partner you can find it at Partners > Resources > Automation and APIs." No public Swagger/OpenAPI spec exists.
  • A public API Fields.xlsx (linked from the overview page above) documents the response fields for the endpoints below, with no auth/parameter detail.

Known Gaps

  • Scope is exactly MSPbots' 6 configured endpoints, not the vendor's full API surface — unlike every other vendor tackled in this MCP program, 1Stream's REST API documentation is fully partner-gated. There is no public reference beyond this overview page and the fields spreadsheet, so there was no larger public spec to weigh a broader scope against.
  • The fields spreadsheet documents one additional endpoint, GetCallSegmentLogs (call-leg-level detail), that MSPbots does not currently call — intentionally left out of this server for the same reason; can be added on request if a use case emerges.
  • Response field names/types below are sourced from the public API Fields.xlsx, not a formal schema — treat them as documentation, not a contract. Request-side filter parameters (e.g. date range) are not publicly documented at all; extra_params is provided so a caller who has partner-level API access can still pass them through.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选