Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --no-dev
COPY . .

ENTRYPOINT ["uv", "run", "load-data"]
ENTRYPOINT ["./entrypoint.sh"]
CMD ["load-data"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ uv run load-data --continuous --delay 600
### Run the MCP Server
Start the FastMCP server over stdio (default):
```bash
uv run python -m mcp_plex.server
uv run mcp-server
```
Expose the server over SSE on port 8000:
```bash
uv run python -m mcp_plex.server --transport sse --bind 0.0.0.0 --port 8000 --mount /mcp
uv run mcp-server --transport sse --bind 0.0.0.0 --port 8000 --mount /mcp
```

## Docker
Expand All @@ -64,7 +64,7 @@ The included `docker-compose.yml` launches both Qdrant and the MCP server.
```
3. (Optional) Load sample data into Qdrant:
```bash
docker compose run --rm mcp-plex uv run load-data --sample-dir sample-data
docker compose run --rm loader load-data --sample-dir sample-data
```

The server will connect to the `qdrant` service at `http://qdrant:6333` and
Expand Down
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ services:
image: qdrant/qdrant
ports:
- "6333:6333"
loader:
build: .
environment:
PLEX_URL: ${PLEX_URL}
PLEX_TOKEN: ${PLEX_TOKEN}
TMDB_API_KEY: ${TMDB_API_KEY}
QDRANT_URL: http://qdrant:6333
depends_on:
- qdrant
command: load-data --continuous
mcp-plex:
build: .
environment:
Expand All @@ -14,6 +24,6 @@ services:
QDRANT_URL: http://qdrant:6333
depends_on:
- qdrant
command: uv run python -m mcp_plex.server --transport sse --bind 0.0.0.0 --port 8000 --mount /mcp
command: mcp-server --transport sse --bind 0.0.0.0 --port 8000 --mount /mcp
ports:
- "8000:8000"
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -e

exec uv run "$@"
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mcp-plex"
version = "0.4.1"
version = "0.4.2"

description = "Plex-Oriented Model Context Protocol Server"
requires-python = ">=3.11,<4"
Expand All @@ -27,6 +27,7 @@ dev = [

[project.scripts]
load-data = "mcp_plex.loader:main"
mcp-server = "mcp_plex.server:main"

[[tool.uv.index]]
url = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.