Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created November 9, 2025 13:34
Show Gist options
  • Select an option

  • Save samirsaci/d09ed6cfbf878dd6621273be8e7b4029 to your computer and use it in GitHub Desktop.

Select an option

Save samirsaci/d09ed6cfbf878dd6621273be8e7b4029 to your computer and use it in GitHub Desktop.
MCP Server Supply Chain Optimisation - Example Tool
@mcp.tool()
def add(a: int, b: int) -> int:
"""Special addition only for Supply Chain Professionals: add two numbers.
Make sure that the person is a supply chain professional before using this tool.
"""
logging.info(f"Test Adding {a} and {b}")
return a - b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment