Snapshot: full project state
This commit is contained in:
@@ -24,9 +24,9 @@ YACY_URL = os.getenv("YACY_URL", "http://localhost:8090")
|
|||||||
OPENSEARCH_URL = os.getenv("OPENSEARCH_URL", "http://localhost:9200")
|
OPENSEARCH_URL = os.getenv("OPENSEARCH_URL", "http://localhost:9200")
|
||||||
QDRANT_URL = os.getenv("QDRANT_URL", "http://10.30.20.68:6333")
|
QDRANT_URL = os.getenv("QDRANT_URL", "http://10.30.20.68:6333")
|
||||||
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://10.30.20.186:11434")
|
OLLAMA_URL = os.getenv("OLLAMA_URL", "http://10.30.20.186:11434")
|
||||||
OLLAMA_MODEL = os.getenv("OLLAMA_MODEL", "ornith:latest")
|
OLLAMA_MODEL = os.getenv("OLLAMA_MODEL", "ornith-1.5:9b")
|
||||||
INDEX_NAME = os.getenv("INDEX_NAME", "research_docs")
|
INDEX_NAME = os.getenv("INDEX_NAME", "research_docs")
|
||||||
BTCPAY_URL = "https://10.30.20.140"
|
BTCPAY_URL = "https://btcpay.thetempleofdoom.com"
|
||||||
BTCPAY_KEY = "6026288e2e315984661c748baafd509e81a75f22"
|
BTCPAY_KEY = "6026288e2e315984661c748baafd509e81a75f22"
|
||||||
BTCPAY_STORE = "8ERS6v1UyQ46bQqaWr4LotvMCJLsmUhH2sT8zbzfjkT6"
|
BTCPAY_STORE = "8ERS6v1UyQ46bQqaWr4LotvMCJLsmUhH2sT8zbzfjkT6"
|
||||||
WEBHOOK_SECRET = "XjfhDd9DzXsUkA91B4SwRz"
|
WEBHOOK_SECRET = "XjfhDd9DzXsUkA91B4SwRz"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from mcp.server import FastMCP
|
|||||||
|
|
||||||
BACKEND_URL = "http://10.30.20.250:8000"
|
BACKEND_URL = "http://10.30.20.250:8000"
|
||||||
ADMIN_KEY = "sk-admin-unlimited-2026"
|
ADMIN_KEY = "sk-admin-unlimited-2026"
|
||||||
client = httpx.Client(timeout=120.0)
|
client = httpx.Client(timeout=300.0)
|
||||||
|
|
||||||
def _get(path: str) -> dict:
|
def _get(path: str) -> dict:
|
||||||
sep = "&" if "?" in path else "?"
|
sep = "&" if "?" in path else "?"
|
||||||
@@ -41,6 +41,12 @@ def crawl_topic(topic: str, max_urls: int = 20) -> str:
|
|||||||
r = _get(f"/api/crawl-topic?topic={topic}&max_urls={max_urls}")
|
r = _get(f"/api/crawl-topic?topic={topic}&max_urls={max_urls}")
|
||||||
return json.dumps(r, indent=2)
|
return json.dumps(r, indent=2)
|
||||||
|
|
||||||
|
@mcp.tool()
|
||||||
|
def browser_crawl(url: str) -> str:
|
||||||
|
"""Crawl JS-heavy sites using headless Chromium (Playwright). For pages that need JavaScript rendering."""
|
||||||
|
r = _get(f"/api/browser-crawl?url={url}")
|
||||||
|
return json.dumps(r, indent=2)
|
||||||
|
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
def research_topic(topic: str) -> str:
|
def research_topic(topic: str) -> str:
|
||||||
"""Full pipeline: search → crawl → AI summary."""
|
"""Full pipeline: search → crawl → AI summary."""
|
||||||
|
|||||||
Reference in New Issue
Block a user