Skip to content

Add MCP server with bearer-token auth and Claude integration docs#44

Closed
Copilot wants to merge 9 commits intomainfrom
copilot/create-mcp-server-for-fcli-tool
Closed

Add MCP server with bearer-token auth and Claude integration docs#44
Copilot wants to merge 9 commits intomainfrom
copilot/create-mcp-server-for-fcli-tool

Conversation

Copy link

Copilot AI commented Mar 12, 2026

Adds authentication to the MCP server and documents how to use it with Claude.

Bearer-token authentication

  • BearerTokenVerifier implementing the MCP SDK TokenVerifier protocol, verified against a pre-shared secret
  • Token via --auth-token flag or FCLI_MCP_AUTH_TOKEN env var
  • Only applies to network transports (sse/streamable-http); ignored for stdio
  • Auto-constructs AuthSettings when a verifier is present (required by FastMCP)

README: MCP Server section

  • CLI options reference table
  • Auth configuration examples
  • Claude Code and Claude Desktop integration instructions
  • All 16 available tools listed

Usage

# Start with auth
fcli-mcp --topo-file lab.clab.yml --transport sse --auth-token secret123

# Add to Claude Code (stdio, no auth needed)
claude mcp add fcli -- fcli-mcp --topo-file /path/to/lab.clab.yml

Tests

5 new tests covering BearerTokenVerifier (valid/invalid/empty token) and _build_server auth wiring.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: wdesmedt <13483865+wdesmedt@users.noreply.github.com>
Copilot AI changed the title [WIP] Add MCP server for FCLI tool resource queries Add MCP server for fcli tool Mar 12, 2026
Co-authored-by: wdesmedt <13483865+wdesmedt@users.noreply.github.com>
Copilot AI changed the title Add MCP server for fcli tool Add MCP server for fcli with configurable host/port Mar 12, 2026
Copilot AI requested a review from wdesmedt March 12, 2026 17:08
Co-authored-by: wdesmedt <13483865+wdesmedt@users.noreply.github.com>
Copilot AI changed the title Add MCP server for fcli with configurable host/port Add --host, --port, and --auth-token options to fcli-mcp server Mar 12, 2026
Co-authored-by: wdesmedt <13483865+wdesmedt@users.noreply.github.com>
Copilot AI changed the title Add --host, --port, and --auth-token options to fcli-mcp server Add MCP server with bearer-token auth and Claude integration docs Mar 12, 2026
@wdesmedt wdesmedt closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants