Fix MCP function name collision causing incorrect EIMS routing

This commit is contained in:
jade
2026-07-05 18:16:23 +09:00
parent 53c90a680e
commit a9dad96541
2 changed files with 29 additions and 2 deletions

27
test_call_detail.py Normal file
View File

@@ -0,0 +1,27 @@
import urllib.request
import json
payload = {
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "detail",
"arguments": { "cust_id": "C001" }
},
"id": 1
}
url = 'http://localhost:8081/mcp/api/v1/tools/call'
headers = {
'Content-Type': 'application/json',
'X-API-KEY': 'SHINHAN_MCP_TEST_KEY_9999'
}
data = json.dumps(payload).encode('utf-8')
req = urllib.request.Request(url, data=data, headers=headers, method='POST')
try:
with urllib.request.urlopen(req) as response:
print(f"Response: {response.read().decode('utf-8')}")
except Exception as e:
print(f"Error: {e}")