MCPcopy Create free account
hub / github.com/codeaashu/claude-code / filterResourcesByServer

Function filterResourcesByServer

src/services/mcp/utils.ts:102–107  ·  view source on GitHub ↗
(
  resources: ServerResource[],
  serverName: string,
)

Source from the content-addressed store, hash-verified

100 * @returns Resources belonging to the specified server
101 */
102export function filterResourcesByServer(
103 resources: ServerResource[],
104 serverName: string,
105): ServerResource[] {
106 return resources.filter(resource => resource.server === serverName)
107}
108
109/**
110 * Removes tools belonging to a specific MCP server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected