Quellcodebibliothek
Statistik
Leitseite
products
/
Sources
/
formale Sprachen
/
Python
/
SDK
/
docs_src
/
testing
/ Datei vom 5.10.2026 mit Größe 154 B
Quelle tutorial001.py Sprache: Python
from
mcp.server
import
MCPServer
mcp = MCPServer(
"Calculator"
)
@mcp.tool()
def
add(a: int, b: int) -> int:
""
"Add two numbers."
""
return
a + b
Messung
C
H
Z
G
80
100
100
93
¤
Dauer der Verarbeitung: 0.0 Sekunden (vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
2026-11-24