Skip to content

Comments

πŸ”“ feat: simplify local usage with SERVER_AUTH_DISABLED mode β€” all tests pass#7

Merged
Falamarcao merged 1 commit intomainfrom
dev
Aug 12, 2025
Merged

πŸ”“ feat: simplify local usage with SERVER_AUTH_DISABLED mode β€” all tests pass#7
Falamarcao merged 1 commit intomainfrom
dev

Conversation

@Falamarcao
Copy link
Collaborator

The goal? Make it dead simple to run the MCP server locally

This PR introduces a lightweight, intentional bypass for local use:

βœ… How it works

Set API_TOKEN=SERVER_AUTH_DISABLED β†’ authentication is skipped, and all requests are accepted as anonymous.

That’s it. No API key needed. Just paste the mcp.json and go.

if settings.API_TOKEN.get_secret_value() == "SERVER_AUTH_DISABLED":
        logger.critical(
            "API_TOKEN is disabled β€” skipping token verification, access granted as anonymous".upper()
        )
        return {"sub": "anonymous"}

@Falamarcao Falamarcao merged commit d9b9b71 into main Aug 12, 2025
7 checks passed
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.

1 participant