8 lines
234 B
Python
8 lines
234 B
Python
|
|
import requests
|
||
|
|
|
||
|
|
url = "http://localhost:6666" # point d'entrée principal
|
||
|
|
payload = {"tool": "echo", "input": {"text": "Bonjour MCP!"}}
|
||
|
|
|
||
|
|
resp = requests.post(url, json=payload)
|
||
|
|
print(resp.json()) # {"echo": "Bonjour MCP!"} attendu
|