From 233893f45b71310d9cff4fd328b278180f953add Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Fri, 16 May 2025 22:30:15 +0900 Subject: [PATCH 1/2] [Test] Add base_pkg_1 **Major**: - Schema version 1.1.0 - Testing the whole pipeline from submission to registry updated. --- base_pkg_1/README.md | 7 +++++++ base_pkg_1/__init__.py | 1 + base_pkg_1/hatch_metadata.json | 27 +++++++++++++++++++++++++++ base_pkg_1/server.py | 23 +++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 base_pkg_1/README.md create mode 100644 base_pkg_1/__init__.py create mode 100644 base_pkg_1/hatch_metadata.json create mode 100644 base_pkg_1/server.py 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..d53ea59 --- /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.0", + "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() From 9cb5bf082308469ca7700c715e7f9b147b35a566 Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Sat, 17 May 2025 00:16:47 +0900 Subject: [PATCH 2/2] [Update - Minor] Version bump **Major**: - To refresh job runs --- base_pkg_1/hatch_metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_pkg_1/hatch_metadata.json b/base_pkg_1/hatch_metadata.json index d53ea59..8d9d7a0 100644 --- a/base_pkg_1/hatch_metadata.json +++ b/base_pkg_1/hatch_metadata.json @@ -1,7 +1,7 @@ { "package_schema_version": "1.1.0", "name": "base_pkg_1", - "version": "1.0.0", + "version": "1.0.4", "description": "Base package with no dependencies for testing", "tags": ["test", "base"], "author": {