forked from
oppi.li/claude-code
source dump of claude code
1export const LIST_MCP_RESOURCES_TOOL_NAME = 'ListMcpResourcesTool'
2
3export const DESCRIPTION = `
4Lists available resources from configured MCP servers.
5Each resource object includes a 'server' field indicating which server it's from.
6
7Usage examples:
8- List all resources from all servers: \`listMcpResources\`
9- List resources from a specific server: \`listMcpResources({ server: "myserver" })\`
10`
11
12export const PROMPT = `
13List available resources from configured MCP servers.
14Each returned resource will include all standard MCP resource fields plus a 'server' field
15indicating which server the resource belongs to.
16
17Parameters:
18- server (optional): The name of a specific MCP server to get resources from. If not provided,
19 resources from all servers will be returned.
20`