Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- hd-audio
- cli
- pygments
- mcp
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand Down
38 changes: 38 additions & 0 deletions docs/mcp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# MCP Server

The `voip` package ships a ready-made [Model Context Protocol (MCP)][mcp] server
that exposes tools to make phone calls on your behalf to any MCP client.

## Claude Code setup

Add the server to your MCP config (see [Claude Code MCP docs][cc-mcp]):

```json
{
"mcpServers": {
"VoIP": {
"type": "stdio",
"command": "uvx",
"args": [
"-y",
"voip[mcp]",
"mcp"
],
"env": {
"SIP_AOR": "sip:****:****@example.com:5060?transport=tcp"
}
}
}
}
```

Set `SIP_AOR` to your SIP address-of-record.

## Tools

::: voip.mcp.say

::: voip.mcp.call

[cc-mcp]: https://docs.anthropic.com/en/docs/claude-code/mcp
[mcp]: https://modelcontextprotocol.io/
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ watch:
nav:
- Usage:
- Quickstart: index.md
- MCP Server: mcp.md
- Cookbook: cookbook.md
- Sessions: sessions.md
- SIP: sip.md
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies = ["cryptography"]
audio = ["numpy"]
hd-audio = ["numpy", "av"]
ai = ["faster-whisper", "numpy", "av", "ollama", "pocket-tts"]
mcp = ["fastmcp>=3.2.4", "faster-whisper", "numpy", "av", "ollama", "pocket-tts"]
cli = ["click", "pygments", "faster-whisper", "numpy", "ollama", "pocket-tts"]
pygments = ["Pygments"]

Expand Down
Loading
Loading