CommandCodeAI / CommandCodeAI/command-code
feat: Support fal MCP Server
Nessuno ha ancora preso questa issue.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 4k
- Fork
- 350
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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"}}'
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal punto di ingresso cmd mcp add e confrontane il comportamento con cmd mcp add-json; riproduci la configurazione del server HTTP fal.ai usando i comandi indicati nell’issue. Il lavoro è completato quando add accetta l’header Authorization mostrato e non avvia OAuth per questo server, preservando la configurazione funzionante di add-json.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- authentication, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100