Skip to content

Commit 740d399

Browse files
authored
chore: smithery update runtime configuration to use container (#116)
* chore: update version to 3.2.0 and modify Dockerfile for improved installation * chore: update runtime configuration to use container and specify Dockerfile path * docs: update README to reflect change from SSE to HTTP for MCP client interaction
1 parent 38709e0 commit 740d399

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ LABEL org.opencontainers.image.licenses="Apache License, Version 2.0"
99
ENV MCP_ENABLE_REMOTE="true"
1010

1111
WORKDIR /app
12+
COPY pyproject.toml requirements.txt /app/
13+
COPY src src
1214

13-
COPY requirements.txt src/mcp_github/*.py /app/
15+
RUN pip install -r requirements.txt
1416

15-
RUN pip install --no-cache-dir -r requirements.txt && \
16-
pip install --no-cache-dir uv
17+
RUN uv sync
1718

1819
EXPOSE 8080
1920

20-
CMD ["uvx", "./"]
21+
CMD ["uv", "run", "mcp-github-pr-issue-analyser"]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The toolset enables automated PR analysis, issue tracking, tagging and release m
3838
| |
3939
+------------------------+
4040
|
41-
| (stdio/SSE)
41+
| (stdio/http)
4242
v
4343
+--------------------+ +------------------------+
4444
| | | PRIssueAnalyser |
@@ -54,7 +54,7 @@ The toolset enables automated PR analysis, issue tracking, tagging and release m
5454
|
5555
| (REST API)
5656
+-------------------------+-------------------------+
57-
| | |
57+
| | |
5858
+-------------+ +--------------+ +-------------+
5959
| GitHub PRs | |GitHub Issues | |GitHub Tags/ |
6060
| & Releases | | | | Releases |
@@ -73,7 +73,7 @@ The toolset enables automated PR analysis, issue tracking, tagging and release m
7373
- PRIssueAnalyser: Main MCP server handling tool registration and requests
7474
- GitHub Integration: Manages all GitHub API interactions
7575
- IP Integration: Handles IPv4/IPv6 information retrieval
76-
- MCP Client: Interacts via stdio or Server-Sent Events (SSE)
76+
- MCP Client: Interacts via stdio or HTTP Streaming (http)
7777

7878
## Local Installation
7979

@@ -91,13 +91,13 @@ export GITHUB_TOKEN="<github-token>"
9191
uvx ./
9292
```
9393

94-
Alternatively, launch MCP in `sse` mode.
94+
Alternatively, launch MCP in `http` mode.
9595
```sh
9696
export GITHUB_TOKEN="<github-token>"
9797
export MCP_ENABLE_REMOTE=true
9898
uvx ./
9999
```
100-
> You can access it via `sse` i.e. `http(s)://localhost:8080/sse`
100+
> You can access it via `http` i.e. `http(s)://localhost:8080/mcp`
101101
102102
## Local Integration with IDEs and LLMs
103103

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-github-pr-issue-analyser"
3-
version = "3.1.1"
3+
version = "3.2.0"
44
description = "MCP GitHub Issues Create/Update and PR Analyse"
55
readme = "README.md"
66
requires-python = ">=3.12"

smithery.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Smithery configuration file: https://smithery.ai/docs/use/session-config
22

3-
runtime: "python"
3+
runtime: "container"
4+
build:
5+
dockerfile: "Dockerfile" # Path to your Dockerfile
6+
dockerBuildPath: "."
47
env:
5-
MCP_ENABLE_REMOTE: "true"
8+
GITHUB_TOKEN: "your-token-here"
69

710
startCommand:
811
type: "http"
@@ -12,13 +15,4 @@ startCommand:
1215
properties:
1316
githubToken:
1417
type: string
15-
description: The GitHub token to use for authentication.
16-
default: "foo"
17-
commandFunction: |-
18-
(config) => ({
19-
"command": "uvx",
20-
"args": ["./"],
21-
"env": {
22-
"GITHUB_TOKEN": config.githubToken,
23-
},
24-
})
18+
description: "GitHub token to use for authentication."

0 commit comments

Comments
 (0)