Skip to content

Commit fa328a2

Browse files
committed
fix: restore default fallbacks for client credentials in example
The test suite imports the example without env vars set. Removing the fallback defaults caused ClientSecret to receive None, failing the client_id validation.
1 parent 5e99265 commit fa328a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/mcp-fastmcp/examples/delegated_access

packages/mcp-fastmcp/examples/delegated_access/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
# ClientSecret enables token exchange for delegated access
2727
application_credential=ClientSecret(
2828
(
29-
os.getenv("KEYCARD_CLIENT_ID"),
30-
os.getenv("KEYCARD_CLIENT_SECRET"),
29+
os.getenv("KEYCARD_CLIENT_ID", "your-client-id"),
30+
os.getenv("KEYCARD_CLIENT_SECRET", "your-client-secret"),
3131
)
3232
),
3333
)

0 commit comments

Comments
 (0)