SShortSingh.
Back to feed

Developer builds MCP server to unify Asterisk and FreeSWITCH command interfaces

0
·1 views

A developer who manages both Asterisk and FreeSWITCH PBX systems built an open-source tool called pbx-mcp to eliminate the need to memorise two separate command syntaxes for the same tasks. The MCP server presents a single interface to an AI assistant, which automatically selects the correct commands for whichever PBX is configured. A key feature is chained diagnostic queries, where the assistant can autonomously run multiple commands across both systems to troubleshoot issues like failing outbound calls without the user needing to recall the sequence. The tool connects directly to both platforms via their native protocols — AMI for Asterisk and ESL for FreeSWITCH — with no third-party dependencies beyond the MCP SDK and Zod. Safety is built in by default, with the server operating in read-only mode and using word-level command scanning to block state-changing operations from being executed accidentally.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Codename One Adds On-Device AI and MCP Debugging Tool Across Mobile and Desktop

Open-source cross-platform framework Codename One has merged on-device AI capabilities and Model Context Protocol (MCP) support via a loopback socket in its latest release. The AI surface is organized into three packages covering vision tasks like OCR and face detection, language operations such as translation and identification, and reusable inference sessions for custom TensorFlow Lite models. Android leverages ML Kit while Apple platforms use Vision, Core Image, and Natural Language frameworks, with CPU fallback available where hardware acceleration is absent. All processing runs locally on the device, meaning no images, text, or tensors are sent to Codename One's servers, offering a narrower data exposure path for sensitive content. The MCP channel, designed primarily as a debugging tool, listens only on a loopback socket, limiting its exposure as a potential external control interface.

0
ProgrammingDEV Community ·

Solo developer shares hard-won lessons building a production-grade AI agent

A self-taught developer with a civil engineering background built a personal AI assistant over time, expanding it into a complex system with memory layers, routing logic, caching, and quality monitoring. Through hands-on experimentation, they discovered that most failures stemmed not from the AI model itself but from the surrounding infrastructure handling sessions, context, and tool calls. They found that prompt cache hit rates depend heavily on request structure stability rather than model capability, achieving around 66–80% cache hits only after standardising prefixes. Routing requests to cheaper models also proved unreliable in multi-turn conversations, where full context and memory are needed to interpret follow-up messages correctly. The developer concludes that real-world agent performance is shaped by workload design and system architecture, not by benchmark results.

0
ProgrammingDEV Community ·

Redis-py Bug Caused False Max Capacity Errors in Async Cluster Connections

A bug in redis-py, the Python client for Redis, caused spurious MaxConnectionsError exceptions in asynchronous cluster setups despite connection capacity being available. The issue arose when a closed connection marked for reconnect was deferred to a background task, leaving a brief window where the pool appeared full to concurrent requests. During this single event-loop gap, any new acquire attempt would incorrectly find the free queue empty and the connection count at its limit. The fix, proposed in PR #4256 addressing issue #4247, ensures that already-closed connections skip the background disconnect task and immediately return their slot to the free pool. A deterministic regression test using asyncio.Event objects was also added to reproduce the exact race condition and verify the corrected behavior.

Developer builds MCP server to unify Asterisk and FreeSWITCH command interfaces · ShortSingh