Add LogicSRC standards MCP server

This commit is contained in:
Anthony Ettinger 2026-06-06 14:22:43 +00:00
parent 4e4c78140d
commit dd150f391a
26 changed files with 2250 additions and 15 deletions

View file

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-label="LogicSRC">
<rect width="512" height="512" rx="72" fill="#101418"/>
<path fill="#5ac8a6" d="M96 126h96v96H96zM224 126h192v48H224zM224 198h144v48H224z"/>
<path fill="#f0c56a" d="M96 290h320v48H96zM96 362h240v48H96z"/>
</svg>

After

Width:  |  Height:  |  Size: 314 B

View file

@ -0,0 +1,18 @@
{
"name": "LogicSRC",
"short_name": "LogicSRC",
"description": "Open standards and schemas for human and AI agent coordination.",
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#f6f7f4",
"theme_color": "#101418",
"icons": [
{
"src": "/icon.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "any maskable"
}
]
}

View file

@ -0,0 +1,32 @@
const CACHE_NAME = "logicsrc-standards-v1";
const SHELL_ASSETS = ["/", "/manifest.webmanifest", "/icon.svg"];
self.addEventListener("install", (event) => {
event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(SHELL_ASSETS)));
self.skipWaiting();
});
self.addEventListener("activate", (event) => {
event.waitUntil(
caches.keys().then((keys) => Promise.all(keys.filter((key) => key !== CACHE_NAME).map((key) => caches.delete(key))))
);
self.clients.claim();
});
self.addEventListener("fetch", (event) => {
if (event.request.method !== "GET") {
return;
}
event.respondWith(
fetch(event.request)
.then((response) => {
if (response.ok && new URL(event.request.url).origin === self.location.origin) {
const clone = response.clone();
caches.open(CACHE_NAME).then((cache) => cache.put(event.request, clone));
}
return response;
})
.catch(() => caches.match(event.request).then((cached) => cached || caches.match("/")))
);
});