CommandCodeAI / CommandCodeAI/command-code

feat: Support fal MCP Server

Offen
#488 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Image
  1. 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"}}'

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne am Einstiegspunkt cmd mcp add und vergleiche sein Verhalten mit cmd mcp add-json; reproduziere die Einrichtung des fal.ai-HTTP-Servers mit den im Issue angegebenen Befehlen. Als erledigt gilt, wenn add den gezeigten Authorization-Header akzeptiert und für diesen Server keinen OAuth-Prozess startet, während die funktionierende add-json-Konfiguration erhalten bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
authentication, cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.