Skip to content

DocsMcpToolset

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/parser-core/src/techdocs/mcp-toolset.ts

Methods

MethodSignatureReturns
toolDefinitionstoolDefinitions()McpToolDef[]
callcall(name: string, args: Record<string, any>)Promise<unknown>
searchDocssearchDocs(query: string, limit: undefined)DocSearchHit[]
readPagereadPage(path: string)`{ title: string; path: string; markdown: string }
listPageslistPages(section: string)Array<{ title: string; path: string; section?: string }>
getEntitygetEntity(nameOrId: string)`{ entity: Entity; relationships: Array<{ direction: 'out'
searchEntitiessearchEntities(query: string, kind: string)Array<{ id: string; name: string; type: string }>
listEndpointslistEndpoints(tag: string)Array<{ method: string; path: string; summary: string }>
askQuestionaskQuestion(question: string)Promise<{ answer: string; citations: string[] }>
callOperationcallOperation(args: Record<string, any>)Promise<unknown>

Where it refuses work

  • DocsMcpToolset stops the work with an early return when !q.
  • DocsMcpToolset stops the work with an early return when !e.
  • DocsMcpToolset stops the work with an early return when !this.askFn.
  • DocsMcpToolset stops the work with an early return when !this.execFn.
  • DocsMcpToolset stops the work with an early return when !method || !path.
  • DocsMcpToolset stops the work with an early return when i < 0.

Was this page helpful?

Download as PDF