Skip to content

Commit 8d7a441

Browse files
committed
Support single-threaded HTTP server and change newlines
1 parent 51fd2fc commit 8d7a441

File tree

7 files changed

+1627
-1610
lines changed

7 files changed

+1627
-1610
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
tab_width = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

examples/mcp_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def error_resource() -> None:
119119

120120
print("Starting MCP Example Server...")
121121
print("\nAvailable tools:")
122-
for name in mcp._tools.methods.keys():
123-
func = mcp._tools.methods[name]
122+
for name in mcp.tools.methods.keys():
123+
func = mcp.tools.methods[name]
124124
print(f" - {name}: {func.__doc__}")
125125

126126
mcp.serve(url.hostname, url.port)

src/zeromcp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .mcp import McpServer, McpToolError
1+
from .mcp import McpRpcRegistry, McpToolError, McpServer
22

3-
__all__ = ["McpServer", "McpToolError"]
3+
__all__ = ["McpRpcRegistry", "McpToolError", "McpServer"]

0 commit comments

Comments
 (0)