@fonoster/mcp

中文文档
0.61.0发布于 2026/11/15MITTypeScriptCommonJS构建来源已验证近 30 天下载 6592

Model Context Protocol for Fonoster

原始使用文档
文档目录8 节
  1. Tools
  2. Prompts
  3. Setup
  4. Usage with Claude Desktop
  5. Environment Variables
  6. Testing with the MCP Inspector
  7. Troubleshooting
  8. Build

Fonoster MCP Server

Discord GitHub Twitter Follow

MCP Server for the Fonoster API, enabling MCP clients to interact with Fonoster's telephony services. This module is part of the Fonoster open-source project. For more information about the project, please visit https://github.com/fonoster/fonoster.

Tools

  1. list_numbers

    • Returns a list of numbers from Fonoster in a table format (using markdown)
    • Optional inputs:
      • page_size (number): Maximum number of numbers to return
      • page_token (string): Pagination token for next page
    • Returns: List of numbers with their refs, names, and telUrls
  2. list_applications

    • Lists applications from Fonoster in a table format (using markdown)
    • Optional inputs:
      • page_size (number): Maximum number of applications to return
      • page_token (string): Pagination token for next page
    • Returns: List of applications with their refs, names, endpoints, creation dates, update dates, and types
  3. create_call

    • Creates a call from Fonoster
    • Required inputs:
      • from (string): The number to call from
      • to (string): The number to call to
      • app_ref (string): The reference to the application to use for the call
      • metadata (object): Metadata to be sent to the application
    • Returns: Call creation confirmation with reference ID
  4. create_call_batch

    • Creates a batch of calls from Fonoster
    • Required inputs:
      • from (string): The number to call from
      • to_array (array): The numbers to call to
      • app_ref (string): The reference to the application to use for the call
      • metadata (object): Metadata to be sent to the application
    • Returns: Batch creation confirmation with reference ID

Prompts

  1. create_call_prompt
    • A prompt for creating a call step by step
    • Guides an MCP client through the process of:
      • Asking the user for the number or numbers to call if not already provided
      • Offering a list of available numbers using the list_numbers tool
      • Asking for the application name and finding its reference
      • Creating a call using the create_call or create_call_batch tool depending on the user's request

Setup

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

If you are logged in to the command-line tool, simply run fonoster mcp:configure --client claude to configure the server.

npx

{
  "mcpServers": {
    "fonoster": {
      "command": "npx",
      "args": [
        "-y",
        "@fonoster/mcp"
      ],
      "env": {
        "MCP_WORKSPACE_ACCESS_KEY_ID": "your-workspace-access-key-id",
        "MCP_APIKEY_ACCESS_KEY_ID": "your-apikey-access-key-id",
        "MCP_APIKEY_ACCESS_KEY_SECRET": "your-apikey-access-key-secret"
      }
    }
  }
}

docker

{
  "mcpServers": {
    "fonoster": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_WORKSPACE_ACCESS_KEY_ID",
        "-e",
        "MCP_APIKEY_ACCESS_KEY_ID",
        "-e",
        "MCP_APIKEY_ACCESS_KEY_SECRET",
        "fonoster/mcp"
      ],
      "env": {
        "MCP_WORKSPACE_ACCESS_KEY_ID": "your-workspace-access-key-id",
        "MCP_APIKEY_ACCESS_KEY_ID": "your-apikey-access-key-id",
        "MCP_APIKEY_ACCESS_KEY_SECRET": "your-apikey-access-key-secret"
      }
    }
  }
}

Environment Variables

VariableDescriptionRequired
MCP_WORKSPACE_ACCESS_KEY_IDYour workspace access key IDYes
MCP_APIKEY_ACCESS_KEY_IDYour API key access key IDYes
MCP_APIKEY_ACCESS_KEY_SECRETYour API key secretYes
MCP_ENDPOINTCustom API endpoint (e.g., localhost:50051)No
FONOSTER_CA_FILEA PEM file of certificate authorities to trust, such as an install's config/tls/ca.pemNo

Testing with the MCP Inspector

MCP_WORKSPACE_ACCESS_KEY_ID="your-workspace-access-key-id" \
MCP_APIKEY_ACCESS_KEY_ID="your-apikey-access-key-id" \
MCP_APIKEY_ACCESS_KEY_SECRET="your-apikey-access-key-secret" \
npx @modelcontextprotocol/inspector \
node /path/to/fonoster/mods/mcp/dist/index.js

Troubleshooting

If you encounter authentication errors, verify that:

  1. Your Fonoster credentials are correct
  2. The environment variables are properly set
  3. You have the necessary permissions to access the Fonoster API

Build

Docker build:

docker build -t fonoster/mcp -f Dockerfile .

版本与发布记录

@fonoster/mcp 共发布 122 个版本,首次发布于 2025/03/06;过去 12 个月发布了 63 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.61.0latest2026/11/15今天
0.60.02026/11/151 天前
0.59.02026/11/141 天前
0.58.02026/11/141 天前
0.57.02026/11/114 天前
0.56.02026/11/114 天前

其他发布通道:next → 0.9.51。

关于 @fonoster/mcp 的常见问题

@fonoster/mcp 是什么?

Model Context Protocol for Fonoster

如何安装 @fonoster/mcp?

在项目目录运行 npm install @fonoster/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 fonoster-mcp,可以用 npx fonoster-mcp 直接运行。

@fonoster/mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fonoster/mcp 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fonoster/mcp 可以商用吗?

@fonoster/mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fonoster/mcp 的下载量有多少?

根据 npm 官方下载统计,@fonoster/mcp 在 2026/10/15 – 2026/11/13 这 30 天内被下载 6,592 次,日均约 220 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fonoster/mcp 还在维护吗?

最新版本 0.61.0 发布于 2026/11/15(今天);至今共发布 122 个版本,其中过去 12 个月发布了 63 个;首次发布于 2025/03/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。