# Interface McpRateLimiterConfig

Configuration for the token bucket rate limiter.

interface McpRateLimiterConfig {
capacity: number;
refillRate: number;
refillIntervalMs?: number;
logger?: ILogger;
name?: string;
}

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

##### Index

### Properties

capacity
refillRate
refillIntervalMs?
logger?
name?

## Properties

### `Readonly` capacity

capacity: number

Maximum number of tokens in the bucket

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

### `Readonly` refillRate

refillRate: number

Number of tokens added per interval

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

### `Optional` `Readonly` refillIntervalMs

refillIntervalMs?: number

Interval in milliseconds between token refills (default: 1000ms)

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

### `Optional` `Readonly` logger

logger?: ILogger

Optional logger instance

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

### `Optional` `Readonly` name

name?: string

Optional identifier for logging

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