You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns tool schemas from all (or specific) servers with names transformed to `serverName__toolName` format.
128
-
129
-
**IMPORTANT**: Tool names are automatically transformed to prevent naming clashes and identify server origin. Original tool name `get_current_time` on server `time` becomes `time__get_current_time`.
130
-
131
-
This is useful for:
132
-
133
-
- MCP servers aggregating and re-exposing tools from multiple upstream servers
134
-
- Tool inspection and discovery across all servers
135
-
- Custom tooling that needs raw MCP tool schemas with unique names
@@ -228,30 +204,6 @@ if (await client.servers[serverName].hasTool("get_current_time")) {
228
204
}
229
205
```
230
206
231
-
#### `client.getPrompts(options?)`
232
-
233
-
Returns prompt schemas from all (or specific) servers with names transformed to `serverName__promptName` format.
234
-
235
-
**IMPORTANT**: Prompt names are automatically transformed to prevent naming clashes and identify server origin. Original prompt name `create_pr` on server `github` becomes `github__create_pr`.
236
-
237
-
This is useful for:
238
-
239
-
- Aggregating prompts from multiple servers
240
-
- Prompt inspection and discovery across all servers
241
-
- Custom tooling that needs raw MCP prompt schemas with unique names
Generate a prompt by its namespaced name (in `serverName__promptName` format).
@@ -330,83 +282,6 @@ if (await client.servers[serverName].hasPrompt("create_pr")) {
330
282
}
331
283
```
332
284
333
-
#### `client.getResources(options?)`
334
-
335
-
Returns resource schemas from all (or specific) servers with names transformed to `serverName__resourceName` format.
336
-
337
-
**IMPORTANT**: Resource names are automatically transformed to prevent naming clashes and identify server origin. Original resource name `readme` on server `github` becomes `github__readme`.
338
-
339
-
This is useful for:
340
-
341
-
- Aggregating resources from multiple servers
342
-
- Resource inspection and discovery across all servers
343
-
- Custom tooling that needs raw MCP resource schemas with unique names
Returns resource template schemas from all (or specific) servers with names transformed to `serverName__templateName` format.
360
-
361
-
**IMPORTANT**: Template names are automatically transformed to prevent naming clashes and identify server origin. Original template name `file` on server `github` becomes `github__file`.
362
-
363
-
This is useful for:
364
-
365
-
- Aggregating resource templates from multiple servers
366
-
- Template inspection and discovery across all servers
367
-
- Understanding what parameterized resources are available
Read resource content by its namespaced name (in `serverName__resourceName` format).
385
-
386
-
The SDK automatically populates an internal cache on first use. For better performance when reading multiple resources, you can optionally pre-populate the cache by calling `getResources()` first.
387
-
388
-
```typescript
389
-
// Read content by namespaced name - cache populated automatically if needed
0 commit comments