๐ File detail
tools/ListMcpResourcesTool/prompt.ts
๐งฉ .ts๐ 21 lines๐พ 776 bytes๐ text
โ Back to All Files๐ฏ Use case
This module implements the โListMcpResourcesToolโ tool (List Mcp Resources) โ something the model can call at runtime alongside other agent tools. On the API surface it exposes LIST_MCP_RESOURCES_TOOL_NAME, DESCRIPTION, and PROMPT โ mainly types, interfaces, or factory objects.
Generated from folder role, exports, dependency roots, and inline comments โ not hand-reviewed for every path.
๐ง Inline summary
export const LIST_MCP_RESOURCES_TOOL_NAME = 'ListMcpResourcesTool' export const DESCRIPTION = ` Lists available resources from configured MCP servers. Each resource object includes a 'server' field indicating which server it's from.
๐ค Exports (heuristic)
LIST_MCP_RESOURCES_TOOL_NAMEDESCRIPTIONPROMPT
๐ฅ๏ธ Source preview
export const LIST_MCP_RESOURCES_TOOL_NAME = 'ListMcpResourcesTool'
export const DESCRIPTION = `
Lists available resources from configured MCP servers.
Each resource object includes a 'server' field indicating which server it's from.
Usage examples:
- List all resources from all servers: \`listMcpResources\`
- List resources from a specific server: \`listMcpResources({ server: "myserver" })\`
`
export const PROMPT = `
List available resources from configured MCP servers.
Each returned resource will include all standard MCP resource fields plus a 'server' field
indicating which server the resource belongs to.
Parameters:
- server (optional): The name of a specific MCP server to get resources from. If not provided,
resources from all servers will be returned.
`