Skip to content

Commit 9924a6a

Browse files
committed
fixes; 0.1.9
1 parent b71ca20 commit 9924a6a

File tree

8 files changed

+20
-11
lines changed

8 files changed

+20
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
- `0.1.5` semver compatible naming, npm release
1111
- `0.1.6` updated help text
1212
- `0.1.7` stability improvements (CI, pre-commit hooks, testing), --json, logging & error printing, bug fixes, server improvements
13-
- `0.1.8` fixes
13+
- `0.1.8-9` fixes

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifeq (run,$(firstword $(MAKECMDGOALS)))
77
endif
88

99
run:
10-
uv run -m src.mcp_scan.cli ${RUN_ARGS}
10+
uv run -m src.mcp_scan.run ${RUN_ARGS}
1111

1212
test:
1313
uv pip install -e .[test]

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-scan",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "MCP Scan tool for validating MCP server configurations",
55
"main": "index.js",
66
"bin": {

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-scan"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "MCP Scan tool"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -23,7 +23,7 @@ dependencies = [
2323
]
2424

2525
[project.scripts]
26-
mcp-scan = "mcp_scan.cli:main"
26+
mcp-scan = "mcp_scan.run:run"
2727
[build-system]
2828
requires = ["setuptools>=61.0", "wheel"]
2929
build-backend = "setuptools.build_meta"

src/mcp_scan/cli.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import argparse
2-
import asyncio
32
import json
43
import logging
54
import sys
@@ -346,6 +345,3 @@ async def run_scan_inspect(mode="scan", args=None):
346345
print(json.dumps(result, indent=2))
347346
else:
348347
print_scan_result(result, args.print_errors)
349-
350-
351-
asyncio.run(main())

src/mcp_scan/printer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ def print_scan_path_result(result: ScanPathResult, print_errors: bool = False) -
148148
console.print()
149149
console.print("[bold]Exception when scanning " + (server.name or "") + "[/bold]")
150150
console.print(traceback)
151+
print(end="", flush=True)
151152

152153

153154
def print_scan_result(result: list[ScanPathResult], print_errors: bool = False) -> None:
154155
for i, path_result in enumerate(result):
155156
print_scan_path_result(path_result, print_errors)
156157
if i < len(result) - 1:
157158
rich.print()
159+
print(end="", flush=True)

src/mcp_scan/run.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import asyncio
2+
3+
from mcp_scan.cli import main
4+
5+
6+
def run():
7+
asyncio.run(main())
8+
9+
10+
if __name__ == "__main__":
11+
run()

tests/e2e/test_full_scan_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_basic(self, sample_configs):
1919
temp_file.write(sample_configs[0]) # Use the first config from the fixture
2020
temp_file.flush()
2121
result = subprocess.run(
22-
["uv", "run", "-m", "src.mcp_scan.cli", "scan", "--json", fn],
22+
["uv", "run", "-m", "src.mcp_scan.run", "scan", "--json", fn],
2323
capture_output=True,
2424
text=True,
2525
)
@@ -56,7 +56,7 @@ def vscode_settings_no_mcp(self):
5656
json.dump(settings, temp_file)
5757
temp_file.flush()
5858
result = subprocess.run(
59-
["uv", "run", "-m", "src.mcp_scan.cli", "scan", "--json", temp_file.name],
59+
["uv", "run", "-m", "src.mcp_scan.run", "scan", "--json", temp_file.name],
6060
capture_output=True,
6161
text=True,
6262
)

0 commit comments

Comments
 (0)