mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
mcp: rename listContainerTags tool to listSpaces (consumer-facing)
Consumers think in "spaces", not "container tags". Renames the tool to listSpaces and updates its description + text output to say "spaces". Internal plumbing is unchanged: the client method listContainerTags() and the structuredContent.containerTags key (widget contract) keep their names.
This commit is contained in:
parent
e1289e5c2f
commit
f887bd66e5
1 changed files with 4 additions and 4 deletions
|
|
@ -2,10 +2,10 @@ import type { ToolDeps } from "./types"
|
|||
|
||||
export function register(deps: ToolDeps) {
|
||||
deps.server.registerTool(
|
||||
"listContainerTags",
|
||||
"listSpaces",
|
||||
{
|
||||
description:
|
||||
"List available container tags for organizing memories. Returns name, identifier, emoji, document/memory counts, and last activity time per tag. The API auto-filters this list to tags the caller has access to.",
|
||||
"List the spaces available to you. Spaces are the workspaces you organize memories into — returns each space's name, identifier, emoji, document/memory counts, and last activity. The list is auto-filtered to spaces you have access to.",
|
||||
inputSchema: {},
|
||||
},
|
||||
async () => {
|
||||
|
|
@ -17,7 +17,7 @@ export function register(deps: ToolDeps) {
|
|||
content: [
|
||||
{
|
||||
type: "text" as const,
|
||||
text: "No container tags found.",
|
||||
text: "No spaces found.",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ export function register(deps: ToolDeps) {
|
|||
content: [
|
||||
{
|
||||
type: "text" as const,
|
||||
text: `Available container tags:\n${lines.join("\n")}`,
|
||||
text: `Available spaces:\n${lines.join("\n")}`,
|
||||
},
|
||||
],
|
||||
structuredContent: { containerTags: tags },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue