From b70572b2699a5f74ff2b444f09f04be8007b942e Mon Sep 17 00:00:00 2001 From: Ziad Date: Tue, 1 Dec 2026 11:42:55 -0700 Subject: [PATCH] pi agent: spark models and a working wiki/lapis MCP set - models.json: add spark:ablit and spark:4b from the local Ollama endpoint (OLLAMA_CONTEXT_LENGTH is now 32k on yveltal so long prompts fit) - mcp.json: replace the stale ETV wikijs entry and WIKI_BEARER_TOKEN with the homelab wiki over _mcp and WIKI3_MCP_TOKEN, and add LaPis memory --- config/pi/mcp.json | 71 ++++++++----------------------------------- config/pi/models.json | 20 ++++++++++++ 2 files changed, 33 insertions(+), 58 deletions(-) diff --git a/config/pi/mcp.json b/config/pi/mcp.json index e4c5b47..adf669d 100644 --- a/config/pi/mcp.json +++ b/config/pi/mcp.json @@ -1,66 +1,21 @@ { "mcpServers": { - "websearch-simple": { - "url": "https://RivalSearchMCP.fastmcp.app/mcp", - "exposure": "direct" - }, "wiki": { - "command": "npx", - "args": [ - "-y", - "@yowu-dev/requarks-wiki-mcp@latest" - ], - "env": { - "WIKI_BASE_URL": "https://wikijs.etvamerica.com/", - "WIKI_API_TOKEN": "${WIKI_API_TOKEN}", - "WIKI_MUTATIONS_ENABLED": "true", - "WIKI_MUTATION_DRY_RUN": "false" + "url": "https://wiki.godemperordoge.org/_mcp", + "description": "Wiki.js homelab docs at godemperordoge.org: search, browse, read and update pages.", + "headers": { + "Authorization": "!secretctl get WIKI3_MCP_TOKEN -- sh -c 'printf \"Bearer %s\" \"$WIKI3_MCP_TOKEN\"'" }, - "exposure": "direct" - }, - "mise-en-place": { - "command": "${HOME}/.nix-profile/bin/mise", - "args": [ - "mcp" - ], - "env": { - "MISE_EXPERIMENTAL": "1" - }, - "exposure": "direct" - }, - "playwright-browser-automation": { - "command": "npx", - "args": [ - "@playwright/mcp@latest", - "--extension" - ], - "env": { - "PLAYWRIGHT_MCP_EXECUTABLE_PATH": "${HOME}/chrome.sh", - "PLAYWRIGHT_MCP_EXTENSION_TOKEN": "${PLAYWRIGHT_MCP_EXTENSION_TOKEN}" - }, - "exposure": "direct" - }, - "web-search-advanced": { - "command": "uvx", - "args": [ - "--from", - "git+https://github.com/Shelpuk-AI-Technology-Consulting/kindly-web-search-mcp-server", - "kindly-web-search-mcp-server", - "start-mcp-server" - ], - "env": { - "SEARXNG_BASE_URL": "https://google.godemperordoge.org/", - "SEARXNG_USER_AGENT": "Mozilla/5.0 ..." + "exposure": "codemode", + "toolExposure": { + "get_page": "direct" } }, - "gitea": { - "command": "${HOME}/.nix-profile/bin/gitea-mcp", - "args": [ - "-H", - "https://gitea.etvamerica.com", - "-T", - "${ETV_GITEA_TOKEN}" - ] + "lapis": { + "command": "sh", + "args": ["-c", "exec \"$HOME/.dotfiles/bin/mcp-lapis\""], + "description": "LaPis persistent memory (SQLite ~/.pi/memory/memory.db): memory-save, memory-search, memory-get, memory-code and memory-doc for the current project.", + "exposure": "codemode" } } -} \ No newline at end of file +} diff --git a/config/pi/models.json b/config/pi/models.json index ff0c1ed..079fddb 100644 --- a/config/pi/models.json +++ b/config/pi/models.json @@ -5,6 +5,26 @@ "api": "openai-completions", "apiKey": "ollama", "models": [ + { + "id": "spark:ablit", + "name": "Spark-X2.6-4B abliterated (GTX 1080)", + "contextWindow": 32768, + "maxTokens": 8192, + "reasoning": true, + "input": [ + "text" + ] + }, + { + "id": "spark:4b", + "name": "Spark-X2.6-4B official (GTX 1080)", + "contextWindow": 32768, + "maxTokens": 8192, + "reasoning": true, + "input": [ + "text" + ] + }, { "id": "gemma4-12b-qat-64k:latest", "contextWindow": 65536,