API客户端工具

一个用于发送HTTP请求、获取消息历史记录和调用工具的API客户端工具,适用于开发调试和自动化测试场景。

  • by odewahn
  • Python
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 odewahn/orm-discovery-mcp

使用说明

uv运行客户端.pyhttp://localhost:8080/sse--api

跑步后,您可以:

发送消息

curl -X POST http://localhost:8000/query -H "Content-Type: application/json" -d \
'{"text":"Find the top authors on oreilly who write about ai. List their names and the titles of their top books along with links."}'

获取消息历史记录

curl http://localhost:8000/messages

调用工具:

curl -X POST http://0.0.0.0:8000/call-tool \
   -H "Content-Type: application/json" \
   -d '{
      "tool_name": "search_content",
      "tool_args": { "query": "python" }}'