CommandCodeAI / CommandCodeAI/command-code
feat: Support fal MCP Server
Personne n'a encore pris cette issue.
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 4k
- Forks
- 350
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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"}}'
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez au point d’entrée cmd mcp add et comparez son comportement avec celui de cmd mcp add-json ; reproduisez la configuration du serveur HTTP fal.ai à l’aide des commandes indiquées dans l’issue. Le travail est terminé lorsque add accepte l’en-tête Authorization indiqué et n’initie pas OAuth pour ce serveur, tout en préservant la configuration fonctionnelle de add-json.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- authentication, cli
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100