Run mattermost-search MCP over shared HTTP and fix FTS hangs.

Avoid per-agent stdio contention on the sqlite index, sort FTS by rank with created tie-break, and add mm_search_tag for dated #plan/#report substring search.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Сергей Маринкевич
2026-08-04 15:05:01 +07:00
parent 273c487558
commit 6f8648f7fa
6 changed files with 285 additions and 64 deletions
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=Mattermost Search MCP (HTTP)
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/grayhook/Documents/mattermost-dl
Environment=MM_MCP_TRANSPORT=http
Environment=MM_MCP_HOST=127.0.0.1
Environment=MM_MCP_PORT=8766
Environment=MM_MCP_PATH=/mcp
Environment=MM_SEARCH_ROOT=results
Environment=MM_SEARCH_DB=mattermost_index.sqlite
ExecStart=/home/grayhook/Documents/mattermost-dl/.venv/bin/python /home/grayhook/Documents/mattermost-dl/mm_search_mcp.py
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target