forked from Mvp2o-ai/mcp-ide-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_message.py
More file actions
38 lines (35 loc) · 1.15 KB
/
test_message.py
File metadata and controls
38 lines (35 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
import requests
import json
# MCP call to send a test message
mcp_payload = {
"jsonrpc": "2.0",
"id": "test-1",
"method": "tools/call",
"params": {
"name": "send_message_without_waiting",
"arguments": {
"sender_id": "test-client",
"recipient_ids": ["test-recipient"],
"messages": ["Hello! This is a test message to verify client activity tracking."],
"recipients_config": {
"my_id": "test-client",
"name": "Test Client",
"description": "Testing client activity tracking",
"clientType": "test agent",
"recipients": {
"test-recipient": {
"name": "Test Recipient",
"description": "Test target"
}
}
}
}
}
}
# Send to MCP server
response = requests.post('http://localhost:8111/mcp/',
json=mcp_payload,
headers={'Content-Type': 'application/json'})
print("Status:", response.status_code)
print("Response:", response.text)