import logging
from typing import Iterator
from src.mcp_server.entities.ifly_client import IFlyWorkflowClient
def test_chat():
ifly_client = IFlyWorkflowClient()
resp = ifly_client.chat_message(
ifly_client.flows[0],
{
"AGENT_USER_INPUT": "a picture of a cat"
}
)
if isinstance(resp, Iterator):
for res in resp:
logging.info(res)
else:
logging.info(resp)
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/hygao1024/xingchen-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server