oculon 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +344 -2
- package/dist/agent.d.ts +47 -0
- package/dist/agent.js +104 -0
- package/dist/cases.d.ts +68 -0
- package/dist/cases.js +158 -0
- package/dist/cli/main.d.ts +12 -0
- package/dist/cli/main.js +1999 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +15 -0
- package/dist/core/context.d.ts +19 -0
- package/dist/core/context.js +19 -0
- package/dist/core/features.d.ts +22 -0
- package/dist/core/features.js +28 -0
- package/dist/core/graph.d.ts +38 -0
- package/dist/core/graph.js +81 -0
- package/dist/core/http.d.ts +42 -0
- package/dist/core/http.js +266 -0
- package/dist/core/keys.d.ts +8 -0
- package/dist/core/keys.js +22 -0
- package/dist/core/llm.d.ts +93 -0
- package/dist/core/llm.js +180 -0
- package/dist/core/merkle.d.ts +15 -0
- package/dist/core/merkle.js +46 -0
- package/dist/core/paths.d.ts +2 -0
- package/dist/core/paths.js +6 -0
- package/dist/core/png.d.ts +17 -0
- package/dist/core/png.js +101 -0
- package/dist/core/quota.d.ts +15 -0
- package/dist/core/quota.js +90 -0
- package/dist/core/stats.d.ts +24 -0
- package/dist/core/stats.js +67 -0
- package/dist/core/store.d.ts +20 -0
- package/dist/core/store.js +213 -0
- package/dist/core/text.d.ts +9 -0
- package/dist/core/text.js +30 -0
- package/dist/core/types.d.ts +38 -0
- package/dist/core/types.js +1 -0
- package/dist/index.d.ts +346 -0
- package/dist/index.js +503 -0
- package/dist/live.d.ts +53 -0
- package/dist/live.js +236 -0
- package/dist/mcp.d.ts +43 -0
- package/dist/mcp.js +651 -0
- package/dist/modules/airport.d.ts +60 -0
- package/dist/modules/airport.js +111 -0
- package/dist/modules/audit.d.ts +73 -0
- package/dist/modules/audit.js +211 -0
- package/dist/modules/bgp.d.ts +147 -0
- package/dist/modules/bgp.js +206 -0
- package/dist/modules/blackout.d.ts +41 -0
- package/dist/modules/blackout.js +98 -0
- package/dist/modules/brief.d.ts +26 -0
- package/dist/modules/brief.js +99 -0
- package/dist/modules/calendar.d.ts +27 -0
- package/dist/modules/calendar.js +145 -0
- package/dist/modules/calibrate.d.ts +46 -0
- package/dist/modules/calibrate.js +92 -0
- package/dist/modules/cloud.d.ts +32 -0
- package/dist/modules/cloud.js +94 -0
- package/dist/modules/condor.d.ts +66 -0
- package/dist/modules/condor.js +214 -0
- package/dist/modules/connect.d.ts +47 -0
- package/dist/modules/connect.js +114 -0
- package/dist/modules/contradictions.d.ts +27 -0
- package/dist/modules/contradictions.js +76 -0
- package/dist/modules/country.d.ts +82 -0
- package/dist/modules/country.js +136 -0
- package/dist/modules/cricket.d.ts +34 -0
- package/dist/modules/cricket.js +166 -0
- package/dist/modules/darkships.d.ts +219 -0
- package/dist/modules/darkships.js +400 -0
- package/dist/modules/defi.d.ts +237 -0
- package/dist/modules/defi.js +512 -0
- package/dist/modules/emailsec.d.ts +47 -0
- package/dist/modules/emailsec.js +146 -0
- package/dist/modules/exposure.d.ts +43 -0
- package/dist/modules/exposure.js +89 -0
- package/dist/modules/factcheck.d.ts +39 -0
- package/dist/modules/factcheck.js +127 -0
- package/dist/modules/falcon.d.ts +58 -0
- package/dist/modules/falcon.js +219 -0
- package/dist/modules/feedback.d.ts +24 -0
- package/dist/modules/feedback.js +37 -0
- package/dist/modules/fence.d.ts +52 -0
- package/dist/modules/fence.js +128 -0
- package/dist/modules/ferret.d.ts +47 -0
- package/dist/modules/ferret.js +220 -0
- package/dist/modules/filings.d.ts +86 -0
- package/dist/modules/filings.js +166 -0
- package/dist/modules/fires.d.ts +56 -0
- package/dist/modules/fires.js +150 -0
- package/dist/modules/hazards.d.ts +37 -0
- package/dist/modules/hazards.js +83 -0
- package/dist/modules/health.d.ts +24 -0
- package/dist/modules/health.js +82 -0
- package/dist/modules/heron.d.ts +68 -0
- package/dist/modules/heron.js +184 -0
- package/dist/modules/hound.d.ts +100 -0
- package/dist/modules/hound.js +301 -0
- package/dist/modules/impact.d.ts +39 -0
- package/dist/modules/impact.js +63 -0
- package/dist/modules/launches.d.ts +24 -0
- package/dist/modules/launches.js +61 -0
- package/dist/modules/listen.d.ts +48 -0
- package/dist/modules/listen.js +125 -0
- package/dist/modules/lynx.d.ts +43 -0
- package/dist/modules/lynx.js +127 -0
- package/dist/modules/magpie.d.ts +70 -0
- package/dist/modules/magpie.js +174 -0
- package/dist/modules/meerkat.d.ts +42 -0
- package/dist/modules/meerkat.js +293 -0
- package/dist/modules/monitor.d.ts +27 -0
- package/dist/modules/monitor.js +105 -0
- package/dist/modules/narratives.d.ts +33 -0
- package/dist/modules/narratives.js +136 -0
- package/dist/modules/owl.d.ts +71 -0
- package/dist/modules/owl.js +290 -0
- package/dist/modules/papers.d.ts +46 -0
- package/dist/modules/papers.js +135 -0
- package/dist/modules/personal.d.ts +54 -0
- package/dist/modules/personal.js +153 -0
- package/dist/modules/pulse.d.ts +19 -0
- package/dist/modules/pulse.js +59 -0
- package/dist/modules/raven.d.ts +80 -0
- package/dist/modules/raven.js +147 -0
- package/dist/modules/recall.d.ts +44 -0
- package/dist/modules/recall.js +123 -0
- package/dist/modules/regs.d.ts +88 -0
- package/dist/modules/regs.js +142 -0
- package/dist/modules/rewind.d.ts +22 -0
- package/dist/modules/rewind.js +68 -0
- package/dist/modules/sanctions.d.ts +62 -0
- package/dist/modules/sanctions.js +173 -0
- package/dist/modules/scam.d.ts +43 -0
- package/dist/modules/scam.js +149 -0
- package/dist/modules/scoop.d.ts +31 -0
- package/dist/modules/scoop.js +74 -0
- package/dist/modules/ships.d.ts +33 -0
- package/dist/modules/ships.js +113 -0
- package/dist/modules/sky.d.ts +47 -0
- package/dist/modules/sky.js +183 -0
- package/dist/modules/squawk.d.ts +46 -0
- package/dist/modules/squawk.js +106 -0
- package/dist/modules/tortoise.d.ts +59 -0
- package/dist/modules/tortoise.js +133 -0
- package/dist/modules/travel.d.ts +94 -0
- package/dist/modules/travel.js +241 -0
- package/dist/modules/urlcheck.d.ts +63 -0
- package/dist/modules/urlcheck.js +223 -0
- package/dist/modules/vulns.d.ts +142 -0
- package/dist/modules/vulns.js +276 -0
- package/dist/plugins.d.ts +41 -0
- package/dist/plugins.js +70 -0
- package/dist/report.d.ts +12 -0
- package/dist/report.js +90 -0
- package/dist/scheduler.d.ts +22 -0
- package/dist/scheduler.js +139 -0
- package/dist/sources/aircraft.d.ts +76 -0
- package/dist/sources/aircraft.js +107 -0
- package/dist/sources/airports.d.ts +28 -0
- package/dist/sources/airports.js +100 -0
- package/dist/sources/ais.d.ts +32 -0
- package/dist/sources/ais.js +111 -0
- package/dist/sources/apify.d.ts +28 -0
- package/dist/sources/apify.js +80 -0
- package/dist/sources/arxiv.d.ts +13 -0
- package/dist/sources/arxiv.js +27 -0
- package/dist/sources/certs.d.ts +12 -0
- package/dist/sources/certs.js +23 -0
- package/dist/sources/corp.d.ts +46 -0
- package/dist/sources/corp.js +60 -0
- package/dist/sources/earth.d.ts +39 -0
- package/dist/sources/earth.js +76 -0
- package/dist/sources/fda.d.ts +77 -0
- package/dist/sources/fda.js +121 -0
- package/dist/sources/finance.d.ts +181 -0
- package/dist/sources/finance.js +270 -0
- package/dist/sources/gdelt.d.ts +19 -0
- package/dist/sources/gdelt.js +33 -0
- package/dist/sources/github.d.ts +17 -0
- package/dist/sources/github.js +33 -0
- package/dist/sources/hackernews.d.ts +20 -0
- package/dist/sources/hackernews.js +37 -0
- package/dist/sources/labels.d.ts +21 -0
- package/dist/sources/labels.js +87 -0
- package/dist/sources/launch.d.ts +16 -0
- package/dist/sources/launch.js +41 -0
- package/dist/sources/ofac.d.ts +29 -0
- package/dist/sources/ofac.js +86 -0
- package/dist/sources/onchain.d.ts +77 -0
- package/dist/sources/onchain.js +189 -0
- package/dist/sources/opentimestamps.d.ts +49 -0
- package/dist/sources/opentimestamps.js +145 -0
- package/dist/sources/polymarket.d.ts +36 -0
- package/dist/sources/polymarket.js +70 -0
- package/dist/sources/predict.d.ts +18 -0
- package/dist/sources/predict.js +59 -0
- package/dist/sources/press.d.ts +30 -0
- package/dist/sources/press.js +111 -0
- package/dist/sources/resend.d.ts +14 -0
- package/dist/sources/resend.js +29 -0
- package/dist/sources/robinhood.d.ts +109 -0
- package/dist/sources/robinhood.js +129 -0
- package/dist/sources/sec.d.ts +67 -0
- package/dist/sources/sec.js +129 -0
- package/dist/sources/sentinel.d.ts +13 -0
- package/dist/sources/sentinel.js +63 -0
- package/dist/sources/signatures.d.ts +14 -0
- package/dist/sources/signatures.js +103 -0
- package/dist/sources/social.d.ts +22 -0
- package/dist/sources/social.js +56 -0
- package/dist/sources/space.d.ts +160 -0
- package/dist/sources/space.js +230 -0
- package/dist/sources/usgs.d.ts +17 -0
- package/dist/sources/usgs.js +24 -0
- package/dist/sources/wayback.d.ts +10 -0
- package/dist/sources/wayback.js +28 -0
- package/dist/sources/websec.d.ts +19 -0
- package/dist/sources/websec.js +40 -0
- package/dist/sources/wikidata.d.ts +11 -0
- package/dist/sources/wikidata.js +30 -0
- package/dist/sources/wikimedia.d.ts +28 -0
- package/dist/sources/wikimedia.js +52 -0
- package/dist/telegram.d.ts +104 -0
- package/dist/telegram.js +927 -0
- package/dist/web/assets/favicon-32.png +0 -0
- package/dist/web/assets/fx.js +178 -0
- package/dist/web/assets/icon-192.png +0 -0
- package/dist/web/assets/icon-512.png +0 -0
- package/dist/web/assets/icon-maskable-512.png +0 -0
- package/dist/web/assets/night-americas.jpg +0 -0
- package/dist/web/assets/night-emea.jpg +0 -0
- package/dist/web/assets/og.png +0 -0
- package/dist/web/assets/redsea-bm.jpg +0 -0
- package/dist/web/docs.html +281 -0
- package/dist/web/index.html +1828 -0
- package/dist/web/insights.d.ts +100 -0
- package/dist/web/insights.js +134 -0
- package/dist/web/landing.html +1144 -0
- package/dist/web/legal.html +176 -0
- package/dist/web/manifest.webmanifest +20 -0
- package/dist/web/mcp.html +104 -0
- package/dist/web/mcphttp.d.ts +10 -0
- package/dist/web/mcphttp.js +67 -0
- package/dist/web/openapi.d.ts +1 -0
- package/dist/web/openapi.js +51 -0
- package/dist/web/public.d.ts +45 -0
- package/dist/web/public.js +136 -0
- package/dist/web/server.d.ts +69 -0
- package/dist/web/server.js +764 -0
- package/dist/web/share.d.ts +35 -0
- package/dist/web/share.js +132 -0
- package/dist/web/sw.js +28 -0
- package/package.json +60 -4
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<link rel="manifest" href="/manifest.webmanifest">
|
|
7
|
+
<meta name="theme-color" content="#000000">
|
|
8
|
+
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
9
|
+
<link rel="apple-touch-icon" href="/assets/icon-192.png">
|
|
10
|
+
<title>Oculon Legal</title>
|
|
11
|
+
<meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon"><meta property="og:description" content="Privacy and terms for Oculon."><meta property="og:url" content="https://oculon.live/privacy"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
|
|
12
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
13
|
+
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
|
|
14
|
+
<style>
|
|
15
|
+
:root{--line:#222;--soft:#cfcfcf;--mut:#9a9a9a;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
|
|
16
|
+
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}
|
|
17
|
+
body{margin:0;background:#000;color:#fff;font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
|
|
18
|
+
a{color:inherit}
|
|
19
|
+
header{position:sticky;top:0;z-index:5;background:rgba(0,0,0,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
|
|
20
|
+
header .in{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(20px,3vw,40px);gap:20px}
|
|
21
|
+
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
22
|
+
header nav{display:flex;gap:24px;font-size:14px}header nav a{text-decoration:none;color:var(--soft)}
|
|
23
|
+
header nav a.on{color:#fff;border-bottom:2px solid var(--y);padding-bottom:4px}
|
|
24
|
+
main{max-width:860px;margin:0 auto;padding:80px clamp(20px,5vw,40px) 120px}
|
|
25
|
+
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
26
|
+
h1{margin:14px 0 10px;font-size:clamp(44px,6vw,72px);font-weight:300;letter-spacing:-.04em;line-height:1}
|
|
27
|
+
h2{margin:56px 0 12px;font-size:26px;font-weight:400;padding-top:24px;border-top:1px solid var(--line)}
|
|
28
|
+
p,li{font-size:17px;line-height:1.75;color:var(--soft);font-weight:300}
|
|
29
|
+
ul{padding-left:20px}
|
|
30
|
+
code{font:.86em var(--mono);background:#111;border:1px solid #1d1d1d;padding:1px 6px;color:#fff}
|
|
31
|
+
.sum{border:1px solid #2a2a2a;background:#070707;padding:22px 24px;margin-top:28px}
|
|
32
|
+
.sum p{margin:0}
|
|
33
|
+
.doc{display:none}.doc.on{display:block}
|
|
34
|
+
footer{border-top:1px solid var(--line)}footer .in{max-width:860px;margin:0 auto;padding:26px clamp(20px,5vw,40px);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font:12px var(--mono);color:#5e5e5e}
|
|
35
|
+
footer a{color:var(--mut)}
|
|
36
|
+
/* motion, shared with the landing page and docs */
|
|
37
|
+
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.36}
|
|
38
|
+
header,main,footer{position:relative;z-index:1}
|
|
39
|
+
header{position:sticky}
|
|
40
|
+
header::after{content:'';position:absolute;left:-30%;bottom:-1px;width:30%;height:1px;background:linear-gradient(90deg,transparent,var(--y),transparent);animation:hscan 6s linear infinite}
|
|
41
|
+
@keyframes hscan{to{left:100%}}
|
|
42
|
+
.logo{background:linear-gradient(90deg,#fff 40%,var(--y) 50%,#fff 60%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shim 7s linear infinite}
|
|
43
|
+
@keyframes shim{from{background-position:100% 0}to{background-position:-200% 0}}
|
|
44
|
+
header nav a{transition:color .2s}header nav a:hover{color:#fff}header nav a.on{border-bottom-color:var(--y);text-shadow:0 0 18px rgba(0,240,255,.6)}
|
|
45
|
+
.band{position:relative;z-index:1;height:150px;margin-bottom:-150px;pointer-events:none;overflow:hidden}
|
|
46
|
+
.band canvas{position:absolute;inset:0;width:100%;height:100%}
|
|
47
|
+
.band canvas{-webkit-mask-image:linear-gradient(180deg,transparent,#000 30%,#000 65%,transparent);mask-image:linear-gradient(180deg,transparent,#000 30%,#000 65%,transparent)}
|
|
48
|
+
h1{animation:rise .9s cubic-bezier(.2,.8,.2,1) both;text-shadow:0 0 50px rgba(0,240,255,.2)}
|
|
49
|
+
@keyframes rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
|
|
50
|
+
.sum{border-color:rgba(0,240,255,.35);background:rgba(0,14,18,.7);backdrop-filter:blur(8px);box-shadow:0 0 40px rgba(0,240,255,.08);animation:rise 1s .15s cubic-bezier(.2,.8,.2,1) both}
|
|
51
|
+
.rv{opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .8s ease}.rv.in{opacity:1;transform:none}
|
|
52
|
+
h2{position:relative}h2::before{content:'';position:absolute;left:0;top:-1px;height:1px;width:0;background:var(--y);transition:width 1.2s ease}h2.in::before{width:120px}
|
|
53
|
+
code{background:rgba(0,20,24,.8);border-color:rgba(0,240,255,.2)}
|
|
54
|
+
footer{background:rgba(0,0,0,.6);backdrop-filter:blur(6px)}
|
|
55
|
+
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none !important;transition:none !important}.rv{opacity:1;transform:none}}
|
|
56
|
+
/* ---------- at-a-glance cards ---------- */
|
|
57
|
+
.glance{margin-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
|
|
58
|
+
.gc{border:1px solid #1f2a2d;background:rgba(4,8,9,.85);backdrop-filter:blur(6px);padding:18px 18px 16px;position:relative;overflow:hidden;transition:border-color .3s,transform .35s;animation:gcin .6s cubic-bezier(.2,.8,.2,1) both}
|
|
59
|
+
.gc:nth-child(2){animation-delay:.06s}.gc:nth-child(3){animation-delay:.12s}.gc:nth-child(4){animation-delay:.18s}.gc:nth-child(5){animation-delay:.24s}.gc:nth-child(6){animation-delay:.3s}.gc:nth-child(7){animation-delay:.36s}
|
|
60
|
+
@keyframes gcin{from{opacity:0;transform:translateY(14px)}}
|
|
61
|
+
.gc:hover{border-color:rgba(0,240,255,.5);transform:translateY(-3px)}
|
|
62
|
+
.gc::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--y),transparent);transform:translateX(-100%);transition:transform .7s}
|
|
63
|
+
.gc:hover::after{transform:translateX(100%)}
|
|
64
|
+
.gc .ic{font:600 13px var(--mono);color:var(--y);letter-spacing:.04em}
|
|
65
|
+
.gc h3{margin:10px 0 6px;font-size:17px;font-weight:500}
|
|
66
|
+
.gc p{margin:0 !important;font-size:14px !important;line-height:1.55 !important;color:var(--mut) !important}
|
|
67
|
+
.gc a{color:#fff}
|
|
68
|
+
.gc.wide{grid-column:1/-1}
|
|
69
|
+
.live-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
|
|
70
|
+
.live-h .lbl{color:var(--y)}
|
|
71
|
+
.live-h span:last-child{font:12px var(--mono);color:var(--mut)}
|
|
72
|
+
.srcs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
|
|
73
|
+
.srcs span{font:12px var(--mono);border:1px solid rgba(0,240,255,.28);background:rgba(0,240,255,.04);color:#cffaff;padding:4px 9px;animation:gcin .4s ease both}
|
|
74
|
+
.srcs span b{font-weight:400;color:var(--mut);margin-left:6px}
|
|
75
|
+
.dotl{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3fd16b;box-shadow:0 0 8px #3fd16b;margin-right:8px;animation:blink 1.6s ease-in-out infinite}
|
|
76
|
+
@keyframes blink{50%{opacity:.25}}
|
|
77
|
+
@media (max-width:760px){.glance{grid-template-columns:minmax(0,1fr)}}
|
|
78
|
+
</style>
|
|
79
|
+
</head>
|
|
80
|
+
<body>
|
|
81
|
+
<header><div class="in"><a class="logo" href="/">OCULON</a><nav><a href="/privacy" id="n-privacy">Privacy</a><a href="/terms" id="n-terms">Terms</a><a href="/docs">Docs</a></nav></div></header>
|
|
82
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
83
|
+
<main>
|
|
84
|
+
<article class="doc" id="privacy">
|
|
85
|
+
<div class="lbl">Legal · Privacy</div>
|
|
86
|
+
<h1>Privacy</h1>
|
|
87
|
+
<div class="sum"><p>Oculon is software you run yourself. It has no account system, no telemetry and no analytics. What it stores stays on the machine that runs it.</p></div>
|
|
88
|
+
<div class="glance">
|
|
89
|
+
<div class="gc"><div class="ic">00</div><h3>No telemetry</h3><p>No analytics, crash reports or usage pings. Nothing goes to the authors.</p></div>
|
|
90
|
+
<div class="gc"><div class="ic">~/</div><h3>Stored locally</h3><p>One SQLite file in <code>~/.oculon</code> or your <code>OCULON_HOME</code>.</p></div>
|
|
91
|
+
<div class="gc"><div class="ic">KEY</div><h3>Keys stay yours</h3><p>Read from your <code>.env</code> and sent only to the service each key belongs to.</p></div>
|
|
92
|
+
<div class="gc"><div class="ic">AI</div><h3>LLMs only if you add a key</h3><p>ask, case and the brief go to the providers you configured. No key, nothing sent.</p></div>
|
|
93
|
+
<div class="gc"><div class="ic">127</div><h3>Localhost by default</h3><p><code>oculon serve</code> listens on 127.0.0.1. Writes need a same-origin request.</p></div>
|
|
94
|
+
<div class="gc"><div class="ic">0 cookies</div><h3>No cookies</h3><p>Only your theme choice, kept in your browser's local storage.</p></div>
|
|
95
|
+
<div class="gc wide"><div class="live-h"><span class="lbl"><i class="dotl"></i>Services this install contacted today</span><span class="srcn">loading…</span></div><div class="srcs"></div><p style="margin-top:12px !important">Read from this install's daily usage counters (<code>oculon quota</code>). Requests go only to these services, each under its own terms.</p></div>
|
|
96
|
+
</div>
|
|
97
|
+
<h2>Who this covers</h2>
|
|
98
|
+
<p>This notice describes how the Oculon software (CLI, SDK, MCP server, this web app and the Telegram bot) handles information. Whoever runs an Oculon install is responsible for that install and for any public deployment of these pages.</p>
|
|
99
|
+
<h2>What Oculon stores</h2>
|
|
100
|
+
<ul>
|
|
101
|
+
<li>A local SQLite database with signals, entities, links, cached API responses, watchlist items, geofences, case files and feedback votes, in <code>~/.oculon</code> or the folder set by <code>OCULON_HOME</code>.</li>
|
|
102
|
+
<li>API keys you add to your <code>.env</code> file. They are read locally and sent only to the service each key belongs to.</li>
|
|
103
|
+
<li>Nothing is sent to the Oculon authors. There is no usage reporting, crash reporting or tracking.</li>
|
|
104
|
+
</ul>
|
|
105
|
+
<h2>What leaves your machine</h2>
|
|
106
|
+
<ul>
|
|
107
|
+
<li><strong>Queries to public data sources.</strong> When a module runs, it calls the sources it needs <!--onchain-->(for example USGS, Cloudflare Radar, Blockscout or GeckoTerminal)<!--/onchain--><!--offchain-->(for example USGS, Cloudflare Radar, NVD or NASA)<!--/offchain--> with the inputs you gave it, <!--onchain-->such as an address, a domain or a place name.<!--/onchain--><!--offchain-->such as a domain, a company or a place name.<!--/offchain--> Each source handles those requests under its own policy.</li>
|
|
108
|
+
<li><strong>Questions to language models.</strong> Commands such as <code>ask</code>, <code>case</code> and the daily brief send your question and the collected evidence to the LLM providers you configured keys for (Groq, Google Gemini, Mistral, OpenRouter, NVIDIA or Anthropic). Without a key, nothing is sent.</li>
|
|
109
|
+
<li><strong>Telegram.</strong> If you run the bot, alerts and answers go to the chats you allow-listed, through Telegram's servers.</li>
|
|
110
|
+
<li><strong>This web page.</strong> The landing page, app and docs load fonts from Google Fonts, map libraries from cdnjs and map outlines from jsDelivr, so your browser contacts those services when it opens them.</li>
|
|
111
|
+
</ul>
|
|
112
|
+
<h2>Cookies and browser storage</h2>
|
|
113
|
+
<p>The pages set no cookies. The app remembers your light or dark theme in your browser's local storage, and nothing else.</p>
|
|
114
|
+
<h2>Who can reach an install</h2>
|
|
115
|
+
<p><code>oculon serve</code> listens on <code>127.0.0.1</code> by default, so only the same machine can open it. Actions that change data accept only same-origin requests with a custom header. If you put an install behind a public domain, you decide who can reach it.</p>
|
|
116
|
+
<h2>Removing data</h2>
|
|
117
|
+
<p>Delete the Oculon data folder to remove everything it stored. <code>oculon gc</code> trims the cache without removing your watchlist or cases.</p>
|
|
118
|
+
<h2>Changes</h2>
|
|
119
|
+
<p>Changes to this notice ship with the software and appear in its documentation.</p>
|
|
120
|
+
</article>
|
|
121
|
+
|
|
122
|
+
<article class="doc" id="terms">
|
|
123
|
+
<div class="lbl">Legal · Terms</div>
|
|
124
|
+
<h1>Terms</h1>
|
|
125
|
+
<div class="sum"><p>Oculon is free, open-source software under the MIT licence, provided as is. It reports what public sources say. You decide what to do with it.</p></div>
|
|
126
|
+
<div class="glance">
|
|
127
|
+
<div class="gc"><div class="ic">MIT</div><h3>Free and open</h3><p>Use, copy, modify and distribute, including commercially. Keep the notice.</p></div>
|
|
128
|
+
<div class="gc"><div class="ic">AS IS</div><h3>No warranty</h3><p>Provided as is. Sources can be late, wrong or offline.</p></div>
|
|
129
|
+
<div class="gc"><div class="ic">!=</div><h3>Not advice</h3><p>Scores, verdicts and forecasts are automated readings, not financial or legal advice.</p></div>
|
|
130
|
+
<div class="gc"><div class="ic">≈</div><h3>Heuristics, not audits</h3><p><!--onchain-->Token and deployer verdicts<!--/onchain--><!--offchain-->Scores and verdicts<!--/offchain--> list their reasons so you can judge them.</p></div>
|
|
131
|
+
<div class="gc"><div class="ic">OK</div><h3>Use it fairly</h3><p>Lawful use, no targeting private people, no overloading the sources.</p></div>
|
|
132
|
+
<div class="gc"><div class="ic">PD</div><h3>Public-domain imagery</h3><p>NASA GIBS imagery and Natural Earth outlines on these pages.</p></div>
|
|
133
|
+
<div class="gc wide"><div class="live-h"><span class="lbl"><i class="dotl"></i>Third-party sources used today</span><span class="srcn">loading…</span></div><div class="srcs"></div><p style="margin-top:12px !important">Read from this install's daily usage counters (<code>oculon quota</code>). Requests go only to these services, each under its own terms.</p></div>
|
|
134
|
+
</div>
|
|
135
|
+
<h2>Licence</h2>
|
|
136
|
+
<p>Oculon is released under the MIT licence. You may use, copy, modify and distribute it, including commercially, provided the copyright and licence notice are kept. The software is provided "as is", without warranty of any kind.</p>
|
|
137
|
+
<h2 id="sources">Data sources</h2>
|
|
138
|
+
<p>Oculon reads public and free-tier sources run by other organisations. Their data stays subject to their own terms, rate limits and attribution rules. You are responsible for keeping your use within those terms, including for any API keys you add. Every Oculon result names the sources behind it and whether each answer was live or cached.</p>
|
|
139
|
+
<h2>Not advice</h2>
|
|
140
|
+
<p>Signals, scores, verdicts and forecasts are automated readings of public data. They are not financial, legal, security or investment advice. <!--onchain-->Token and deployer verdicts on Robinhood Chain and other chains are heuristics over pool and explorer data, not contract audits. A DANGER or OK verdict can be wrong.<!--/onchain--><!--offchain-->Scores are heuristics over public data, not audits or ratings, and a high or low score can be wrong.<!--/offchain--></p>
|
|
141
|
+
<h2>Accuracy and availability</h2>
|
|
142
|
+
<p>Sources can be late, wrong, rate-limited or offline, and free tiers can change. When a source fails, Oculon labels it and returns the rest of the result. Language-model output can be mistaken; answers cite the evidence they used so you can check it.</p>
|
|
143
|
+
<h2>Acceptable use</h2>
|
|
144
|
+
<ul>
|
|
145
|
+
<li>Use Oculon lawfully, and respect the privacy of the people and organisations you research.</li>
|
|
146
|
+
<li>Do not use it to harass, stalk or target private individuals, or to evade sanctions or other legal obligations.</li>
|
|
147
|
+
<li>Do not overload the sources it reads. The daily budgets exist to keep usage within their free limits.</li>
|
|
148
|
+
</ul>
|
|
149
|
+
<h2>Imagery and map data</h2>
|
|
150
|
+
<p>Satellite and night imagery on these pages comes from NASA GIBS (Black Marble, Blue Marble). Country outlines come from Natural Earth via world-atlas. Both are public domain.</p>
|
|
151
|
+
<h2>Changes</h2>
|
|
152
|
+
<p>These terms ship with the software and may change between versions.</p>
|
|
153
|
+
</article>
|
|
154
|
+
</main>
|
|
155
|
+
<footer><div class="in"><span>© <span id="year"></span> Oculon contributors · MIT</span><span><a href="/">Home</a> · <a href="/docs">Docs</a> · <a href="/app">App</a></span></div></footer>
|
|
156
|
+
<script src="/assets/fx.js"></script>
|
|
157
|
+
<script>
|
|
158
|
+
if (window.OculonFX) { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); }
|
|
159
|
+
const rvio = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); rvio.unobserve(e.target); } }), { threshold: 0.1 });
|
|
160
|
+
const which = location.pathname.replace(/\/$/, '').endsWith('terms') ? 'terms' : 'privacy';
|
|
161
|
+
document.getElementById(which).classList.add('on');
|
|
162
|
+
document.getElementById(`n-${which}`).classList.add('on');
|
|
163
|
+
document.title = `Oculon ${which === 'terms' ? 'Terms' : 'Privacy'}`;
|
|
164
|
+
document.getElementById('year').textContent = new Date().getFullYear();
|
|
165
|
+
document.querySelectorAll('.doc.on h2, .doc.on p, .doc.on ul').forEach((el) => { if (el.closest('.sum') || el.closest('.glance')) return; el.classList.add('rv'); rvio.observe(el); });
|
|
166
|
+
if (location.hash) setTimeout(() => document.getElementById(location.hash.slice(1))?.scrollIntoView(), 50);
|
|
167
|
+
|
|
168
|
+
// Live card: the services this install actually called today, from its quota counters.
|
|
169
|
+
fetch('/api/quota').then((r) => r.json()).then((q) => {
|
|
170
|
+
const used = q.filter((x) => x.used > 0).sort((a, b) => b.used - a.used);
|
|
171
|
+
document.querySelectorAll('.doc.on .srcn').forEach((el) => { el.textContent = used.length + ' services · today'; });
|
|
172
|
+
document.querySelectorAll('.doc.on .srcs').forEach((el) => { el.innerHTML = used.map((x, i) => '<span style="animation-delay:' + Math.min(i, 30) * 25 + 'ms">' + x.source.replace(/[&<>]/g, '') + '<b>' + x.used + '</b></span>').join('') || '<span>none yet today</span>'; });
|
|
173
|
+
}).catch(() => { document.querySelectorAll('.srcn').forEach((el) => { el.textContent = 'unavailable'; }); });
|
|
174
|
+
</script>
|
|
175
|
+
</body>
|
|
176
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Oculon",
|
|
3
|
+
"short_name": "Oculon",
|
|
4
|
+
"description": "Open-source intelligence engine: signals, routing, exploits, ships, satellites and Robinhood Chain, with sources on every answer.",
|
|
5
|
+
"start_url": "/app",
|
|
6
|
+
"scope": "/",
|
|
7
|
+
"display": "standalone",
|
|
8
|
+
"background_color": "#000000",
|
|
9
|
+
"theme_color": "#000000",
|
|
10
|
+
"icons": [
|
|
11
|
+
{ "src": "/assets/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
|
|
12
|
+
{ "src": "/assets/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
|
|
13
|
+
{ "src": "/assets/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
|
|
14
|
+
],
|
|
15
|
+
"shortcuts": [
|
|
16
|
+
{ "name": "Overview", "url": "/app#overview" },
|
|
17
|
+
{ "name": "Robinhood Chain", "url": "/app#robinhood" },
|
|
18
|
+
{ "name": "Signal inbox", "url": "/app#inbox" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="theme-color" content="#000000">
|
|
7
|
+
<link rel="icon" type="image/png" href="/favicon.ico">
|
|
8
|
+
<title>Oculon MCP</title>
|
|
9
|
+
<meta name="description" content="Remote MCP server for Oculon: OSINT checks with sources for any AI agent, nothing to install.">
|
|
10
|
+
<meta property="og:type" content="website"><meta property="og:site_name" content="Oculon"><meta property="og:title" content="Oculon MCP server"><meta property="og:description" content="One URL gives any AI agent Oculon's checks: scams, links, claims, recalls, travel risk, CVEs, outages and research, each with sources."><meta property="og:url" content="{{URL}}"><meta property="og:image" content="https://oculon.live/assets/og.png"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image" content="https://oculon.live/assets/og.png">
|
|
11
|
+
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
12
|
+
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
|
|
13
|
+
<style>
|
|
14
|
+
:root{--bg:#000;--bg2:#060606;--line:#222;--text:#fff;--soft:#cfcfcf;--mut:#9a9a9a;--dim:#5e5e5e;--y:#00f0ff;--sans:'Space Grotesk',system-ui,sans-serif;--mono:'Space Mono',ui-monospace,Consolas,monospace}
|
|
15
|
+
*{box-sizing:border-box}
|
|
16
|
+
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip}
|
|
17
|
+
a{color:inherit}
|
|
18
|
+
#liquidbg{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.3}
|
|
19
|
+
header,main,footer{position:relative;z-index:1}
|
|
20
|
+
header{position:sticky;top:0;z-index:5;background:rgba(0,0,0,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
|
|
21
|
+
header .in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,3vw,40px);max-width:1100px;margin:0 auto}
|
|
22
|
+
.logo{font-size:17px;font-weight:600;letter-spacing:.4em;text-decoration:none}
|
|
23
|
+
.logo span{color:var(--y);letter-spacing:.2em;font-weight:400;margin-left:8px}
|
|
24
|
+
header nav{display:flex;gap:20px;align-items:center;font-size:14px}
|
|
25
|
+
header nav a{text-decoration:none;color:var(--soft)}
|
|
26
|
+
.btn{background:var(--y);color:#001418 !important;padding:9px 14px;font-weight:600;text-decoration:none}
|
|
27
|
+
main{max-width:1100px;margin:0 auto;padding:56px clamp(16px,3vw,40px) 80px}
|
|
28
|
+
.lbl{font:12px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--mut)}
|
|
29
|
+
.live{display:inline-flex;align-items:center;gap:8px}
|
|
30
|
+
.live i{width:8px;height:8px;border-radius:50%;background:var(--y);box-shadow:0 0 10px var(--y);animation:pulse 2s ease-in-out infinite}
|
|
31
|
+
@keyframes pulse{50%{opacity:.35}}
|
|
32
|
+
h1{margin:16px 0 14px;font-size:clamp(38px,6vw,64px);font-weight:300;letter-spacing:-.04em;line-height:1.02}
|
|
33
|
+
.lead{font-size:clamp(17px,2vw,20px);line-height:1.6;color:var(--soft);font-weight:300;max-width:720px;margin:0 0 28px}
|
|
34
|
+
.url{display:flex;align-items:center;gap:0;border:1px solid var(--y);background:#001014;max-width:640px}
|
|
35
|
+
.url code{flex:1;min-width:0;padding:16px 18px;font:clamp(14px,2.4vw,18px) var(--mono);color:#fff;overflow-x:auto;white-space:nowrap}
|
|
36
|
+
.cp{border:0;border-left:1px solid var(--y);background:transparent;color:var(--y);font:12px var(--mono);letter-spacing:.1em;text-transform:uppercase;padding:0 16px;align-self:stretch;cursor:pointer}
|
|
37
|
+
.cp.ok{background:var(--y);color:#001418}
|
|
38
|
+
.note{font-size:14px;color:var(--mut);margin:12px 0 0;line-height:1.6}
|
|
39
|
+
h2{margin:64px 0 18px;font-size:clamp(26px,3.4vw,34px);font-weight:300;letter-spacing:-.03em;padding-top:26px;border-top:1px solid var(--line)}
|
|
40
|
+
.clients{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
|
|
41
|
+
.c{border:1px solid var(--line);background:rgba(6,6,6,.85);padding:20px}
|
|
42
|
+
.c h3{margin:0 0 6px;font-size:18px;font-weight:500}
|
|
43
|
+
.c p{margin:0 0 12px;color:var(--mut);font-size:14.5px;line-height:1.55}
|
|
44
|
+
.cmd{display:flex;align-items:flex-start;gap:10px;background:#000;border:1px solid #1d1d1d;padding:12px 12px 12px 14px}
|
|
45
|
+
.cmd code{flex:1;min-width:0;font:12.5px/1.6 var(--mono);color:#e6e6e6;white-space:pre-wrap;word-break:break-all}
|
|
46
|
+
.cmd .cp{border:1px solid #333;padding:4px 8px;align-self:flex-start}
|
|
47
|
+
.tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
|
|
48
|
+
.t{border:1px solid var(--line);padding:14px 16px;background:rgba(6,6,6,.85)}
|
|
49
|
+
.t b{display:block;font:13px var(--mono);color:var(--y);margin-bottom:6px;word-break:break-all}
|
|
50
|
+
.t span{font-size:14px;line-height:1.5;color:var(--soft);font-weight:300}
|
|
51
|
+
.tq{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px 14px;margin:0 0 14px;max-width:520px}
|
|
52
|
+
.tq input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#fff;font:15px var(--sans)}
|
|
53
|
+
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}
|
|
54
|
+
.f{border-left:2px solid var(--y);padding:4px 0 4px 14px;color:var(--soft);font-size:15px;line-height:1.55;font-weight:300}
|
|
55
|
+
.f strong{display:block;color:#fff;font-weight:500;margin-bottom:2px}
|
|
56
|
+
footer{border-top:1px solid var(--line);padding:24px clamp(16px,3vw,40px);color:var(--mut);font-size:13.5px;text-align:center}
|
|
57
|
+
footer a{color:var(--soft)}
|
|
58
|
+
@media (max-width:640px){header nav .opt{display:none}}
|
|
59
|
+
</style>
|
|
60
|
+
</head>
|
|
61
|
+
<body>
|
|
62
|
+
<canvas id="liquidbg" aria-hidden="true"></canvas>
|
|
63
|
+
<header><div class="in"><a class="logo" href="/">OCULON<span>MCP</span></a><nav><a class="opt" href="/docs#remote-mcp">Docs</a><a class="opt" href="https://github.com/oculonlive/oculon" target="_blank" rel="noopener">GitHub</a><a class="btn" href="/app">Open app</a></nav></div></header>
|
|
64
|
+
<main>
|
|
65
|
+
<div class="lbl live"><i></i>Remote MCP server · online</div>
|
|
66
|
+
<h1>Oculon for your agent.<br>One URL, nothing to install.</h1>
|
|
67
|
+
<p class="lead">Add this server to Claude, Cursor, VS Code or any MCP client and your agent can check scams, links, claims, recalls, travel risk, CVEs, outages and research, with the source of every fact.</p>
|
|
68
|
+
<div class="url"><code id="ep">{{URL}}</code><button class="cp" type="button" data-copy="{{URL}}">copy</button></div>
|
|
69
|
+
<p class="note">Streamable HTTP, stateless JSON. No account and no key. This page is what a browser sees; agents POST JSON-RPC to the same URL.</p>
|
|
70
|
+
|
|
71
|
+
<h2>Connect</h2>
|
|
72
|
+
<div class="clients">
|
|
73
|
+
<div class="c"><h3>Claude Code</h3><p>Run once in a terminal.</p><div class="cmd"><code>claude mcp add --transport http oculon {{URL}}</code><button class="cp" type="button">copy</button></div></div>
|
|
74
|
+
<div class="c"><h3>Claude (web and desktop)</h3><p>Settings → Connectors → Add custom connector, then paste the URL.</p><div class="cmd"><code>{{URL}}</code><button class="cp" type="button">copy</button></div></div>
|
|
75
|
+
<div class="c"><h3>Cursor</h3><p>In <code>.cursor/mcp.json</code>:</p><div class="cmd"><code>{ "mcpServers": { "oculon": { "url": "{{URL}}" } } }</code><button class="cp" type="button">copy</button></div></div>
|
|
76
|
+
<div class="c"><h3>VS Code</h3><p>In <code>.vscode/mcp.json</code>:</p><div class="cmd"><code>{ "servers": { "oculon": { "type": "http", "url": "{{URL}}" } } }</code><button class="cp" type="button">copy</button></div></div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<h2>{{COUNT}} tools</h2>
|
|
80
|
+
<label class="tq"><span class="lbl">Filter</span><input id="tq" placeholder="scam, cve, travel, flights…" autocomplete="off" spellcheck="false"></label>
|
|
81
|
+
<div class="tools" id="tools">{{TOOLS}}</div>
|
|
82
|
+
|
|
83
|
+
<h2>Good to know</h2>
|
|
84
|
+
<div class="facts">
|
|
85
|
+
<div class="f"><strong>Sources on every answer</strong>Each result carries where it came from and whether it was live, cached or unavailable.</div>
|
|
86
|
+
<div class="f"><strong>Read only</strong>Tools that change what this install watches are left out here; monitors only show how a request would be read.</div>
|
|
87
|
+
<div class="f"><strong>Plain HTTP too</strong>The same checks are in <a href="{{APPBASE}}/openapi.json">openapi.json</a> for ChatGPT Actions, n8n and Zapier.</div>
|
|
88
|
+
<div class="f"><strong>Open source</strong>Run your own copy with <code>oculon serve</code>; it serves this endpoint at <code>/mcp</code>.</div>
|
|
89
|
+
</div>
|
|
90
|
+
</main>
|
|
91
|
+
<footer><a href="/">oculon.live</a> · <a href="/docs#remote-mcp">Docs</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a></footer>
|
|
92
|
+
<script src="/assets/fx.js"></script>
|
|
93
|
+
<script>
|
|
94
|
+
if (window.OculonFX) { try { OculonFX.liquid(document.getElementById('liquidbg'), { base: '#000000', mid: '#001a26', hi: '#00c8e0', intensity: 0.8, scale: 0.3 }); } catch {} }
|
|
95
|
+
document.querySelectorAll('.cp').forEach((b) => b.addEventListener('click', async () => {
|
|
96
|
+
const text = b.dataset.copy || b.parentElement.querySelector('code').textContent;
|
|
97
|
+
try { await navigator.clipboard.writeText(text); b.textContent = 'copied'; b.classList.add('ok'); } catch { b.textContent = 'select'; }
|
|
98
|
+
setTimeout(() => { b.textContent = 'copy'; b.classList.remove('ok'); }, 1600);
|
|
99
|
+
}));
|
|
100
|
+
const tq = document.getElementById('tq'), rows = [...document.querySelectorAll('#tools .t')];
|
|
101
|
+
tq.addEventListener('input', () => { const q = tq.value.trim().toLowerCase(); rows.forEach((r) => { r.style.display = !q || r.textContent.toLowerCase().includes(q) ? '' : 'none'; }); });
|
|
102
|
+
</script>
|
|
103
|
+
</body>
|
|
104
|
+
</html>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remote MCP over Streamable HTTP (MCP 2025-03-26 and later), stateless.
|
|
3
|
+
* Clients POST JSON-RPC messages (one or a batch) to the endpoint and get JSON back; notifications get 202.
|
|
4
|
+
* There is no server-initiated stream, so GET answers 405 (a browser GET gets a page that explains how to connect).
|
|
5
|
+
* Every tool call goes through the same McpServer the stdio transport uses.
|
|
6
|
+
*/
|
|
7
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
8
|
+
import type { McpServer } from '../mcp.js';
|
|
9
|
+
/** Answers one HTTP request on the MCP endpoint. `page` renders the HTML a browser GET sees. */
|
|
10
|
+
export declare function handleMcpHttp(req: IncomingMessage, res: ServerResponse, mcp: McpServer, page: () => Promise<string>, log?: (m: string) => void): Promise<void>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const CORS = {
|
|
2
|
+
'access-control-allow-origin': '*',
|
|
3
|
+
'access-control-allow-methods': 'POST, GET, DELETE, OPTIONS',
|
|
4
|
+
'access-control-allow-headers': 'content-type, accept, authorization, mcp-session-id, mcp-protocol-version, last-event-id',
|
|
5
|
+
'access-control-expose-headers': 'mcp-session-id',
|
|
6
|
+
'access-control-max-age': '86400',
|
|
7
|
+
};
|
|
8
|
+
const LIMIT = 1_000_000;
|
|
9
|
+
function reply(res, status, body, extra = {}) {
|
|
10
|
+
const text = body === undefined ? '' : JSON.stringify(body);
|
|
11
|
+
res.writeHead(status, { ...CORS, ...(text ? { 'content-type': 'application/json; charset=utf-8' } : {}), 'cache-control': 'no-store', 'x-content-type-options': 'nosniff', ...extra });
|
|
12
|
+
res.end(text);
|
|
13
|
+
}
|
|
14
|
+
async function readBody(req) {
|
|
15
|
+
let size = 0;
|
|
16
|
+
const chunks = [];
|
|
17
|
+
for await (const c of req) {
|
|
18
|
+
size += c.length;
|
|
19
|
+
if (size > LIMIT)
|
|
20
|
+
throw new Error('too large');
|
|
21
|
+
chunks.push(c);
|
|
22
|
+
}
|
|
23
|
+
return Buffer.concat(chunks).toString('utf8');
|
|
24
|
+
}
|
|
25
|
+
/** Answers one HTTP request on the MCP endpoint. `page` renders the HTML a browser GET sees. */
|
|
26
|
+
export async function handleMcpHttp(req, res, mcp, page, log = () => { }) {
|
|
27
|
+
if (req.method === 'OPTIONS')
|
|
28
|
+
return reply(res, 204, undefined);
|
|
29
|
+
if (req.method === 'GET' || req.method === 'HEAD') {
|
|
30
|
+
if (/text\/html/.test(String(req.headers.accept ?? ''))) {
|
|
31
|
+
const html = await page();
|
|
32
|
+
res.writeHead(200, { ...CORS, 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-cache', 'x-content-type-options': 'nosniff' });
|
|
33
|
+
return void res.end(req.method === 'HEAD' ? undefined : html);
|
|
34
|
+
}
|
|
35
|
+
return reply(res, 405, { jsonrpc: '2.0', id: null, error: { code: -32000, message: 'This server does not open a GET stream; POST JSON-RPC messages to this URL.' } }, { allow: 'POST, OPTIONS' });
|
|
36
|
+
}
|
|
37
|
+
if (req.method === 'DELETE')
|
|
38
|
+
return reply(res, 405, undefined, { allow: 'POST, OPTIONS' });
|
|
39
|
+
if (req.method !== 'POST')
|
|
40
|
+
return reply(res, 405, undefined, { allow: 'POST, OPTIONS' });
|
|
41
|
+
let parsed;
|
|
42
|
+
try {
|
|
43
|
+
parsed = JSON.parse(await readBody(req));
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
const tooLarge = e.message === 'too large';
|
|
47
|
+
return reply(res, tooLarge ? 413 : 400, { jsonrpc: '2.0', id: null, error: { code: -32700, message: tooLarge ? 'request too large' : 'parse error' } });
|
|
48
|
+
}
|
|
49
|
+
const batch = Array.isArray(parsed);
|
|
50
|
+
const messages = (batch ? parsed : [parsed]);
|
|
51
|
+
if (!messages.length || messages.some((m) => !m || typeof m !== 'object'))
|
|
52
|
+
return reply(res, 400, { jsonrpc: '2.0', id: null, error: { code: -32600, message: 'invalid request' } });
|
|
53
|
+
const out = [];
|
|
54
|
+
for (const m of messages) {
|
|
55
|
+
// Responses and notifications from the client need no answer.
|
|
56
|
+
if (!m.method)
|
|
57
|
+
continue;
|
|
58
|
+
const r = await mcp.handle({ jsonrpc: '2.0', id: m.id, method: m.method, params: m.params });
|
|
59
|
+
if (m.method === 'tools/call')
|
|
60
|
+
log(`mcp ${String(m.params?.name ?? '')}`);
|
|
61
|
+
if (r && m.id !== undefined && m.id !== null)
|
|
62
|
+
out.push(r);
|
|
63
|
+
}
|
|
64
|
+
if (!out.length)
|
|
65
|
+
return reply(res, 202, undefined);
|
|
66
|
+
return reply(res, 200, batch ? out : out[0]);
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function openApiSpec(serverUrl: string): Record<string, unknown>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** OpenAPI 3.1 description of the public read API, for ChatGPT Actions, n8n, Zapier and other tools. */
|
|
2
|
+
import { SERVER_INFO } from '../mcp.js';
|
|
3
|
+
const E = [
|
|
4
|
+
['/api/scam', 'scamCheck', 'Is this SMS, email or chat message a scam? Checks its links, sender and known scam patterns.', [{ name: 'message', desc: 'The full message text', example: 'USPS: your package is on hold, pay $1.99 at usps-help.top', required: true }]],
|
|
5
|
+
['/api/url', 'urlCheck', 'Is a link dangerous? Safe Browsing, URLhaus, urlscan.io history, domain age and look-alike checks.', [{ name: 'url', desc: 'Link or domain', example: 'paypa1-secure-login.top/verify', required: true }]],
|
|
6
|
+
['/api/factcheck', 'factCheck', 'Fact check a claim or a news link against published fact checks and current reporting.', [{ name: 'claim', desc: 'Claim text or article URL', example: 'The Great Wall of China is visible from space', required: true }]],
|
|
7
|
+
['/api/recall', 'recall', 'Vehicle recalls by VIN or "year make model", or product recalls by name (NHTSA, CPSC, FDA).', [{ name: 'q', desc: 'VIN, vehicle or product', example: '2018 Honda Accord', required: true }]],
|
|
8
|
+
['/api/emailsec', 'emailSecurity', 'Can someone spoof email from this domain? SPF, DMARC, DKIM, MTA-STS, DNSSEC, with fixes.', [{ name: 'domain', desc: 'Domain', example: 'example.com', required: true }]],
|
|
9
|
+
['/api/travel', 'travelRisk', 'Travel risk for the coming week: official advice, weather, air, outbreaks, disasters, quakes, outages.', [{ name: 'place', desc: 'City or country', example: 'Lisbon', required: true }]],
|
|
10
|
+
['/api/airport', 'airportStatus', 'Airport weather (METAR, TAF), FAA delays and ground stops, nearby emergency squawks.', [{ name: 'code', desc: 'IATA or ICAO code, or name', example: 'JFK', required: true }]],
|
|
11
|
+
['/api/country', 'countryBrief', 'Country brief: economy, IMF outlook, leaders, currency, travel advice, outages, headlines.', [{ name: 'name', desc: 'Country name or ISO code', example: 'Argentina', required: true }]],
|
|
12
|
+
['/api/papers', 'researchPapers', 'Research brief: most cited and newest papers on a topic, growth per year, a cited overview.', [{ name: 'topic', desc: 'Research topic', example: 'solid-state battery', required: true }]],
|
|
13
|
+
['/api/audit', 'dependencyAudit', 'Dependency health: vulnerabilities, deprecation, staleness, OpenSSF Scorecard.', [{ name: 'packages', desc: 'Space-separated npm:name@version or pypi:name==version items', example: 'npm:lodash@4.17.15 pypi:requests==2.19.0', required: true }]],
|
|
14
|
+
['/api/cve', 'cve', 'One CVE in depth: severity, exploitation odds, exploited-in-the-wild status, fixes.', [{ name: 'id', desc: 'CVE id', example: 'CVE-2024-3400', required: true }]],
|
|
15
|
+
['/api/vulns', 'exploitedVulnerabilities', 'Vulnerabilities newly exploited in the wild, new critical CVEs and package advisories.', [{ name: 'days', desc: 'Look-back window (1-30)', example: '7' }, { name: 'vendor', desc: 'Vendor or product filter', example: 'Microsoft' }]],
|
|
16
|
+
['/api/hazards', 'disasterAlerts', 'Official orange and red disaster alerts worldwide, tsunami bulletins and severe US weather.', []],
|
|
17
|
+
['/api/blackout', 'internetOutages', 'Internet outages and shutdowns by country and network.', []],
|
|
18
|
+
['/api/cloud', 'cloudOutages', 'Open incidents on AWS, Azure, Google Cloud, GitHub, Cloudflare, OpenAI and more.', []],
|
|
19
|
+
['/api/bgp', 'bgpRouting', 'BGP hijacks and route leaks worldwide, or routing of a country, network or IP.', [{ name: 'q', desc: 'world, a country code, ASN or IP', example: 'world' }]],
|
|
20
|
+
['/api/air', 'airQuality', 'PM2.5 air quality near a place.', [{ name: 'place', desc: 'Place', example: 'New Delhi', required: true }]],
|
|
21
|
+
['/api/space', 'spaceWeather', 'Geomagnetic storms, solar flares and coronal mass ejections.', []],
|
|
22
|
+
['/api/radar', 'radar', 'What the world is suddenly paying attention to, fused across sources.', []],
|
|
23
|
+
['/api/signals', 'signals', 'Latest scored signals from every module.', [{ name: 'limit', desc: 'How many (max 200)', example: '20' }]],
|
|
24
|
+
];
|
|
25
|
+
export function openApiSpec(serverUrl) {
|
|
26
|
+
const paths = {};
|
|
27
|
+
for (const [path, op, summary, params] of E) {
|
|
28
|
+
paths[path] = {
|
|
29
|
+
get: {
|
|
30
|
+
operationId: op,
|
|
31
|
+
summary,
|
|
32
|
+
parameters: params.map((p) => ({ name: p.name, in: 'query', required: Boolean(p.required), description: p.desc, schema: { type: 'string' }, example: p.example })),
|
|
33
|
+
responses: {
|
|
34
|
+
'200': { description: 'Result with provenance (which sources answered, live or cached).', content: { 'application/json': { schema: { type: 'object', additionalProperties: true } } } },
|
|
35
|
+
'400': { description: 'Missing or invalid parameter.' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
openapi: '3.1.0',
|
|
42
|
+
info: {
|
|
43
|
+
title: 'Oculon API',
|
|
44
|
+
version: SERVER_INFO.version,
|
|
45
|
+
description: 'Open-source intelligence checks with sources on every answer: scam messages, links, claims, recalls, email domains, travel risk, airports, countries, research papers, dependencies, vulnerabilities, outages and disasters. Free, no key. MCP clients can use https://mcp.oculon.live instead.',
|
|
46
|
+
license: { name: 'MIT', url: 'https://github.com/oculonlive/oculon/blob/main/LICENSE' },
|
|
47
|
+
},
|
|
48
|
+
servers: [{ url: serverUrl }],
|
|
49
|
+
paths,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IncomingMessage } from 'node:http';
|
|
2
|
+
/** Read-only endpoints the public pages call. Everything else needs the admin cookie. */
|
|
3
|
+
export declare const PUBLIC_API: Set<string>;
|
|
4
|
+
export declare function publicSignals<T extends {
|
|
5
|
+
module: string;
|
|
6
|
+
}>(list: T[]): T[];
|
|
7
|
+
/** Drops case and watch entities (and their edges) from a graph slice. */
|
|
8
|
+
export declare function publicGraph(g: {
|
|
9
|
+
nodes: {
|
|
10
|
+
id: string;
|
|
11
|
+
kind: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
edges: {
|
|
15
|
+
src: string;
|
|
16
|
+
dst: string;
|
|
17
|
+
}[];
|
|
18
|
+
}): {
|
|
19
|
+
nodes: {
|
|
20
|
+
id: string;
|
|
21
|
+
kind: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
edges: {
|
|
25
|
+
src: string;
|
|
26
|
+
dst: string;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
/** The client address: Cloudflare and Railway put the real one in a header. */
|
|
30
|
+
export declare function clientIp(req: IncomingMessage): string;
|
|
31
|
+
/** Fixed-window limiter: `perMinute` requests per client per minute, separately for heavy endpoints. */
|
|
32
|
+
export declare class RateLimiter {
|
|
33
|
+
private perMinute;
|
|
34
|
+
private heavyPerMinute;
|
|
35
|
+
private hits;
|
|
36
|
+
constructor(perMinute?: number, heavyPerMinute?: number);
|
|
37
|
+
allow(ip: string, path: string, now?: number): boolean;
|
|
38
|
+
private prune;
|
|
39
|
+
}
|
|
40
|
+
/** Cookie value for a valid token. The token itself is never stored in the browser. */
|
|
41
|
+
export declare function adminCookieValue(token: string): string;
|
|
42
|
+
export declare function isAdmin(req: IncomingMessage, token: string | undefined): boolean;
|
|
43
|
+
export declare function tokenMatches(given: string, token: string | undefined): boolean;
|
|
44
|
+
/** Shown at /app to visitors of a public install. */
|
|
45
|
+
export declare function lockedPage(signInAvailable: boolean, failed?: boolean): string;
|