# Function createDefaultRateLimiter

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- createDefaultRateLimiter(name?: string, logger?: ILogger): McpRateLimiter

  Creates a rate limiter with default settings suitable for MCP tools.

  Default configuration:

  - Capacity: 100 tokens
  - Refill rate: 10 tokens per second

  #### Parameters

  - `Optional` name: string

    Optional name for the rate limiter

  - `Optional` logger: ILogger

    Optional logger instance

  #### Returns McpRateLimiter

  A configured RateLimiter instance

  - Defined in packages/nexus-agents/src/mcp/middleware/rate-limiter.ts:179