# Interface ServerError

Error type for server operations.

interface ServerError {
code:
| "SERVER_CREATION_FAILED"
| "SERVER_START_FAILED"
| "SERVER_STOP_FAILED";
message: string;
cause?: Error;
}

- Defined in packages/nexus-agents/src/mcp/server.ts:52

##### Index

### Properties

code
message
cause?

## Properties

### code

code: "SERVER_CREATION_FAILED" | "SERVER_START_FAILED" | "SERVER_STOP_FAILED"

- Defined in packages/nexus-agents/src/mcp/server.ts:53

### message

message: string

- Defined in packages/nexus-agents/src/mcp/server.ts:54

### `Optional` cause

cause?: Error

- Defined in packages/nexus-agents/src/mcp/server.ts:55