docs: Update Python command naming to maintain consistency

This commit is contained in:
anonim 2025-04-18 15:02:56 +03:00
parent 492dd15b42
commit 3faa4a006e

View file

@ -145,7 +145,7 @@ cd telegram-mcp
### 2. Create a Virtual Environment
```bash
python -m venv .venv
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
```
@ -153,7 +153,7 @@ pip install -r requirements.txt
### 3. Generate a Session String
```bash
python session_string_generator.py
python3 session_string_generator.py
```
Follow the prompts to authenticate and update your `.env` file.
@ -173,37 +173,25 @@ Get your API credentials at [my.telegram.org/apps](https://my.telegram.org/apps)
## ⚙️ Configuration for Claude & Cursor
### Claude Desktop
Edit your Claude config (e.g. `~/Library/Application Support/Claude/claude_desktop_config.json`):
### MCP Configuration
Edit your Claude desktop config (e.g. `~/Library/Application Support/Claude/claude_desktop_config.json`) or Cursor config (`~/.cursor/mcp.json`):
```json
{
"mcpServers": {
"telegram-mcp": {
"command": "/full/path/to/.venv/bin/python",
"args": ["main.py"],
"cwd": "/full/path/to/telegram-mcp-server"
"command": "uv",
"args": [
"--directory",
"/full/path/to/telegram-mcp-server",
"run",
"main.py"
]
}
}
}
```
### Cursor
Edit `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"telegram-mcp": {
"command": "/full/path/to/.venv/bin/python",
"args": ["main.py"],
"cwd": "/full/path/to/telegram-mcp-server"
}
}
}
```
## 📝 Tool Examples with Code & Output
Below are examples of the most commonly used tools with their implementation and sample output.