simpleClientCredentials.d.ts 752 B

1234567891011121314151617181920
  1. #!/usr/bin/env node
  2. /**
  3. * Example demonstrating client_credentials grant for machine-to-machine authentication.
  4. *
  5. * Supports two authentication methods based on environment variables:
  6. *
  7. * 1. client_secret_basic (default):
  8. * MCP_CLIENT_ID - OAuth client ID (required)
  9. * MCP_CLIENT_SECRET - OAuth client secret (required)
  10. *
  11. * 2. private_key_jwt (when MCP_CLIENT_PRIVATE_KEY_PEM is set):
  12. * MCP_CLIENT_ID - OAuth client ID (required)
  13. * MCP_CLIENT_PRIVATE_KEY_PEM - PEM-encoded private key for JWT signing (required)
  14. * MCP_CLIENT_ALGORITHM - Signing algorithm (default: RS256)
  15. *
  16. * Common:
  17. * MCP_SERVER_URL - Server URL (default: http://localhost:3000/mcp)
  18. */
  19. export {};
  20. //# sourceMappingURL=simpleClientCredentials.d.ts.map