From 3f859a3fc9f19cdde119b94af07691e3ed45de53 Mon Sep 17 00:00:00 2001 From: Larsen Weigle <95002219+larsenweigle@users.noreply.github.com> Date: Sat, 5 Apr 2025 10:23:50 -0700 Subject: [PATCH] fix(mcpdoc): update readme cli example and mcp json. (#22) See[ this issue thread](https://github.com/langchain-ai/mcpdoc/issues/21). Update examples in the readme to match the arg parser in `cli.py` which is configured to append multiple urls: ```python parser.add_argument( "--urls", "-u", type=str, nargs="+", help="List of llms.txt URLs or file paths with optional names (format: 'url_or_path' or 'name:url_or_path')", ) ``` The current examples in the readme file uses multiple `--url` flags so the previous url is overridden with each new url flag. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 77a916a..b66899e 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,7 @@ curl -LsSf https://astral.sh/uv/install.sh | sh #### (Optional) Test the MCP server locally with your `llms.txt` file(s) of choice: ```bash uvx --from mcpdoc mcpdoc \ - --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt \ - --urls LangChain:https://python.langchain.com/llms.txt \ + --urls "LangGraph:https://langchain-ai.github.io/langgraph/llms.txt" "LangChain:https://python.langchain.com/llms.txt" \ --transport sse \ --port 8082 \ --host localhost @@ -87,9 +86,7 @@ npx @modelcontextprotocol/inspector "mcpdoc", "mcpdoc", "--urls", - "LangGraph:https://langchain-ai.github.io/langgraph/llms.txt", - "--urls", - "LangChain:https://python.langchain.com/llms.txt", + "LangGraph:https://langchain-ai.github.io/langgraph/llms.txt LangChain:https://python.langchain.com/llms.txt", "--transport", "stdio" ]