使用说明
会话化MCP服务器
A. 模型上下文协议(MCP) 将Sessionize会话数据作为工具公开的服务器。它允许AI代理和LLM客户按日期搜索演讲者和演讲。
工具
| 工具 | 说明 |
|---|---|
search_sessionize |
按月搜索会话 Month Year 格式(例如。 April 2025) |
配置
服务器是通过环境变量配置的:
| 变量 | 描述 | 必填 |
|---|---|---|
SESSIONIZE_URL |
会话API端点URL | 是 |
SESSIONIZE_DATE_FILTER_CATEGORY_ID |
用于按日期筛选会话的类别ID | 是 |
本地运行
使用Python
pip install -r requirements.txt
SESSIONIZE_URL="https://sessionize.com/api/v2/<your-id>/view/Sessions" \
SESSIONIZE_DATE_FILTER_CATEGORY_ID=61493 \
python src/sessionize_tool.py
使用Podman/Docker
podman build -t sessionize-mcp .
podman run -p 8080:8080 \
-e SESSIONIZE_URL="https://sessionize.com/api/v2/<your-id>/view/Sessions" \
-e SESSIONIZE_DATE_FILTER_CATEGORY_ID=61493 \
sessionize-mcp
MCP端点将在 http://localhost:8080/mcp.
客户端配置
VS代码/GitHub副本
添加到您的 .vscode/mcp.json:
{
"servers": {
"sessionize": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
}
克劳德桌面版
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"sessionize": {
"url": "http://localhost:8080/mcp"
}
}
}
光标
添加到光标MCP设置中:
{
"mcpServers": {
"sessionize": {
"url": "http://localhost:8080/mcp"
}
}
}
打开WebUI
- 首选 设置→ 工具→ 添加MCP服务器
- 将URL设置为
http://<host>:8080/mcp
卷曲
# Initialize session
curl -i -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
# Call the tool (use mcp-session-id from the response headers above)
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: <session-id>" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_sessionize","arguments":{"date":"April 2025"}}}'
