feat: firts mcp.tool
This commit is contained in:
6
main.py
6
main.py
@@ -1,6 +0,0 @@
|
||||
def main():
|
||||
print("Hello from trytonmcp!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
9
src/tryton-mcp/server.py
Normal file
9
src/tryton-mcp/server.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from fastmcp import FastMCP
|
||||
|
||||
|
||||
mcp = FastMCP("Tryton MCP Server")
|
||||
|
||||
|
||||
@mcp.tool
|
||||
def greet(name: str) -> str:
|
||||
return f"Hello, {name}"
|
||||
Reference in New Issue
Block a user