CommandCodeAI / CommandCodeAI/command-code

feat: Support fal MCP Server

Open
#488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

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

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"}}'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cmd mcp add entry point and compare its behavior with cmd mcp add-json; reproduce the fal.ai HTTP server setup using the commands in the issue. Done means add accepts the shown Authorization header and does not initiate OAuth for this server, while preserving the working add-json configuration.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.