tidewave-ai/tidewave_phoenix
In-process MCP for debugging live Phoenix apps with coding agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Tidewave Phoenix is an Elixir MCP server embedded in the application it inspects. The Tidewave plug is mounted in the Phoenix endpoint and serves /tidewave/mcp over streamable HTTP. A call follows the app’s own endpoint into a tool with access to the live development runtime. That makes it materially different from an MCP server that can only index a checkout: evaluation sees loaded dependencies and in-memory state.
The development-only tidewave Mix dependency supplies the integration. For worktrees running on separate ports, mix tidewave.proxy provides a STDIO entry point and adds a port parameter to every tool definition so a call can reach the intended Phoenix instance. The proxy adapts transport and routing; the selected application still supplies the runtime context.
Key Capabilities & Differentiators
The strongest workflow is reproducing a failure and checking its effects without switching tools. An agent can evaluate an Elixir expression against live state, read the server logs and backtrace, then query the development database to see what persisted. Treat evaluation like an IEx session and SQL like a database login with the app’s effective permissions: neither is presented as a read-only interface.
Source lookup returns file and line locations for modules or functions in both application code and dependencies. Documentation lookup uses the exact package versions in mix.lock, which helps when a dependency’s current public docs describe a different API. LiveView 1.1 or later is recommended for the best integration, with debug_heex_annotations and debug_attributes enabled.
Trade-offs & Limitations
Compared with editor-based navigation or a source-only MCP server, Tidewave lets an agent verify behavior instead of inferring it from files. Compared with a database-only connector, it can link stored state to the Elixir call and logs that produced it. Manual IEx and database tooling give engineers a more direct approval boundary. That matters because in-process evaluation and arbitrary SQL give the client more authority than source inspection requires.
Use a disposable development database and avoid loading production credentials or sensitive data into the connected app. The default localhost restriction narrows network exposure but does not make the tools read-only. If a Content Security Policy is present, Tidewave adds unsafe-eval to script-src and disables frame-ancestors in environments where it is loaded. Keep it out of production and other environments that depend on those controls.
Hardware & Deployment Guide
Install {:tidewave, "~> 0.9", only: :dev} and add plug Tidewave before the if code_reloading? block in the Phoenix endpoint, guarded by Mix.env() == :dev. Alternatively, run mix igniter.install tidewave for an existing app. In an umbrella, configure the child application that owns the endpoint. Start Phoenix and point the MCP client to that app’s port, for example http://localhost:4000/tidewave/mcp.
Keep localhost access as the default. If :allow_remote_access is necessary, put an authentication proxy in front of the app and configure :allowed_origins for the required hosts. For embedded development across subdomains, use *.localhost in a secure context and set the development session cookie to same_site: "None" and secure: true. LiveView debug settings are enabled by default in Phoenix 1.8+ apps. ~> 0.9 is the installation constraint, not a verified latest release; no latest GitHub release is listed.
Tidewave plug exposes MCP from the Phoenix endpoint at /tidewave/mcp over streamable HTTP.mix.lock.mix tidewave.proxy supports STDIO clients and adds a target port to each tool definition.Phoenix teams that want a coding agent to reproduce bugs in a local development app and verify behavior against logs, database state, and version-matched docs.
You only need source navigation, require read-only agent access, or need to inspect production or sensitive shared environments.
Quick Start & Installation
# install igniter_new if you haven't already mix archive.install hex igniter_new # install tidewave mix igniter.install tidewave
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| tidewave_phoenix ★ | 868 | +2 | Elixir | Apache-2.0 | In-process MCP for debugging live Phoenix apps with coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| skills | 338.7k | +4.4k | Shell | MIT | Composable Markdown skills that bring engineering workflows to coding agents |
| superpowers | 332.4k | +4.2k | Shell | MIT | A skills framework that gives coding agents a test-first development workflow |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/tidewave-ai/tidewave_phoenix.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about tidewave_phoenix
Does Tidewave run as a separate server from Phoenix?
Tidewave plug serves MCP from inside the running Phoenix endpoint at /tidewave/mcp. Connect a client over streamable HTTP. If several worktrees run on different ports, use mix tidewave.proxy over STDIO and specify the application port on each tool call.What hardware and runtime overhead should I plan for?
Can a company self-host it without buying the Tidewave product?
When is it a better fit than IEx, editor tools, or a database-only MCP connector?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy