Fonoster MCP Server
一个 MCP 服务器,它列出应用程序和电话号码,并通过 Fonoster 发起呼出呼叫。
README
Fonoster:Twilio 的开源替代方案
Fonoster 正在研究一种创新的可编程电信堆栈,该堆栈将允许企业完全通过基于云的实用程序将电话服务与互联网连接。
<a href="https://discord.gg/mpWSRUhG7e"><img alt="Fonoster community banner" src="https://raw.githubusercontent.com/fonoster/.github/main/profile/community.png"></img></a>
<a href="https://github.com/fonoster/fonoster/blob/main/CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Code%20of%20Conduct-v1.0-ff69b4.svg?color=%2347b96d" alt="Code Of Conduct"></a>
特性
Fonoster 最显著的特性包括:
- [x] 多租户
- [x] 轻松部署 PBX 功能
- [x] 可编程语音应用程序
- [x] NodeJS SDK
- [x] 支持 Amazon Simple Storage Service (S3)
- [x] 使用 Let's Encrypt 保护 API 端点
- [x] 使用 OAuth2 进行身份验证
- [X] 使用 JWT 进行身份验证
- [x] 基于角色的访问控制 (RBAC)
- [x] 基于插件的命令行工具
- [x] 支持 Google Speech API
代码示例
语音应用程序是控制呼叫流程的服务器。语音应用程序可以使用以下动词的任意组合:
Answer- 接受来电Hangup- 结束通话Play:接受包含媒体文件的 URL,并将声音流回给呼叫方PlayDtmf- 接受 DTMF 序列并将其播放回呼叫方Say- 接受文本,将文本合成为音频,并将结果流回Gather- 等待 DTMF 或语音事件,然后返回结果SGather- 返回一个流,用于未来的 DTMF 和语音结果Stream- 创建一个双向流,用于从呼叫者发送和接收音频Dial- 将呼叫传递给 PSTN 上的代理或号码Record- 记录呼叫方的声音并将音频保存在存储子系统中Mute- 告诉通道停止发送媒体,从而有效地使通道静音Unmute- 告诉通道允许媒体流动
语音应用程序示例:
const VoiceServer = require("@fonoster/voice").default;
const {
GatherSource,
VoiceRequest,
VoiceResponse
} = require("@fonoster/voice");
new VoiceServer().listen(async (req: VoiceRequest, voice: VoiceResponse) => {
const { ingressNumber, sessionRef, appRef } = req;
await voice.answer();
await voice.say("Hi there! What's your name?");
const { speech: name } = await res.gather({
source: GatherSource.SPEECH
});
await voice.say("Nice to meet you " + name + "!");
await voice.say("Please enter your 4 digit pin.");
const { digits } = await voice.gather({
maxDigits: 4,
finishOnKey: "#"
});
await voice.say("Your pin is " + digits);
await voice.hangup();
});
// Your app will live at tcp://127.0.0.1:50061
// and you can easily publish it to the Internet with:
// ngrok tcp 50061
Fonoster 中的一切都是 API 优先的,发起呼叫也不例外。您可以使用 SDK 通过几行代码启动呼叫。
使用 SDK 发起呼叫的示例:
const SDK = require("@fonoster/sdk");
async function main(request) {
const apiKey = "your-api-key";
const apiSecret = "your-api-secret"
const accessKeyId = "WO00000000000000000000000000000000";
const client = new SDK.Client({ accessKeyId });
await client.loginWithApiKey(apiKey, apiSecret);
const calls = new SDK.Calls(client);
const response = await calls.createCall(request);
console.log(response); // successful response
}
const request = {
from: "+18287854037",
to: "+17853178070",
appRef: "3e61ecb7-a1b6-4a93-84c3-4f1979165bca",
// Optional metadata to be sent to the Voice Application
metadata: {
name: "John Doe",
message: "Please call me back."
}
};
main(request).catch(console.error);
入门
要开始使用 Fonoster,请使用以下资源:
赠送一个 Star! ⭐
如果您喜欢这个项目或计划使用它,请赠送一个 star。谢谢 🙏
Bug 和反馈
对于 Bug、问题和讨论,请使用 Github Issues
贡献
有关贡献,请参阅以下链接:
<!--contributors-->
<table> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/psanders> <img src=https://avatars.githubusercontent.com/u/539774?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Pedro Sanders/> <br /> <sub style="font-size:14px"><b>Pedro Sanders</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/angelbencosme> <img src=https://avatars.githubusercontent.com/u/6846866?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Angel M. Bencosme/> <br /> <sub style="font-size:14px"><b>Angel M. Bencosme</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/efraa> <img src=https://avatars.githubusercontent.com/u/40646537?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Efrain Peralta/> <br /> <sub style="font-size:14px"><b>Efrain Peralta</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/obrucheoghene> <img src=https://avatars.githubusercontent.com/u/111436934?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Obruche Wilfred Oghenechohwo/> <br /> <sub style="font-size:14px"><b>Obruche Wilfred Oghenechohwo</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/whernandez> <img src=https://avatars.githubusercontent.com/u/37089069?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Wandy Hernandez/> <br /> <sub style="font-size:14px"><b>Wandy Hernandez</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/wardner> <img src=https://avatars.githubusercontent.com/u/51765669?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Wardner Lara/> <br /> <sub style="font-size:14px"><b>Wardner Lara</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/rihernandez> <img src=https://avatars.githubusercontent.com/u/27718122?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Richard HC/> <br /> <sub style="font-size:14px"><b>Richard HC</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/Nageswari-droid> <img src=https://avatars.githubusercontent.com/u/65342122?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Nageswari/> <br /> <sub style="font-size:14px"><b>Nageswari</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/xquanluu> <img src=https://avatars.githubusercontent.com/u/110280845?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Hoan Luu Huu/> <br /> <sub style="font-size:14px"><b>Hoan Luu Huu</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/speedymonster> <img src=https://avatars.githubusercontent.com/u/31810381?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Speedy Monster/> <br /> <sub style="font-size:14px"><b>Speedy Monster</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/parz3val> <img src=https://avatars.githubusercontent.com/u/34773307?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=harry_dev/> <br /> <sub style="font-size:14px"><b>harry_dev</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/CKanishka> <img src=https://avatars.githubusercontent.com/u/30779692?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Kanishka Chowdhury/> <br /> <sub style="font-size:14px"><b>Kanishka Chowdhury</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/BrayanMnz> <img src=https://avatars.githubusercontent.com/u/61812255?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Brayan Munoz V./> <br /> <sub style="font-size:14px"><b>Brayan Munoz V.</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/dedekrnwan> <img src=https://avatars.githubusercontent.com/u/25242055?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Dede kurniawan/> <br /> <sub style="font-size:14px"><b>Dede kurniawan</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/gad2103> <img src=https://avatars.githubusercontent.com/u/1045265?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=gabriel duncan/> <br /> <sub style="font-size:14px"><b>gabriel duncan</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/iamppborah> <img src=https://avatars.githubusercontent.com/u/96339995?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Prasurjya Pran Borah/> <br /> <sub style="font-size:14px"><b>Prasurjya Pran Borah</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/justjordan15> <img src=https://avatars.githubusercontent.com/u/164441222?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Jordan/> <br /> <sub style="font-size:14px"><b>Jordan</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/hectorvent> <img src=https://avatars.githubusercontent.com/u/2405682?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Hector Ventura/> <br /> <sub style="font-size:14px"><b>Hector Ventura</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/0xflotus> <img src=https://avatars.githubusercontent.com/u/26602940?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=0xflotus/> <br /> <sub style="font-size:14px"><b>0xflotus</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/itzmanish> <img src=https://avatars.githubusercontent.com/u/12438068?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Manish/> <br /> <sub style="font-size:14px"><b>Manish</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/osehgol> <img src=https://avatars.githubusercontent.com/u/4996423?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Osama Sehgol/> <br /> <sub style="font-size:14px"><b>Osama Sehgol</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/psuet> <img src=https://avatars.githubusercontent.com/u/7604288?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Paul Sütterlin/> <br /> <sub style="font-size:14px"><b>Paul Sütterlin</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/RiadVargas> <img src=https://avatars.githubusercontent.com/u/4274014?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Riad Vargas/> <br /> <sub style="font-size:14px"><b>Riad Vargas</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/vcidst> <img src=https://avatars.githubusercontent.com/u/683016?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Shailendra Paliwal/> <br /> <sub style="font-size:14px"><b>Shailendra Paliwal</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/gitter-badger> <img src=https://avatars.githubusercontent.com/u/8518239?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=The Gitter Badger/> <br /> <sub style="font-size:14px"><b>The Gitter Badger</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/YuriCodes> <img src=https://avatars.githubusercontent.com/u/80093500?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Yuri/> <br /> <sub style="font-size:14px"><b>Yuri</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/cdrsociate> <img src=https://avatars.githubusercontent.com/u/89363212?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=cdrsociate/> <br /> <sub style="font-size:14px"><b>cdrsociate</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/ghana7989> <img src=https://avatars.githubusercontent.com/u/65382745?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=pavan/> <br /> <sub style="font-size:14px"><b>pavan</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/nrjchnd> <img src=https://avatars.githubusercontent.com/u/17134818?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=nrjchnd/> <br /> <sub style="font-size:14px"><b>nrjchnd</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/salami-dev> <img src=https://avatars.githubusercontent.com/u/57477131?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Salami Bashir/> <br /> <sub style="font-size:14px"><b>Salami Bashir</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/scshiv29-dev> <img src=https://avatars.githubusercontent.com/u/68141773?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Shivam Deepak Chaudhary/> <br /> <sub style="font-size:14px"><b>Shivam Deepak Chaudhary</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/showf68> <img src=https://avatars.githubusercontent.com/u/45857918?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Yossef Haim/> <br /> <sub style="font-size:14px"><b>Yossef Haim</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/telenautical> <img src=https://avatars.githubusercontent.com/u/106842020?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=telenautical/> <br /> <sub style="font-size:14px"><b>telenautical</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/theewiz> <img src=https://avatars.githubusercontent.com/u/81051645?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Wisdom Elendu/> <br /> <sub style="font-size:14px"><b>Wisdom Elendu</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/judgegodwins> <img src=https://avatars.githubusercontent.com/u/38760034?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Judge Godwins/> <br /> <sub style="font-size:14px"><b>Judge Godwins</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/jonathan-chin> <img src=https://avatars.githubusercontent.com/u/7519412?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Jon Chin/> <br /> <sub style="font-size:14px"><b>Jon Chin</b></sub> </a> </td> </tr> <tr> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/harish-chander> <img src=https://avatars.githubusercontent.com/u/13236956?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Harish Chander/> <br /> <sub style="font-size:14px"><b>Harish Chander</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/GaryBarnes17> <img src=https://avatars.githubusercontent.com/u/97693048?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Gary Barnes/> <br /> <sub style="font-size:14px"><b>Gary Barnes</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/FidalMathew> <img src=https://avatars.githubusercontent.com/u/84982038?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Fidal Mathew/> <br /> <sub style="font-size:14px"><b>Fidal Mathew</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/eatskolnikov> <img src=https://avatars.githubusercontent.com/u/1693000?v=4 width="100;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Enmanuel Toribio/> <br /> <sub style="font-size:14px"><b>Enmanuel Toribio</b></sub> </a> </td> <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0"> <a href=https://github.com/jellydn> <img src=https://avatars.githubusercontent.com/u/870029?v=4 width="100;" style="border-radius:50%;align-items:center
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。