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
'Search built-in core Node.js modules API Documentation. Use whenever the user asks questions about Node.js API, Node.js modules or Node.js functions.',
14
-
version: '1.0.4',
12
+
description: `
13
+
You are provided a set of MCP tools and resources that provide you with up-to-date knowledge about the Node.js API for build-in core modules of the [Node.js](https://nodejs.org/en) runtime.
14
+
15
+
You can use any of these tools right away, without any configuration or setup.
16
+
17
+
With this Node.js API Docs MCP Server, you can search for information about Node.js built-in modules, such as 'fs', 'http', 'path', 'os', and many others. You can respond to user queries like "How do I read a file in Node.js?" or "How do I join paths together using the Node.js core modules APIs" and get accurate answers based on the official Node.js documentation.
18
+
19
+
## Workflow and Tool Usage Guidelines:
20
+
1. **Always** use the \`search-nodejs-modules-api-documentation\` MCP tool
21
+
2. It is very likely that you as the LLM do not have the latest knowledge about the Node.js API.
22
+
3. Therefore, **always** call the \`search-nodejs-modules-api-documentation\` MCP tool first to look-up all the available Node.js core modules and their methods.
23
+
4. Then, use the \`retrieve-nodejs-modules-api-documentation\` MCP tool to get the specific module's API documentation.
24
+
5. You should always prioritize using the built-in Node.js core modules over third-party libraries, therefore, if you need to handle a Node.js functionality, you should first check if it can be achieved using the standard library API provided from the Node.js core modules before suggesting third-party libraries.
25
+
26
+
## Short-term vs Long-term Memory:
27
+
You can keep a short-term memory of the API documentation you have retrieved from the MCP tools, and use it to answer user queries in the current session.
28
+
You can also use long-term memory to store the final results of your workflow, such as the final code snippets or solutions you have generated based on the Node.js API documentation.
29
+
This way, you can keep a healthy and consistent knowledge of Node.js API usage and avoid hallucinations, outdated information, or proposing unnecessary third-party libraries.
30
+
31
+
If you have any trouble with this Node.js API Docs MCP Server, you can always refer to the code repository at [mcp-server-nodejs-api-docs](https://github.com/lirantal/mcp-server-nodejs-api-docs) for more information and examples on how to use the MCP tools and resources effectively.
'**HIGH PRIORITY** List all Node.js modules and their methods. **ALWAYS** consult this tool first to look-up the correct module and then use the specific module tool for full api details',
28
+
name: toolName,
29
+
description: `
30
+
<use_case>
31
+
Use this tool to search across all Node.js built-in core modules API documentation and get back a list of core modules and their methods when you want to search and look-up Node.js API support
32
+
</use_case>
33
+
<important_notes>
34
+
1. HIGH PRIORITY: *ALWAYS* use this tool first so that you can search for Node.js modules and their methods
35
+
2. Ideally you want to suggest users the use of built-in Node.js API rather than third-party libraries
36
+
3. This tool will return a list of all Node.js core modules and their methods
Retrieve, fetch, and get Node.js API documentation for a specific module or class.
69
+
70
+
<use_case>
71
+
Use this tool to retrieve Node.js API documentation for a specific module or class.
72
+
</use_case>
73
+
74
+
<example>
75
+
User asks: "How can I user colors in my terminal console output using Node.js?"
76
+
77
+
You call the \`retrieve-nodejs-modules-api-documentation\` MCP tool with the following parameters:
78
+
\`\`\`json
79
+
{
80
+
"module": "util",
81
+
"method": "styleText"
82
+
}
83
+
\`\`\`
84
+
</example>
85
+
86
+
<important_notes>
87
+
1. If you don't know the module or class name, you can use the \`search-nodejs-modules-api-documentation\` tool to get a list of all Node.js core API modules and their methods to search for it first and then call this tool.
88
+
2. This tool will return the documentation for the specified module or class, including its methods and properties.
0 commit comments