Skip to content

Commit ff6756c

Browse files
committed
Merge branch 'develop'
2 parents 395d5ad + 96f52ed commit ff6756c

File tree

10 files changed

+20
-35
lines changed

10 files changed

+20
-35
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,7 @@ jobs:
3030
3131
- name: Run tests
3232
run: |
33-
uv run pytest
34-
35-
- name: Run ruff
36-
run: |
37-
uv run ruff check .
38-
39-
- name: Run black
40-
run: |
41-
uv run black . --check
42-
43-
- name: Run isort
44-
run: |
45-
uv run isort . --check-only
46-
47-
- name: Run mypy
48-
run: |
49-
uv run mypy mcp_shell_server tests
33+
make check
5034
5135
publish:
5236
needs: test

.github/workflows/test.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,15 @@ jobs:
3131
pip install -e ".[dev]"
3232
pip install -e ".[test]"
3333
34-
- name: Run tests
34+
- name: Run lint and typecheck
3535
run: |
36-
uv run pytest
36+
make lint typecheck
3737
38-
- name: Run ruff
38+
- name: Run tests with coverage
3939
run: |
40-
uv run ruff check .
40+
pytest --cov --cov-report=xml
4141
42-
- name: Run black
43-
run: |
44-
uv run black . --check
45-
46-
- name: Run isort
47-
run: |
48-
uv run isort . --check-only
49-
50-
- name: Run mypy
51-
run: |
52-
uv run mypy mcp_shell_server tests
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v5
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.PHONY: test format lint typecheck check
22

33
test:
4+
pip install -e .
45
pytest
56

67
format:
@@ -15,7 +16,7 @@ lint:
1516
ruff check .
1617

1718
typecheck:
18-
mypy mcp_shell_server tests
19+
mypy src/mcp_shell_server tests
1920

2021
# Run all checks required before pushing
2122
check: lint typecheck test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# MCP Shell Server
22

3+
[![codecov](https://codecov.io/gh/tumf/mcp-shell-server/branch/main/graph/badge.svg)](https://codecov.io/gh/tumf/mcp-shell-server)
4+
35
A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
46

57
## Features

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test = [
2121
"pytest>=7.4.0",
2222
"pytest-asyncio>=0.23.0",
2323
"pytest-env>=1.1.0",
24-
"pytest-cov>=4.1.0",
24+
"pytest-cov>=6.0.0",
2525
]
2626
dev = [
2727
"ruff>=0.0.262",
@@ -65,4 +65,7 @@ profile = "black"
6565
line_length = 88
6666

6767
[tool.hatch.version]
68-
path = "mcp_shell_server/version.py"
68+
path = "src/mcp_shell_server/version.py"
69+
70+
[tool.hatch.build.targets.wheel]
71+
packages = ["src/mcp_shell_server"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)