Skip to main content
Glama
test_message.py1.18 kB
#!/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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mvp2o-ai/mcp-ide-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server