Skip to content

Commit c9f1873

Browse files
committed
fix(pyproject.toml): update project name format from snake_case to kebab-case for consistency
fix(pyproject.toml): correct script entry point to match updated project name format chore(pyproject.toml): add wheel build target configuration for packaging style(server.py): simplify exception handling by removing unnecessary comment
1 parent 2b6912c commit c9f1873

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "mcp_text_editor"
2+
name = "mcp-text-editor"
33
version = "0.1.0"
44
description = "MCP Text Editor Server - Edit text files via MCP protocol"
55
authors = [
@@ -14,7 +14,7 @@ readme = "README.md"
1414
license = { text = "MIT" }
1515

1616
[project.scripts]
17-
mcp_text_editor = "src.mcp_text_editor:run"
17+
mcp-text-editor = "mcp_text_editor:run"
1818

1919
[project.optional-dependencies]
2020
test = [
@@ -71,4 +71,7 @@ python_version = "3.11"
7171
ignore_missing_imports = true
7272
namespace_packages = true
7373
explicit_package_bases = true
74-
mypy_path = "src"
74+
mypy_path = "src"
75+
76+
[tool.hatch.build.targets.wheel]
77+
packages = ["src/mcp_text_editor"]

src/mcp_text_editor/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ async def call_tool(name: str, arguments: Any) -> Sequence[TextContent]:
265265
raise ValueError(f"Unknown tool: {name}")
266266
except ValueError:
267267
logger.error(traceback.format_exc())
268-
raise # ValueErrorはそのまま伝播
268+
raise
269269
except Exception as e:
270270
logger.error(traceback.format_exc())
271271
raise RuntimeError(f"Error executing command: {str(e)}") from e

0 commit comments

Comments
 (0)