Skip to content

Commit 11b14a6

Browse files
update dir structure
1 parent f97b2c6 commit 11b14a6

File tree

7 files changed

+32
-14
lines changed

7 files changed

+32
-14
lines changed

examples/smack/docker-compose.yml renamed to examples/servers/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
smack-server:
3-
build: .
3+
build: ./smack
44
ports:
55
- "8000:8000"
66
restart: unless-stopped

examples/smack/Dockerfile renamed to examples/servers/smack/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ FROM python:3.10-slim
33
# Set working directory in the container
44
WORKDIR /app
55

6-
# Copy requirements file
7-
COPY requirements.txt .
6+
# Install uv and tomli for TOML parsing
7+
RUN pip install --no-cache-dir uv tomli==2.0.1
88

9-
# Install dependencies
10-
RUN uv pip install --no-cache-dir -r requirements.txt
9+
# Copy pyproject.toml
10+
COPY pyproject.toml .
11+
12+
# Install dependencies using uv with --system flag
13+
RUN uv pip install --system --no-cache-dir .
1114

1215
# Copy the application code
1316
COPY . .
File renamed without changes.
File renamed without changes.

examples/smack/pyproject.toml renamed to examples/servers/smack/pyproject.toml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,27 @@ known-first-party = ["smack"]
3434
[tool.ruff.format]
3535
quote-style = "double"
3636
indent-style = "space"
37-
line-ending = "auto"
37+
line-ending = "auto"
38+
39+
[project]
40+
name = "mcp-smack"
41+
version = "0.1.0"
42+
description = "SMACK application"
43+
requires-python = ">=3.10"
44+
dependencies = [
45+
"mcp==1.6.0",
46+
"psycopg2-binary==2.9.9",
47+
"pydantic==2.11.1",
48+
"pydantic-settings==2.8.1",
49+
"python-dotenv==1.1.0",
50+
"uvicorn==0.34.0",
51+
"httpx-sse==0.4.0",
52+
"sse-starlette==2.2.1",
53+
]
54+
55+
[build-system]
56+
requires = ["hatchling"]
57+
build-backend = "hatchling.build"
58+
59+
[tool.hatch.build.targets.wheel]
60+
packages = ["mcp_smack"]

examples/smack/requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)