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
When scoped, `list_libraries` and `search_docs` (including its `library` enum) only expose the selected libraries, and cross-stack search is limited to them. Unknown slugs are ignored, and an empty or all-invalid `libs` falls back to the whole stack.
39
+
When scoped, `list_libraries` and `search_dev_stack` (including its `library` enum) only expose the selected libraries, and cross-stack search is limited to them. Unknown slugs are ignored, and an empty or all-invalid `libs` falls back to the whole stack.
40
40
41
41
Scoping is read from the connection URL on every request, so it applies whether the client connects to `/mcp` or the `/sse` alias.
Copy file name to clipboardExpand all lines: apps/stack-mcp/src/tools/stack.tools.ts
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,9 @@ export function registerStackTools<Env extends RequiredEnv>(context: McpRegistra
52
52
context.registerTool(
53
53
'list_libraries',
54
54
{
55
-
description: `List the tools whose documentation this server can search (${names}), with each one's slug, name, source site, and a short description.
55
+
description: `List the libraries search_dev_stack has docs for (${names}), each with its slug, name, source, and description.
56
56
57
-
Use it to check whether a tool is covered, or to get the exact \`library\` slug for search_docs. You do not need to call it first: searching without a \`library\` already covers the whole stack.`,
57
+
Use it to check coverage or to get a \`library\` slug for search_dev_stack. You do not need to call it first: searching without a \`library\` already covers the whole stack.`,
58
58
inputSchema: z.object({}),
59
59
outputSchema: z.object({
60
60
libraries: z.array(
@@ -85,13 +85,11 @@ Use it to check whether a tool is covered, or to get the exact \`library\` slug
85
85
)
86
86
87
87
context.registerTool(
88
-
'search_docs',
88
+
'search_dev_stack',
89
89
{
90
-
description: `Search current documentation for the tools in this developer stack (${names}) and get back the most relevant excerpts, each with a source link.
90
+
description: `Search current documentation for the tools you build with (${names}) and get relevant excerptswith source links.
91
91
92
-
Reach for this whenever you are answering a question about, or writing code that uses, any of these tools. They change often, so your built-in knowledge of their APIs, configuration, and defaults is frequently out of date. Retrieve the docs instead of relying on memory, and ground the code you generate in what you find.
93
-
94
-
Cite the returned source URLs in your answer. Searches the whole stack by default; set \`library\` to one slug (from list_libraries) to focus on a single tool.`,
92
+
Whenever you are building or prototyping anything, start here: search to find the right tools for the job and their current usage, then build from what you find. Use even when you think you know the answer because your training data may not reflect recent changes. Prefer this over web search for library docs. Cite the source URLs. Omit \`library\` to search the whole stack, or set one slug to focus.`,
0 commit comments