Merge remote-tracking branch 'origin/ochafik/fix-say-server-readme' into ochafik/readme-mcp-config

# Conflicts:
#	examples/say-server/README.md
This commit is contained in:
Olivier Chafik 2026-01-20 10:51:14 +00:00
commit 24f43927e5
No known key found for this signature in database

View file

@ -2,6 +2,8 @@
A real-time text-to-speech MCP App with karaoke-style text highlighting, powered by [Kyutai's Pocket TTS](https://github.com/kyutai-labs/pocket-tts). A real-time text-to-speech MCP App with karaoke-style text highlighting, powered by [Kyutai's Pocket TTS](https://github.com/kyutai-labs/pocket-tts).
![Screenshot](screenshot.png)
## MCP Client Configuration ## MCP Client Configuration
Add to your MCP client configuration (stdio transport): Add to your MCP client configuration (stdio transport):
@ -47,35 +49,31 @@ This example showcases several MCP App capabilities:
## Prerequisites ## Prerequisites
- [uv](https://docs.astral.sh/uv/getting-started/installation/) - fast Python package manager - [uv](https://docs.astral.sh/uv/) - fast Python package manager
- A CUDA GPU (recommended) or CPU with sufficient RAM (~2GB for model)
## Quick Start ## Quick Start
The server is a single self-contained Python file that can be run directly with `uv`: The server is a single self-contained Python file that can be run directly from GitHub:
```bash ```bash
# Run directly (uv auto-installs dependencies) # Run directly from GitHub (uv auto-installs dependencies)
uv run examples/say-server/server.py uv run https://raw.githubusercontent.com/modelcontextprotocol/ext-apps/main/examples/say-server/server.py
``` ```
The server will be available at `http://localhost:3109/mcp`. The server will be available at `http://localhost:3109/mcp`.
## Running with Docker ## Running with Docker
Run directly from GitHub using the official `uv` Docker image. Mount your HuggingFace cache to avoid re-downloading the model: Run directly from GitHub using the official `uv` Docker image:
```bash ```bash
docker run --rm -it \ docker run --rm -it \
-p 3109:3109 \ -p 3109:3109 \
-v ~/.cache/huggingface:/root/.cache/huggingface \ -v ~/.cache/huggingface-docker-say-server:/root/.cache/huggingface \
-e HF_HOME=/root/.cache/huggingface \
ghcr.io/astral-sh/uv:debian \ ghcr.io/astral-sh/uv:debian \
uv run https://raw.githubusercontent.com/modelcontextprotocol/ext-apps/main/examples/say-server/server.py uv run https://raw.githubusercontent.com/modelcontextprotocol/ext-apps/main/examples/say-server/server.py
``` ```
For GPU support, add `--gpus all` (requires [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html)).
## Usage ## Usage
### With Claude Desktop ### With Claude Desktop
@ -87,8 +85,11 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
"mcpServers": { "mcpServers": {
"say": { "say": {
"command": "uv", "command": "uv",
"args": ["run", "server.py", "--stdio"], "args": [
"cwd": "/path/to/examples/say-server" "run",
"https://raw.githubusercontent.com/modelcontextprotocol/ext-apps/main/examples/say-server/server.py",
"--stdio"
]
} }
} }
} }