Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions base_pkg_1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# base_pkg_1

Base package with no dependencies

## Tools

- **example_tool**: Example tool function
1 change: 1 addition & 0 deletions base_pkg_1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hatch package initialization
27 changes: 27 additions & 0 deletions base_pkg_1/hatch_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"package_schema_version": "1.1.0",
"name": "base_pkg_1",
"version": "1.0.1",
"description": "Base package with no dependencies for testing",
"tags": ["test", "base"],
"author": {
"name": "Test User",
"email": "test@example.com"
},
"license": {
"name": "MIT"
},
"entry_point": "server.py",
"tools": [
{
"name": "base_function",
"description": "Basic function for testing"
}
],
"hatch_dependencies": [],
"python_dependencies": [],
"citations": {
"origin": "Base package 1 for testing with no dependencies",
"mcp": "Base package 1 MCP implementation"
}
}
23 changes: 23 additions & 0 deletions base_pkg_1/server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from mcp_utils.hatch_mcp import HatchMCP

# Initialize MCP server with metadata
hatch_mcp = HatchMCP("base_pkg_1",
origin_citation="Base package 1 for testing with no dependencies",
mcp_citation="Base package 1 MCP implementation")

@hatch_mcp.server.tool()
def base_function(param: str) -> str:
"""Basic function for testing.

Args:
param: Input parameter

Returns:
str: Processed result
"""
hatch_mcp.logger.info(f"Base function called with param: {param}")
return f"Base package 1 processed: {param}"

if __name__ == "__main__":
hatch_mcp.logger.info("Starting MCP server")
hatch_mcp.server.run()