tidewave_phoenix
861
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Elixir
语言
—
创建时间
最近更新
项目能做什么
专为 Phoenix 开发设计的 MCP 服务器,提供运行时级别的相关工具支持。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Tidewave Phoenix
Tidewave Phoenix is an MCP server that provides runtime-level tools for developing Phoenix apps using coding agents.
Your agent will be able to use this MCP server to talk to your running Phoenix app in development to:
- execute code in the context of the running app (like an IEx session for agents)
- read the app's live logs
- query your development database
- get source locations of modules and functions
- read documentation pinned to the exact hex package versions your project depends on
This MCP server is an open-source component of [Tidewave](https://tidewave.ai), the agentic development environment for Phoenix and Rails.
You can use this project as a standalone MCP server or integrated with the [Tidewave product](https://tidewave.ai) by following the installation instructions below.
## Installation
### 1. Add the Tidewave hex package to your app
#### Option 1: Manually
Add the `tidewave` package to your `mix.exs`:
```elixir
def deps do
[
{:tidewave, "~> 0.9", only: :dev},
{:phoenix, ...},
]
end
```
Then, for Phoenix applications, go to your `lib/my_app_web/endpoint.ex` and right above the `if code_reloading? do` block, add:
```diff
+ if Mix.env() == :dev do
+ plug Tidewave
+ end
if code_reloading? do
```
> [!TIP]
> Tidewave works best with Phoenix LiveView v1.1 or later. Once you update it,
> make sure to enable the following options in your `config/dev.exs`:
>
> ```elixir
> config :phoenix_live_view,
> debug_heex_annotations: true,
> debug_attributes: true
> ```
>
> Those are enabled by default for Phoenix v1.8+ apps.
#### Option 2: Using Igniter
Alternatively, you can use `igniter` to automatically install Tidewave MCP into an existing Phoenix application:
```sh
# install igniter_new if you haven't already
mix archive.install hex igniter_new
# install tidewave
mix igniter.install tidewave
```
#### Umbrella projects
For umbrella projects, you can follow the manual steps above in the application that defines your Phoenix endpoint (typically `apps/your_app_web`).
### 2. Add the Tidewave MCP to your agent/editor
Add the Tidewave MCP server to your editor or MCP client configuration as the type "http" (streamable), pointing to the `/tidewave/mcp` path and port your web application is running at. For example, `http://localhost:4000/tidewave/mcp`.
We also have specific instructions for:
- [Claude Code](https://tidewave.hexdocs.pm/mcp_claude_code.html)
- [Codex](https://tidewave.hexdocs.pm/mcp_codex.html)
- [Cursor](https://tidewave.hexdocs.pm/mcp_cursor.html)
- [Neovim](https://tidewave.hexdocs.pm/mcp_neovim.html)
- [OpenCode](https://tidewave.hexdocs.pm/mcp_opencode.html)
- [VS Code](https://tidewave.hexdocs.pm/mcp_vscode.html)
- [Others](https://tidewave.hexdocs.pm/mcp.html)
> [!TIP]
> If you are using worktrees, you are likely running your web server
> on different ports, and therefore there isn't a single host and port
> combo you can use.
>
> In such cases, you may want to
阅读完整原文
项目深度分析 AI 生成
Phoenix AI 开发环境一键托管/增强套件
| 产品构想 | 基于 Apache-2.0 协议,面向独立开发者和小型团队提供开箱即用的本地/远程 Phoenix AI 开发沙盒与 MCP 增强插件(如自动化的测试数据生成、更安全的数据库只读代理、工作树多端口自动路由)。 |
| 核心功能 | 多工作树自动端口发现、SQL 查询安全护栏(只读/脱敏)、实时日志过滤与异常告警推送、一键 Igniter 集成脚本 |
| 目标用户 | 使用 Cursor/Claude Code 的 Phoenix 独立开发者及小型敏捷团队 |
| 难度/周期 | 低-中(基于现有 Elixir/Phoenix 生态扩展) · 1-2个月(MVP) · 成本:低(主要为开发时间,无需重资产服务器) |
| 收费模式 | 一次性买断授权(Pro 插件)或低客单价订阅(如 $9-$19/月) |
| 竞争风险 | 上游 Tidewave 官方已提供免费开源组件及商业版 tidewave.ai,存在直接竞争与功能被官方吸收的风险 |
| 依据 | AI推测 |
Elixir/Phoenix 团队级 AI 编码安全与审计网关
| 产品构想 | 在 Tidewave MCP 与编码代理之间增加企业级安全网关,解决代理直接执行 `project_eval` 和 `execute_sql_query` 带来的误删数据、敏感信息泄露风险。 |
| 核心功能 | MCP 工具调用审计日志、高危操作(如写库、特定模块调用)人工二次确认、开发库敏感字段自动脱敏、基于角色的权限控制 |
| 目标用户 | 对数据合规与代码安全有要求的中大型 Elixir 研发团队(如金融科技、SaaS 公司) |
| 难度/周期 | 中 · 2-3个月 · 成本:低-中 |
| 收费模式 | 按团队席位订阅(B2B SaaS 或私有化部署授权) |
| 竞争风险 | Elixir 生态整体市场规模相对小众,企业级付费意愿和预算需提前验证 |
| 依据 | 尚需验证的假设 |
面向垂直场景的 Phoenix MCP 扩展工具包
| 产品构想 | 围绕特定 Phoenix 生态高频场景(如 LiveView 性能分析、Oban 后台任务监控、Ecto 慢查询诊断)开发专用 MCP 工具集,作为 Tidewave 的补充插件。 |
| 核心功能 | LiveView 进程状态与内存快照读取、Oban 队列积压与失败任务诊断、Ecto 查询计划(EXPLAIN)自动分析并喂给 AI 代理 |
| 目标用户 | 深度使用 Phoenix LiveView、Oban、Ecto 的全栈工程师 |
| 难度/周期 | 低-中 · 1个月 · 成本:极低 |
| 收费模式 | 开源核心+高级诊断工具付费订阅,或作为技术咨询/架构优化的获客工具 |
| 竞争风险 | 依赖 Phoenix/LiveView 版本迭代,且用户可能倾向于自己编写简单的自定义 MCP 工具 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 |
| 社区活跃 | Star 861 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。