Skip to content

Commit 35e5481

Browse files
authored
README: add multiple url examples (#16)
1 parent 53479ff commit 35e5481

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
4545
>
4646
> This security measure prevents unauthorized access to domains not explicitly approved by the user, ensuring that documentation can only be retrieved from trusted sources.
4747
48-
#### (Optional) Test the MCP server locally with your `llms.txt` file of choice:
48+
#### (Optional) Test the MCP server locally with your `llms.txt` file(s) of choice:
4949
```bash
5050
uvx --from mcpdoc mcpdoc \
5151
--urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt \
52+
--urls LangChain:https://python.langchain.com/llms.txt \
5253
--transport sse \
5354
--port 8082 \
5455
--host localhost
@@ -213,7 +214,7 @@ Then, try the example prompt:
213214
214215
* In a terminal after installing [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview), run this command to add the MCP server to your project:
215216
```
216-
claude mcp add-json langgraph-docs '{"type":"stdio","command":"uvx" ,"args":["--from", "mcpdoc", "mcpdoc", "--urls", "langgraph:https://langchain-ai.github.io/langgraph/llms.txt"]}' -s local
217+
claude mcp add-json langgraph-docs '{"type":"stdio","command":"uvx" ,"args":["--from", "mcpdoc", "mcpdoc", "--urls", "langgraph:https://langchain-ai.github.io/langgraph/llms.txt", "--urls", "LangChain:https://python.langchain.com/llms.txt"]}' -s local
217218
```
218219
* You will see `~/.claude.json` updated.
219220
* Test by launching Claude Code and running to view your tools:
@@ -269,16 +270,17 @@ mcpdoc --json sample_config.json
269270
3. Directly specifying llms.txt URLs with optional names:
270271

271272
* URLs can be specified either as plain URLs or with optional names using the format `name:url`.
273+
* You can specify multiple URLs by using the `--urls` parameter multiple times.
272274
* This is how we loaded `llms.txt` for the MCP server above.
273275

274276
```bash
275-
mcpdoc --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt
277+
mcpdoc --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt --urls LangChain:https://python.langchain.com/llms.txt
276278
```
277279

278280
You can also combine these methods to merge documentation sources:
279281

280282
```bash
281-
mcpdoc --yaml sample_config.yaml --json sample_config.json --urls https://langchain-ai.github.io/langgraph/llms.txt
283+
mcpdoc --yaml sample_config.yaml --json sample_config.json --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt --urls LangChain:https://python.langchain.com/llms.txt
282284
```
283285

284286
## Additional Options

0 commit comments

Comments
 (0)