From cf78616433ac94e109a5da84c1701055c03c6edb Mon Sep 17 00:00:00 2001 From: ivy113 Date: Sun, 20 Jul 2025 20:28:15 -0400 Subject: [PATCH] docs: fix setup instructions and add fallback for non-working entry point --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7611b17..55c78f2 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,19 @@ This MCP server provides a Python REPL (Read-Eval-Print Loop) as a tool. It allo ## Setup -No setup needed! The project uses `uv` for dependency management. - +### Prerequisites +- Install `uv` if you haven't already +- Clone this repository +```bash +git clone https://github.com/hdresearch/mcp-python +``` ## Running the Server Simply run: ```bash -uv run src/python_repl/server.py +cd mcp-python +uv run src/mcp_python/server.py ``` ## Usage with Claude Desktop @@ -25,7 +30,7 @@ Add this configuration to your Claude Desktop config file: "command": "uv", "args": [ "--directory", - "/absolute/path/to/python-repl-server", + "/absolute/path/to/mcp-python", "run", "mcp_python" ] @@ -34,6 +39,10 @@ Add this configuration to your Claude Desktop config file: } ``` +- `/absolute/path/to/mcp-python` might look like `/Users/hdresearch/repos/mcp-python` +- if `mcp_python` is not working, substitute with `src/mcp_python/server.py` + + The server provides three tools: 1. `execute_python`: Execute Python code with persistent variables