ServerConnection
Defined in: packages/mcp-query/src/core/connection.ts:59
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ServerConnection(
name,cfg,deps):ServerConnection
Defined in: packages/mcp-query/src/core/connection.ts:78
Parameters
Section titled “Parameters”string
ConnectionDeps
Returns
Section titled “Returns”ServerConnection
Properties
Section titled “Properties”capabilities
Section titled “capabilities”capabilities:
object={}
Defined in: packages/mcp-query/src/core/connection.ts:61
completions?
Section titled “completions?”
optionalcompletions?:object
experimental?
Section titled “experimental?”
optionalexperimental?:object
Index Signature
Section titled “Index Signature”[key: string]: object
extensions?
Section titled “extensions?”
optionalextensions?:object
Index Signature
Section titled “Index Signature”[key: string]: object
logging?
Section titled “logging?”
optionallogging?:object
prompts?
Section titled “prompts?”
optionalprompts?:object
prompts.listChanged?
Section titled “prompts.listChanged?”
optionallistChanged?:boolean
resources?
Section titled “resources?”
optionalresources?:object
resources.listChanged?
Section titled “resources.listChanged?”
optionallistChanged?:boolean
resources.subscribe?
Section titled “resources.subscribe?”
optionalsubscribe?:boolean
tasks?
Section titled “tasks?”
optionaltasks?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
tasks.cancel?
Section titled “tasks.cancel?”
optionalcancel?:object
Present if the server supports cancelling tasks.
tasks.list?
Section titled “tasks.list?”
optionallist?:object
Present if the server supports listing tasks.
tasks.requests?
Section titled “tasks.requests?”
optionalrequests?:object
Capabilities for task creation on specific request types.
Index Signature
Section titled “Index Signature”[key: string]: unknown
tasks.requests.tools?
Section titled “tasks.requests.tools?”
optionaltools?:object
Task support for tool requests.
Index Signature
Section titled “Index Signature”[key: string]: unknown
tasks.requests.tools.call?
Section titled “tasks.requests.tools.call?”
optionalcall?:object
tools?
Section titled “tools?”
optionaltools?:object
tools.listChanged?
Section titled “tools.listChanged?”
optionallistChanged?:boolean
readonlyname:string
Defined in: packages/mcp-query/src/core/connection.ts:79
prompts
Section titled “prompts”prompts:
Map<string, {_meta?: {[key:string]:unknown; };arguments?:object[];description?:string;icons?:object[];name:string;title?:string; }>
Defined in: packages/mcp-query/src/core/connection.ts:68
protocolVersion
Section titled “protocolVersion”protocolVersion:
string=""
Defined in: packages/mcp-query/src/core/connection.ts:62
resources
Section titled “resources”resources:
Map<string, {_meta?: {[key:string]:unknown; };annotations?: {audience?: ("user"|"assistant")[];lastModified?:string;priority?:number; };description?:string;icons?:object[];mimeType?:string;name:string;size?:number;title?:string;uri:string; }>
Defined in: packages/mcp-query/src/core/connection.ts:66
state:
ServerState="idle"
Defined in: packages/mcp-query/src/core/connection.ts:60
templates
Section titled “templates”templates:
object[] =[]
Defined in: packages/mcp-query/src/core/connection.ts:67
_meta?
Section titled “_meta?”
optional_meta?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
annotations?
Section titled “annotations?”
optionalannotations?:object
annotations.audience?
Section titled “annotations.audience?”
optionalaudience?: ("user"|"assistant")[]
annotations.lastModified?
Section titled “annotations.lastModified?”
optionallastModified?:string
annotations.priority?
Section titled “annotations.priority?”
optionalpriority?:number
description?
Section titled “description?”
optionaldescription?:string
icons?
Section titled “icons?”
optionalicons?:object[]
mimeType?
Section titled “mimeType?”
optionalmimeType?:string
name:
string
title?
Section titled “title?”
optionaltitle?:string
uriTemplate
Section titled “uriTemplate”uriTemplate:
string
tools:
Map<string, {_meta?: {[key:string]:unknown; };annotations?: {destructiveHint?:boolean;idempotentHint?:boolean;openWorldHint?:boolean;readOnlyHint?:boolean;title?:string; };description?:string;execution?: {taskSupport?:"optional"|"required"|"forbidden"; };icons?:object[];inputSchema: {[key:string]:unknown;properties?: {[key:string]:object; };required?:string[];type:"object"; };name:string;outputSchema?: {[key:string]:unknown;properties?: {[key:string]:object; };required?:string[];type:"object"; };title?:string; }>
Defined in: packages/mcp-query/src/core/connection.ts:65
Accessors
Section titled “Accessors”isLazy
Section titled “isLazy”Get Signature
Section titled “Get Signature”get isLazy():
boolean
Defined in: packages/mcp-query/src/core/connection.ts:103
Returns
Section titled “Returns”boolean
Get Signature
Section titled “Get Signature”get sdk():
Client
Defined in: packages/mcp-query/src/core/connection.ts:150
Returns
Section titled “Returns”Client
Methods
Section titled “Methods”close()
Section titled “close()”close():
Promise<void>
Defined in: packages/mcp-query/src/core/connection.ts:206
Returns
Section titled “Returns”Promise<void>
connect()
Section titled “connect()”connect():
Promise<void>
Defined in: packages/mcp-query/src/core/connection.ts:161
Returns
Section titled “Returns”Promise<void>
ensureReady()
Section titled “ensureReady()”ensureReady():
Promise<void>
Defined in: packages/mcp-query/src/core/connection.ts:111
Lazy connect: ensure the connection is up before use. No-op for eager (non-lazy) connections (those connect via client.connect()). Re-wakes after idle eviction.
Returns
Section titled “Returns”Promise<void>
relist()
Section titled “relist()”relist(
kind):Promise<void>
Defined in: packages/mcp-query/src/core/connection.ts:237
Parameters
Section titled “Parameters”"tools" | "resources" | "prompts"
Returns
Section titled “Returns”Promise<void>
setLogLevel()
Section titled “setLogLevel()”setLogLevel(
level):Promise<void>
Defined in: packages/mcp-query/src/core/connection.ts:277
Set the server-side logging verbosity (logging/setLevel).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
supports()
Section titled “supports()”supports(
feature):boolean
Defined in: packages/mcp-query/src/core/connection.ts:300
Parameters
Section titled “Parameters”feature
Section titled “feature”"tools" | "resources" | "prompts" | "resources.subscribe"
Returns
Section titled “Returns”boolean