From e5ee90195c8485702030213b6d1bebc48fcc4512 Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Tue, 13 May 2025 10:45:27 +0900 Subject: [PATCH 1/5] [Test] Add `base_pkg_1` **Major**: - Test adding a basic package that will be PRed to the branch `packages` --- base_pkg_1/README.md | 7 +++++++ base_pkg_1/__init__.py | 1 + base_pkg_1/hatch_metadata.json | 25 +++++++++++++++++++++++++ base_pkg_1/server.py | 23 +++++++++++++++++++++++ 4 files changed, 56 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..ccc0fab --- /dev/null +++ b/base_pkg_1/hatch_metadata.json @@ -0,0 +1,25 @@ +{ + "name": "base_pkg_1", + "version": "1.0.0", + "description": "Base package with no dependencies for testing", + "category": "testing", + "tags": ["test", "base"], + "author": { + "name": "Test User", + "email": "test@example.com" + }, + "license": "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 6620d319ccf4f6ab3f449db282ec85bf6f1f9e9d Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Tue, 13 May 2025 13:30:01 +0900 Subject: [PATCH 2/5] [Update] Version bump to re-trigger workflow **Major**: - Validation should happen only on addition or modification of the package's metadata. - Hence at least a version bump of the file is expected. --- 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 ccc0fab..01880a9 100644 --- a/base_pkg_1/hatch_metadata.json +++ b/base_pkg_1/hatch_metadata.json @@ -1,6 +1,6 @@ { "name": "base_pkg_1", - "version": "1.0.0", + "version": "1.0.1", "description": "Base package with no dependencies for testing", "category": "testing", "tags": ["test", "base"], From d1381f9e93146c10cdd032190229231efccef8b2 Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Tue, 13 May 2025 13:44:35 +0900 Subject: [PATCH 3/5] [Update] Version bump 1.0.2 **Major**: - Validation should happen only on addition or modification of the package's metadata. - Hence at least a version bump of the file is expected. --- 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 01880a9..3c10bd3 100644 --- a/base_pkg_1/hatch_metadata.json +++ b/base_pkg_1/hatch_metadata.json @@ -1,6 +1,6 @@ { "name": "base_pkg_1", - "version": "1.0.1", + "version": "1.0.2", "description": "Base package with no dependencies for testing", "category": "testing", "tags": ["test", "base"], From a3dd9bb379014d8e8c9e487bafe7975331653483 Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Tue, 13 May 2025 13:52:53 +0900 Subject: [PATCH 4/5] [Update] Version bump 1.0.3 **Major**: - Validation should happen only on addition or modification of the package's metadata. - Hence at least a version bump of the file is expected. --- 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 3c10bd3..fe352e2 100644 --- a/base_pkg_1/hatch_metadata.json +++ b/base_pkg_1/hatch_metadata.json @@ -1,6 +1,6 @@ { "name": "base_pkg_1", - "version": "1.0.2", + "version": "1.0.3", "description": "Base package with no dependencies for testing", "category": "testing", "tags": ["test", "base"], From 8cb488cbd79d1128fb0e2902495d5a4a7d581bb7 Mon Sep 17 00:00:00 2001 From: LittleCoinCoin Date: Tue, 13 May 2025 14:09:06 +0900 Subject: [PATCH 5/5] [Update] Version bump 1.0.4 **Major**: - Validation should happen only on addition or modification of the package's metadata. - Hence at least a version bump of the file is expected. --- 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 fe352e2..d3064ec 100644 --- a/base_pkg_1/hatch_metadata.json +++ b/base_pkg_1/hatch_metadata.json @@ -1,6 +1,6 @@ { "name": "base_pkg_1", - "version": "1.0.3", + "version": "1.0.4", "description": "Base package with no dependencies for testing", "category": "testing", "tags": ["test", "base"],