mirror of
https://github.com/langchain-ai/mcpdoc.git
synced 2025-10-19 03:18:14 +03:00
Update README with rules
This commit is contained in:
59
README.md
59
README.md
@@ -75,6 +75,19 @@ npx @modelcontextprotocol/inspector
|
||||
```
|
||||
|
||||
* Confirm that the server is running in your `Cursor Settings/MCP` tab.
|
||||
* Best practice is to then update Cursor Global (User) rules.
|
||||
* Open Cursor `Settings/Rules` and update `User Rules` with the following (or similar):
|
||||
|
||||
```
|
||||
for ANY question about LangGraph, use the langgraph-docs-mcp server to help answer --
|
||||
+ call list_doc_sources tool to get the available llms.txt file
|
||||
+ call fetch_docs tool to read it
|
||||
+ reflect on the urls in llms.txt
|
||||
+ reflect on the input question
|
||||
+ call fetch_docs on any urls relevant to the question
|
||||
+ use this to answer the question
|
||||
```
|
||||
|
||||
* `CMD+L` (on Mac) to open chat.
|
||||
* Ensure `agent` is selected.
|
||||
|
||||
@@ -82,14 +95,6 @@ npx @modelcontextprotocol/inspector
|
||||
|
||||
Then, try an example prompt, such as:
|
||||
```
|
||||
use the langgraph-docs-mcp server to answer any LangGraph questions --
|
||||
+ call list_doc_sources tool to get the available llms.txt file
|
||||
+ call fetch_docs tool to read it
|
||||
+ reflect on the urls in llms.txt
|
||||
+ reflect on the input question
|
||||
+ call fetch_docs on any urls relevant to the question
|
||||
+ use this to answer the question
|
||||
|
||||
what are types of memory in LangGraph?
|
||||
```
|
||||
|
||||
@@ -103,8 +108,16 @@ what are types of memory in LangGraph?
|
||||
|
||||

|
||||
|
||||
* `CMD+L` (on Mac) to open Cascade and refresh MCP servers.
|
||||
* Available MCP servers will be listed, showing `langgraph-docs-mcp` as connected.
|
||||
* Update `Windsurf Rules/Global rules` with the following (or similar):
|
||||
|
||||
```
|
||||
for ANY question about LangGraph, use the langgraph-docs-mcp server to help answer --
|
||||
+ call list_doc_sources tool to get the available llms.txt file
|
||||
+ call fetch_docs tool to read it
|
||||
+ reflect on the urls in llms.txt
|
||||
+ reflect on the input question
|
||||
+ call fetch_docs on any urls relevant to the question
|
||||
```
|
||||
|
||||

|
||||
|
||||
@@ -119,6 +132,19 @@ Then, try the example prompt:
|
||||
* Update with `langgraph-docs-mcp` as noted above.
|
||||
* Restart Claude Desktop app.
|
||||
|
||||
> Note: currently (3/21/25) it appears that Claude Code does not support `rules` for global rules, so appending the following to your prompt.
|
||||
|
||||
```
|
||||
<rules>
|
||||
for ANY question about LangGraph, use the langgraph-docs-mcp server to help answer --
|
||||
+ call list_doc_sources tool to get the available llms.txt file
|
||||
+ call fetch_docs tool to read it
|
||||
+ reflect on the urls in llms.txt
|
||||
+ reflect on the input question
|
||||
+ call fetch_docs on any urls relevant to the question
|
||||
</rules>
|
||||
```
|
||||
|
||||

|
||||
|
||||
* You will see your tools visible in the bottom right of your chat input.
|
||||
@@ -146,6 +172,19 @@ $ /mcp
|
||||
|
||||

|
||||
|
||||
> Note: currently (3/21/25) it appears that Claude Code does not support `rules` for global rules, so appending the following to your prompt.
|
||||
|
||||
```
|
||||
<rules>
|
||||
for ANY question about LangGraph, use the langgraph-docs-mcp server to help answer --
|
||||
+ call list_doc_sources tool to get the available llms.txt file
|
||||
+ call fetch_docs tool to read it
|
||||
+ reflect on the urls in llms.txt
|
||||
+ reflect on the input question
|
||||
+ call fetch_docs on any urls relevant to the question
|
||||
</rules>
|
||||
```
|
||||
|
||||
Then, try the example prompt:
|
||||
|
||||
* It will ask to approve tool calls.
|
||||
|
||||
Reference in New Issue
Block a user