mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
1.1 KiB
1.1 KiB
MCP Server to read Wikipedia Article
Test using MCP Inspector
- Install venv and package dependencies:
uv sync
- Activate your virtual environment:
source .venv/bin/activate
- Run your server in development mode:
mcp dev src/mcp_wiki/server.py
-
Go to
http://localhost:5173in your browser to open the MCP Inspector UI. -
In the UI, you can click "Connect" to initialize your MCP server. Then click on "Tools" tab > "List Tools" and you should see the
read_wikipedia_articletool. Then you can try to call theread_wikipedia_articletool with URL set to "https://en.wikipedia.org/wiki/Bangladesh" and click "Run Tool".
Testing the CLI
- Install your project locally:
uv pip install .
- Check the executable in your virtual environment:
ls .venv/bin/ # Verify your CLI is available
- Test the CLI:
mcp-wiki --help
You should see output similar to:
❯ mcp-wiki --help
usage: mcp-wiki [-h]
Gives you the ability to read Wikipedia articles and convert them to Markdown.
options:
-h, --help show this help message and exit