CommandCodeAI / CommandCodeAI/command-code
feat: Support fal MCP Server
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Summary
I tried to add the fal.ai MCP server, but was unable to as it assumed it needed OAuth.
See: https://fal.ai/docs/documentation/setting-up/mcp#other-mcp-clients
Edit: See additional info but was Abel to setup using the add json but could be improved DX by allowing the add and for it not to think it needs OAuth when this MCP server does not.
Expected Behavior
A setup and configured MCP server for fal.ai.
Also adding the header option is nice so can set the auth header in the add. Perhaps this is possible with add-json, but that's not very terminal friendly to do.
Actual Behavior
Does not setup MCP server.
Steps to reproduce the issue
first tried:
cmd mcp add --transport http fal-ai \
https://mcp.fal.ai/mcp \
--header "Authorization: Bearer <my-api-key>
but that asked for OAuth and did https://auth.fal.ai/authorize?response_type=code&client_id=command-code&redirect_uri=XXXX&code_challenge=4B2giHGR8eGid708raKhuVhFheiSVwjjzuDZa8Sa4Ak&code_challenge_method=S256&scope=openid+profile+email+offline_access which fal did not know how to handle
- Then tried just
cmd mcp add --transport http fal-ai https://mcp.fal.ai/mcp
and same.
Command Code Version
0.37.2
Operating System
macOS
Terminal/IDE
ghostty
Shell
zsh
Additional context
I got the MCP serve setup and working using:
cmd mcp add-json fal-ai '{"type":"http","url":"https://mcp.fal.ai/mcp","headers":{"Authorization":"Bearer my-api-token"}}'
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 cmd mcp add 入口开始,将其行为与 cmd mcp add-json 进行比较;使用 issue 中的命令重现 fal.ai HTTP 服务器的设置。完成标准是 add 接受所示的 Authorization 标头,并且不会为此服务器启动 OAuth,同时保留可正常工作的 add-json 配置。
由索引模型根据 Issue 内容生成。
评估
- 领域
- authentication, cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100