# Interface McpLogContext

MCP-specific log context fields.

interface McpLogContext {
tool?: string;
requestId?: string;
durationMs?: number;
success?: boolean;
errorCode?: string;
[key: string]: unknown;
}

#### Hierarchy (View Summary)

- LogContext
  - McpLogContext

#### Indexable

- [key: string]: unknown

- Defined in packages/nexus-agents/src/mcp/middleware/logging.ts:13

##### Index

### Properties

tool?
requestId?
durationMs?
success?
errorCode?

## Properties

### `Optional` tool

tool?: string

The tool being executed

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

### `Optional` requestId

requestId?: string

Request ID for tracing

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

### `Optional` durationMs

durationMs?: number

Duration of the operation in milliseconds

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

### `Optional` success

success?: boolean

Whether the operation succeeded

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

### `Optional` errorCode

errorCode?: string

Error code if operation failed

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