summaryrefslogtreecommitdiff
path: root/src/ollama_web/routes/mcp.py
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-08-02 15:50:41 +0900
committertanaka takashi <isazaka@gmail.com>2026-08-02 15:50:41 +0900
commit515f96a7779f117a7e37f854de2ded99160d0c76 (patch)
treeb63e4b39da1f7edb18146e94b16a76d4925948a4 /src/ollama_web/routes/mcp.py
parent1729e1c399a41b4128b5dd7ef0286fae128e6157 (diff)
scrape_url / pdf_to_text / search_and_fetch はページング(継続トークン方式)に対応
mypy 6エラー修正
Diffstat (limited to 'src/ollama_web/routes/mcp.py')
-rw-r--r--src/ollama_web/routes/mcp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ollama_web/routes/mcp.py b/src/ollama_web/routes/mcp.py
index ee8ba65..ba3628c 100644
--- a/src/ollama_web/routes/mcp.py
+++ b/src/ollama_web/routes/mcp.py
@@ -90,9 +90,7 @@ async def put_servers(request: Request) -> JSONResponse:
continue
cleaned["mcpServers"][name] = cleaned_server
else:
- errors.append(
- f"Server '{name}' must define either 'command' (stdio) or 'url' (http)"
- )
+ errors.append(f"Server '{name}' must define either 'command' (stdio) or 'url' (http)")
if errors:
return JSONResponse({"error": errors}, status_code=400)