Router
Defined in: packages/mcp-query/src/core/router.ts:23
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Router(
conns,schemeMap?):Router
Defined in: packages/mcp-query/src/core/router.ts:24
Parameters
Section titled “Parameters”Map<string, ServerConnection>
schemeMap?
Section titled “schemeMap?”Record<string, string> = {}
Optional scheme->server map for resources, e.g. { “file”: “fs”, “github”: “github” }.
Returns
Section titled “Returns”Router
Methods
Section titled “Methods”resolveResource()
Section titled “resolveResource()”resolveResource(
uri,server?):object
Defined in: packages/mcp-query/src/core/router.ts:43
Parameters
Section titled “Parameters”string
server?
Section titled “server?”string
Returns
Section titled “Returns”object
optionaldef?:object
def._meta?
Section titled “def._meta?”
optional_meta?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
def.annotations?
Section titled “def.annotations?”
optionalannotations?:object
def.annotations.audience?
Section titled “def.annotations.audience?”
optionalaudience?: ("user"|"assistant")[]
def.annotations.lastModified?
Section titled “def.annotations.lastModified?”
optionallastModified?:string
def.annotations.priority?
Section titled “def.annotations.priority?”
optionalpriority?:number
def.description?
Section titled “def.description?”
optionaldescription?:string
def.icons?
Section titled “def.icons?”
optionalicons?:object[]
def.mimeType?
Section titled “def.mimeType?”
optionalmimeType?:string
def.name
Section titled “def.name”name:
string
def.size?
Section titled “def.size?”
optionalsize?:number
def.title?
Section titled “def.title?”
optionaltitle?:string
def.uri
Section titled “def.uri”uri:
string
server
Section titled “server”server:
string
resolveTool()
Section titled “resolveTool()”resolveTool(
name,server?):object
Defined in: packages/mcp-query/src/core/router.ts:30
Parameters
Section titled “Parameters”string
server?
Section titled “server?”string
Returns
Section titled “Returns”object
def:
object
def._meta?
Section titled “def._meta?”
optional_meta?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
def.annotations?
Section titled “def.annotations?”
optionalannotations?:object
def.annotations.destructiveHint?
Section titled “def.annotations.destructiveHint?”
optionaldestructiveHint?:boolean
def.annotations.idempotentHint?
Section titled “def.annotations.idempotentHint?”
optionalidempotentHint?:boolean
def.annotations.openWorldHint?
Section titled “def.annotations.openWorldHint?”
optionalopenWorldHint?:boolean
def.annotations.readOnlyHint?
Section titled “def.annotations.readOnlyHint?”
optionalreadOnlyHint?:boolean
def.annotations.title?
Section titled “def.annotations.title?”
optionaltitle?:string
def.description?
Section titled “def.description?”
optionaldescription?:string
def.execution?
Section titled “def.execution?”
optionalexecution?:object
def.execution.taskSupport?
Section titled “def.execution.taskSupport?”
optionaltaskSupport?:"optional"|"required"|"forbidden"
def.icons?
Section titled “def.icons?”
optionalicons?:object[]
def.inputSchema
Section titled “def.inputSchema”inputSchema:
object
Index Signature
Section titled “Index Signature”[key: string]: unknown
def.inputSchema.properties?
Section titled “def.inputSchema.properties?”
optionalproperties?:object
Index Signature
Section titled “Index Signature”[key: string]: object
def.inputSchema.required?
Section titled “def.inputSchema.required?”
optionalrequired?:string[]
def.inputSchema.type
Section titled “def.inputSchema.type”type:
"object"
def.name
Section titled “def.name”name:
string
def.outputSchema?
Section titled “def.outputSchema?”
optionaloutputSchema?:object
Index Signature
Section titled “Index Signature”[key: string]: unknown
def.outputSchema.properties?
Section titled “def.outputSchema.properties?”
optionalproperties?:object
Index Signature
Section titled “Index Signature”[key: string]: object
def.outputSchema.required?
Section titled “def.outputSchema.required?”
optionalrequired?:string[]
def.outputSchema.type
Section titled “def.outputSchema.type”type:
"object"
def.title?
Section titled “def.title?”
optionaltitle?:string
server
Section titled “server”server:
string