Skip to main content
Defined in: server/resource.ts:13

Properties

annotations?

optional annotations?: ResourceAnnotations;
Defined in: server/resource.ts:29 Behavioral hints for clients.

auth?

optional auth?: AuthCheck;
Defined in: server/resource.ts:36

description?

optional description?: string;
Defined in: server/resource.ts:20

disabled?

optional disabled?: boolean;
Defined in: server/resource.ts:33 When true the resource is hidden from list responses and cannot be read.

mimeType?

optional mimeType?: string;
Defined in: server/resource.ts:22 MIME type of the resource content. Defaults to ‘text/plain’ for strings, ‘application/octet-stream’ for binary.

name?

optional name?: string;
Defined in: server/resource.ts:17 Programmatic identifier. Defaults to the uri.

size?

optional size?: number;
Defined in: server/resource.ts:27 Size of the resource content in bytes, if known. Only meaningful for static resources; ignored for URI templates.

tags?

optional tags?: string[];
Defined in: server/resource.ts:35 Arbitrary tags for server-side filtering.

timeout?

optional timeout?: number;
Defined in: server/resource.ts:31 Execution timeout in milliseconds. No timeout by default.

title?

optional title?: string;
Defined in: server/resource.ts:19 Human-readable display name shown in UIs. Defaults to name.

ui?

optional ui?: ResourceUiMeta;
Defined in: server/resource.ts:38 Apps extension metadata. Included in _meta.ui in resources/list for UI-capable clients.

uri

uri: string;
Defined in: server/resource.ts:15 Static URI (e.g. file://readme) or RFC 6570 template (e.g. user://{id}).