diff --git a/base_pkg_1/README.md b/base_pkg_1/README.md new file mode 100644 index 0000000..ed2177c --- /dev/null +++ b/base_pkg_1/README.md @@ -0,0 +1,7 @@ +# base_pkg_1 + +Base package with no dependencies + +## Tools + +- **example_tool**: Example tool function diff --git a/base_pkg_1/__init__.py b/base_pkg_1/__init__.py new file mode 100644 index 0000000..0e89eee --- /dev/null +++ b/base_pkg_1/__init__.py @@ -0,0 +1 @@ +# Hatch package initialization diff --git a/base_pkg_1/hatch_metadata.json b/base_pkg_1/hatch_metadata.json new file mode 100644 index 0000000..f00213d --- /dev/null +++ b/base_pkg_1/hatch_metadata.json @@ -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" + } +} \ No newline at end of file diff --git a/base_pkg_1/server.py b/base_pkg_1/server.py new file mode 100644 index 0000000..92f6c69 --- /dev/null +++ b/base_pkg_1/server.py @@ -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()