File tree Expand file tree Collapse file tree 4 files changed +56
-0
lines changed
Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ # base_pkg_1
2+
3+ Base package with no dependencies
4+
5+ ## Tools
6+
7+ - ** example_tool** : Example tool function
Original file line number Diff line number Diff line change 1+ # Hatch package initialization
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " base_pkg_1" ,
3+ "version" : " 1.0.4" ,
4+ "description" : " Base package with no dependencies for testing" ,
5+ "category" : " testing" ,
6+ "tags" : [" test" , " base" ],
7+ "author" : {
8+ "name" : " Test User" ,
9+ "email" : " test@example.com"
10+ },
11+ "license" : " MIT" ,
12+ "entry_point" : " server.py" ,
13+ "tools" : [
14+ {
15+ "name" : " base_function" ,
16+ "description" : " Basic function for testing"
17+ }
18+ ],
19+ "hatch_dependencies" : [],
20+ "python_dependencies" : [],
21+ "citations" : {
22+ "origin" : " Base package 1 for testing with no dependencies" ,
23+ "mcp" : " Base package 1 MCP implementation"
24+ }
25+ }
Original file line number Diff line number Diff line change 1+ from mcp_utils .hatch_mcp import HatchMCP
2+
3+ # Initialize MCP server with metadata
4+ hatch_mcp = HatchMCP ("base_pkg_1" ,
5+ origin_citation = "Base package 1 for testing with no dependencies" ,
6+ mcp_citation = "Base package 1 MCP implementation" )
7+
8+ @hatch_mcp .server .tool ()
9+ def base_function (param : str ) -> str :
10+ """Basic function for testing.
11+
12+ Args:
13+ param: Input parameter
14+
15+ Returns:
16+ str: Processed result
17+ """
18+ hatch_mcp .logger .info (f"Base function called with param: { param } " )
19+ return f"Base package 1 processed: { param } "
20+
21+ if __name__ == "__main__" :
22+ hatch_mcp .logger .info ("Starting MCP server" )
23+ hatch_mcp .server .run ()
You can’t perform that action at this time.
0 commit comments