/flapi:auth-setup [auth method or identity provider] [which endpoints]from flapi
Configures authentication and authorization for flAPI endpoints and MCP tools. Supports Basic, JWT/bearer, OIDC (Google, Azure AD, Keycloak), roles, and MCP OAuth. Validates config, starts server, and verifies with curl tests.
Ships in flapi. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Set up authentication and authorization for flAPI. Request: $ARGUMENTS
Use the flapi-auth skill.
flapi.yaml and endpoint YAMLs.auth: block in flapi.yaml protects every
endpoint without its own block (an endpoint block replaces it; public
endpoints opt out with auth: {enabled: false}); roles: restricts an
endpoint to callers holding one of the roles (403 otherwise). Secrets (JWT
secret, client secret, password hashes) come from whitelisted environment
variables, never literals; passwords are PBKDF2 hashes (bcrypt cannot log in).
Set cors.allow-origins (a * with auth prints CORS_WILDCARD_WITH_AUTH).flapi --validate-config; read the startup security warnings), start
the server and prove it with curl:
/mcp/jsonrpc.flapii metrics shows the 401/403/429 counters.7-day visitors to each command page
7 commands in this plugin
/add-cacheAdd CacheAdd DuckLake caching to an endpoint - pick full / append / merge, write the populate SQL, refresh, measure and tune/deploy-checkDeploy CheckPre-deployment check for a flAPI project - validation, secrets, packaging, cache warm-up and replica settings, health probes/diagnoseDiagnose a failing flAPI request, startup or cache refresh - from the symptom to the root cause and a verified fix/initScaffold a new flAPI project from a description of your data source, validate it and start the server/metricsSummarize a running flAPI server's runtime metrics - slow or failing endpoints and MCP tools, rejections, slow or stale caches - with next steps/new-endpointNew EndpointCreate a REST endpoint and/or MCP tool from SQL - YAML, template, validators, a test - then validate and try itnpx claudepluginhub datazoode/flapi --plugin flapiOther plugins' commands for the same job