Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-trpc / server / ServerCapabilities

Interface: ServerCapabilities

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:15

Properties

prompts

prompts: object[]

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:19

Index Signature

[key: string]: unknown

_meta?

optional _meta: object

See MCP specification for notes on _meta usage.

Index Signature

[key: string]: unknown

arguments?

optional arguments: object[]

A list of arguments to use for templating the prompt.

Index Signature

[key: string]: unknown

description?

optional description: string

An optional description of what this prompt provides

icons?

optional icons: object[]

An optional list of icons for this prompt.

Index Signature

[key: string]: unknown

name

name: string

Intended for programmatic or logical use, but used as a display name in past specs or fallback

title?

optional title: string

Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.

If not provided, the name should be used for display (except for Tool, where annotations.title should be given precedence over using name, if present).


resources

resources: ({[key: string]: unknown; _meta?: {[key: string]: unknown; }; description?: string; icons?: object[]; mimeType?: string; name: string; title?: string; uri: string; } | {[key: string]: unknown; _meta?: {[key: string]: unknown; }; description?: string; mimeType?: string; name: string; title?: string; uriTemplate: string; })[]

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:18


serverId

serverId: string

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:16


timestamp

timestamp: number

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:20


tools

tools: object[]

Defined in: packages/chaingraph-trpc/server/mcp/services/mcp-capability.service.ts:17

Index Signature

[key: string]: unknown

_meta?

optional _meta: object

See MCP specification for notes on _meta usage.

Index Signature

[key: string]: unknown

annotations?

optional annotations: object

Optional additional tool information.

Index Signature

[key: string]: unknown

annotations.destructiveHint?

optional destructiveHint: boolean

If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates.

(This property is meaningful only when readOnlyHint == false)

Default: true

annotations.idempotentHint?

optional idempotentHint: boolean

If true, calling the tool repeatedly with the same arguments will have no additional effect on the its environment.

(This property is meaningful only when readOnlyHint == false)

Default: false

annotations.openWorldHint?

optional openWorldHint: boolean

If true, this tool may interact with an "open world" of external entities. If false, the tool's domain of interaction is closed. For example, the world of a web search tool is open, whereas that of a memory tool is not.

Default: true

annotations.readOnlyHint?

optional readOnlyHint: boolean

If true, the tool does not modify its environment.

Default: false

annotations.title?

optional title: string

A human-readable title for the tool.

description?

optional description: string

A human-readable description of the tool.

icons?

optional icons: object[]

An optional list of icons for this tool.

Index Signature

[key: string]: unknown

inputSchema

inputSchema: object

A JSON Schema object defining the expected parameters for the tool.

Index Signature

[key: string]: unknown

inputSchema.properties?

optional properties: object

Index Signature

[key: string]: unknown

inputSchema.required?

optional required: string[]

inputSchema.type

type: "object"

name

name: string

Intended for programmatic or logical use, but used as a display name in past specs or fallback

outputSchema?

optional outputSchema: object

An optional JSON Schema object defining the structure of the tool's output returned in the structuredContent field of a CallToolResult.

Index Signature

[key: string]: unknown

outputSchema.properties?

optional properties: object

Index Signature

[key: string]: unknown

outputSchema.required?

optional required: string[]

outputSchema.type

type: "object"

title?

optional title: string

Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.

If not provided, the name should be used for display (except for Tool, where annotations.title should be given precedence over using name, if present).

Licensed under BUSL-1.1