Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #70 +/- ##
==========================================
+ Coverage 61.28% 67.12% +5.84%
==========================================
Files 27 28 +1
Lines 2291 2376 +85
==========================================
+ Hits 1404 1595 +191
+ Misses 887 781 -106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot I drafted an MCP integration; please complete the work. Furthermore, make sure we offer publicly documented factory functions to establish SIP and RTP transports that mimic the |
Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/d59b28af-0c12-43b9-b105-54f5f18bc24e Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
… docs Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/d59b28af-0c12-43b9-b105-54f5f18bc24e Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
Completed in d18b3a9. Here's what was done:
|
…ead_aor/read_stun_server, rewrite docs Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/78554363-d40c-4be1-9689-16d2380c8106 Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
for more information, see https://pre-commit.ci
Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/0e26b2e5-7aa5-4e14-a968-377b144f2fdd Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/0e26b2e5-7aa5-4e14-a968-377b144f2fdd Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
Completed in 66b27e2. Here's what was done to match your design:
|
There was a problem hiding this comment.
Pull request overview
This PR adds a Model Context Protocol (MCP) server entrypoint to the VoIP project, exposing tools that can place calls and speak responses via MCP sampling, and wires up CLI/docs/CI support for the new feature.
Changes:
- Introduces
voip.mcp(FastMCP server) withsay/calltools and arun()helper. - Adds a
SessionInitiationProtocol.run()helper and plumbs call session storage ontoDialog. - Adds CLI command (
voip mcp), documentation page, CI extra, and a comprehensive new test suite for MCP.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
voip/stun.py |
Switches STUN server default type to NetworkAddress. |
voip/sip/transactions.py |
Stores outbound call handler on the transaction and dialog; registers RTP with the created session. |
voip/sip/protocol.py |
Adds SessionInitiationProtocol.run() and a registration “ready” callback hook. |
voip/sip/dialog.py |
Adds dialog.session for later access to the active RTP session handler. |
voip/mcp.py |
New MCP server module with tools and MCP-driven agent call behavior. |
voip/__main__.py |
Adds voip mcp command and uses Click callbacks for parsing SipURI. |
tests/test_mcp.py |
Adds unit tests covering MCP agent behavior, tools, and run() wiring. |
pyproject.toml |
Adds mcp extra dependencies. |
mkdocs.yml / docs/mcp.md |
Adds MCP documentation page to site nav. |
.github/workflows/ci.yml |
Runs tests for the new mcp extra in CI. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
for more information, see https://pre-commit.ci
Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/88dcc78d-1979-4f77-817c-a893d9373c2d Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
Agent-Logs-Url: https://github.com/codingjoe/VoIP/sessions/88dcc78d-1979-4f77-817c-a893d9373c2d Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
No description provided.