@cachly-dev/mcp-server 0.10.274 → 0.10.276
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/README.md +10 -6
- package/dist/src/remote-oauth.js +1 -1
- package/glama.json +2 -4
- package/package.json +2 -11
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<p align="center"><a href="https://cachly.dev"><img src="https://cachly.dev/brand/cachly-dev.png" alt="cachly.dev" width="380"></a></p>
|
|
2
2
|
|
|
3
|
-
# cachly —
|
|
3
|
+
# cachly — explain it once, every AI knows it (MCP server)
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **Explain it once. Every AI knows it.**
|
|
6
6
|
>
|
|
7
|
-
>
|
|
8
|
-
>
|
|
7
|
+
> cachly keeps your project's rules, decisions and fixed bugs, and every AI tool reads them.
|
|
8
|
+
> It works for one person, for a team and for a whole company. Claude and ChatGPT remember
|
|
9
|
+
> your preferences. cachly keeps what your project has learned.
|
|
9
10
|
|
|
10
11
|
**#1 on LoCoMo in the OmniMemEval comparison, 90.71 points**
|
|
11
12
|
([results](https://github.com/MemTensor/OmniMemEval/blob/main/docs/user_memory/results.md#locomo)).
|
|
@@ -246,8 +247,11 @@ Brain plan. The current limits are on
|
|
|
246
247
|
|
|
247
248
|
## FAQ
|
|
248
249
|
|
|
249
|
-
**How is this different from a `CLAUDE.md` or
|
|
250
|
-
|
|
250
|
+
**How is this different from a `CLAUDE.md` or the built-in memory of Claude, ChatGPT and Copilot?**
|
|
251
|
+
The built-in memory of an AI provider stores your preferences and works inside that one
|
|
252
|
+
product. cachly stores your project's experience: rules, decisions and solved errors. Teams
|
|
253
|
+
and companies share it, and every AI tool reads the same lessons. A rule file is read in full
|
|
254
|
+
in every session, so it grows and costs tokens each time.
|
|
251
255
|
cachly keeps lessons outside the prompt and places only the matching ones next to it, ranked
|
|
252
256
|
by outcome and review. The [comparisons](#guides) show where a plain file or another product
|
|
253
257
|
fits better.
|
package/dist/src/remote-oauth.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{constants as
|
|
1
|
+
import{constants as S,createPublicKey as T,verify as m}from"node:crypto";const P="https://mcp.cachly.dev/mcp",x="https://auth.cachly.dev/realms/cachly",D=["profile","email","cachly-mcp"],O="https://cachly.dev/docs/remote-mcp",_="https://cachly.dev/instances",g="/.well-known/oauth-protected-resource";function k(e){return e.replace(/\/+$/,"")}function w(e,t){return(e??"").split(t).map(n=>n.trim()).filter(n=>n!=="")}function y(e,t){let n;try{n=new URL(t)}catch{throw new Error(`${e} ist keine URL: "${t}"`)}const s=n.hostname==="localhost"||n.hostname==="127.0.0.1"||n.hostname==="[::1]";if(n.protocol!=="https:"&&!(n.protocol==="http:"&&s))throw new Error(`${e} muss mit https:// beginnen (http nur fuer localhost): "${t}"`);if(n.search||n.hash)throw new Error(`${e} darf weder ? noch # enthalten: "${t}"`);return n}function J(e=process.env){const t=k(e.MCP_OAUTH_RESOURCE?.trim()||P),n=k(e.MCP_OAUTH_ISSUER?.trim()||x),s=y("MCP_OAUTH_RESOURCE",t);y("MCP_OAUTH_ISSUER",n);const r=w(e.MCP_OAUTH_AUDIENCE,/,/),i=e.MCP_OAUTH_JWKS_URL?.trim()??"";let c;i.toLowerCase()==="aus"||i.toLowerCase()==="off"?c=null:i?c=y("MCP_OAUTH_JWKS_URL",i).href:c=`${n}/protocol/openid-connect/certs`;const f=w(e.MCP_OAUTH_SCOPES,/[\s,]+/),u=f.length>0?f:[...D],o=s.pathname==="/"?"":s.pathname,a=o?[`${g}${o}`,g]:[g];return{resource:t,aussteller:n,zielgruppen:r.length>0?r:[t],jwksUrl:c,scopes:u,metadatenUrl:`${s.origin}${a[0]}`,metadatenPfade:a}}function G(e){return{resource:e.resource,authorization_servers:[e.aussteller],bearer_methods_supported:["header"],...e.scopes.length>0?{scopes_supported:[...e.scopes]}:{},resource_name:"cachly",resource_documentation:O}}function v(e,t,n){const s=['Bearer realm="cachly"'];return t&&s.push(`error="${t}"`),t&&n&&s.push(`error_description="${n.replace(/[^\x20-\x7e]|"/g,"")}"`),s.push(`resource_metadata="${e.metadatenUrl}"`),e.scopes.length>0&&s.push(`scope="${e.scopes.join(" ")}"`),s.join(", ")}const W="Authentication required for this tool",Z=4*1024*1024;function V(e){return(Array.isArray(e)?e:[e]).some(n=>!!n&&typeof n=="object"&&n.method==="tools/call")}const C=/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/;function M(e){return C.test(e)}function E(e){try{const t=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));return t&&typeof t=="object"&&!Array.isArray(t)?t:void 0}catch{return}}function $(e){if(!M(e))return;const[t,n,s]=e.split("."),r=E(t),i=E(n);if(!(!r||!i))return{kopf:r,ansprueche:i,signiert:`${t}.${n}`,unterschrift:Buffer.from(s,"base64url")}}const U=30;function j(e,t,n){if(e.iss!==t.aussteller)return{fehler:"aussteller"};if(typeof e.exp!="number"||!Number.isFinite(e.exp))return{fehler:"form"};if(e.exp*1e3+U*1e3<=n)return{fehler:"abgelaufen"};if(typeof e.nbf=="number"&&e.nbf*1e3-U*1e3>n)return{fehler:"noch-nicht-gueltig"};const s=typeof e.aud=="string"?[e.aud]:Array.isArray(e.aud)?e.aud.filter(r=>typeof r=="string"):[];return t.zielgruppen.length>0&&!s.some(r=>t.zielgruppen.includes(r))?{fehler:"zielgruppe"}:typeof e.typ=="string"&&e.typ.toLowerCase()!=="bearer"?{fehler:"typ"}:typeof e.sub!="string"||e.sub===""?{fehler:"inhaber"}:{sub:e.sub,iss:e.iss,bisMs:e.exp*1e3}}function L(e){switch(e){case"aussteller":return"Das Token stammt nicht vom cachly-Anmeldedienst.";case"abgelaufen":return"Die Anmeldung ist abgelaufen. Bitte neu anmelden.";case"noch-nicht-gueltig":return"Das Token ist noch nicht gueltig (Uhrzeit pruefen).";case"zielgruppe":return"Das Token ist nicht fuer diesen MCP-Server ausgestellt (Zielgruppe passt nicht).";case"typ":return"Das ist kein Zugangstoken.";case"inhaber":return"Dem Token fehlt der Inhaber.";case"algorithmus":return"Das Token ist mit einem nicht erlaubten Verfahren unterschrieben.";case"schluessel-unbekannt":return"Der Schluessel, mit dem das Token unterschrieben ist, ist unbekannt.";case"unterschrift":return"Die Unterschrift des Tokens ist ungueltig.";case"jwks-fehlt":return"Der cachly-Anmeldedienst ist gerade nicht erreichbar. Bitte gleich noch einmal versuchen.";default:return"Das Token hat keine gueltige Form."}}class l extends Error{grund;constructor(t){super(L(t)),this.grund=t,this.name="TokenAbgelehnt"}}const b={RS256:{familie:"RS",hash:"sha256"},RS384:{familie:"RS",hash:"sha384"},RS512:{familie:"RS",hash:"sha512"},PS256:{familie:"PS",hash:"sha256"},PS384:{familie:"PS",hash:"sha384"},PS512:{familie:"PS",hash:"sha512"},ES256:{familie:"ES",hash:"sha256"},ES384:{familie:"ES",hash:"sha384"},ES512:{familie:"ES",hash:"sha512"}};function N(e,t,n,s){const r=b[e];if(!r)return!1;const i=t.asymmetricKeyType,c=Buffer.from(n,"utf8");try{return r.familie==="RS"?i==="rsa"&&m(r.hash,c,t,s):r.familie==="PS"?(i==="rsa"||i==="rsa-pss")&&m(r.hash,c,{key:t,padding:S.RSA_PKCS1_PSS_PADDING,saltLength:S.RSA_PSS_SALTLEN_DIGEST},s):i==="ec"&&m(r.hash,c,{key:t,dsaEncoding:"ieee-p1363"},s)}catch{return!1}}const H=10*6e4,B=3e4;function z(e){const t=e?.keys;if(!Array.isArray(t))return[];const n=[];for(const s of t)if(!(!s||typeof s!="object")&&!(s.use!==void 0&&s.use!=="sig")&&!(s.kty!=="RSA"&&s.kty!=="EC"))try{const r=T({key:s,format:"jwk"});n.push({kid:typeof s.kid=="string"?s.kid:void 0,alg:typeof s.alg=="string"?s.alg:void 0,schluessel:r})}catch{}return n}function X(e,t){const n=t?.jetzt??Date.now,s=t?.abruf??(async u=>{const o=await fetch(u,{headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});return{status:o.status,body:o.ok?await o.json().catch(()=>null):null}});let r,i;const c=()=>{if(!e.jwksUrl)return Promise.resolve([]);if(!i){const u=e.jwksUrl;i=s(u).then(o=>{const a=o.status===200?z(o.body):[];if(a.length===0)throw new l("jwks-fehlt");return r={schluessel:a,um:n()},a}).catch(o=>{throw o instanceof l?o:new l("jwks-fehlt")}).finally(()=>{i=void 0})}return i},f=(u,o,a)=>u.find(h=>(o===void 0||h.kid===o)&&(h.alg===void 0||h.alg===a));return{async pruefe(u){const o=$(u);if(!o)throw new l("form");const a=j(o.ansprueche,e,n());if("fehler"in a)throw new l(a.fehler);if(!e.jwksUrl)return a;const h=typeof o.kopf.alg=="string"?o.kopf.alg:"";if(!b[h])throw new l("algorithmus");const d=typeof o.kopf.kid=="string"?o.kopf.kid:void 0,A=r&&n()-r.um<H;let p=A?f(r.schluessel,d,h):void 0;if(!p&&(!r||!A||n()-r.um>=B))try{p=f(await c(),d,h)}catch(R){if(p=r?f(r.schluessel,d,h):void 0,!p)throw R}if(!p)throw new l("schluessel-unbekannt");if(!N(h,p.schluessel,o.signiert,o.unterschrift))throw new l("unterschrift");return a}}}const I=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function q(e){const t=e?.data;if(!Array.isArray(t))return"";const n=r=>{const i=typeof r=="string"?Date.parse(r):NaN;return Number.isFinite(i)?i:-1/0};return t.filter(r=>r&&typeof r.id=="string"&&I.test(r.id)&&r.status==="running").map(r=>({id:r.id.toLowerCase(),t:n(r.created_at)})).sort((r,i)=>i.t-r.t||(r.id<i.id?-1:r.id>i.id?1:0))[0]?.id??""}const Y=["Zu deinem cachly-Konto gehoert noch kein laufendes Brain.",`Lege eines an oder starte es im Dashboard: ${_}`,"Danach geht es hier ohne neue Anmeldung weiter (spaetestens nach einer Minute).","","Your cachly account has no running Brain yet.",`Create or start one in the dashboard: ${_}`].join(`
|
|
2
2
|
`);export{_ as DASHBOARD_URL,B as JWKS_MINDESTABSTAND_MS,H as JWKS_TTL_MS,Y as KEIN_BRAIN_TEXT,Z as MAX_RUMPF_OHNE_ANMELDUNG,O as OAUTH_DOKU,x as OAUTH_VORGABE_ISSUER,P as OAUTH_VORGABE_RESOURCE,D as OAUTH_VORGABE_SCOPES,l as TokenAbgelehnt,U as UHR_SPIELRAUM_S,W as WERKZEUG_BRAUCHT_ANMELDUNG,X as baueJwtPruefer,V as brauchtAnmeldung,J as leseOAuthEinstellungen,j as pruefeAnsprueche,G as schutzMetadaten,M as siehtAusWieJwt,L as tokenFehlerText,N as unterschriftStimmt,q as waehleStandardBrain,v as wwwAuthenticate,$ as zerlegeJwt};
|
package/glama.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://glama.ai/mcp/schemas/server.json",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.276",
|
|
4
4
|
"maintainers": [
|
|
5
5
|
"HeinrichNebula"
|
|
6
6
|
],
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"team-collaboration"
|
|
13
13
|
],
|
|
14
14
|
"keywords": [
|
|
15
|
-
"persistent-memory",
|
|
16
|
-
"ai-memory",
|
|
17
15
|
"mcp-server",
|
|
18
16
|
"claude-code",
|
|
19
17
|
"cursor",
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
"team-brain",
|
|
29
27
|
"brain-from-git",
|
|
30
28
|
"failure-prediction",
|
|
31
|
-
"
|
|
29
|
+
"lesson-crystals",
|
|
32
30
|
"gdpr",
|
|
33
31
|
"free-tier",
|
|
34
32
|
"semantic-cache",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cachly-dev/mcp-server",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.276",
|
|
4
4
|
"mcpName": "io.github.cachly-dev/mcp-server",
|
|
5
|
-
"description": "Explain it once. Every AI knows it. cachly keeps
|
|
5
|
+
"description": "Explain it once. Every AI knows it. cachly keeps your project's rules, decisions and fixes for every AI tool, for you, your team and your company.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/index.js",
|
|
@@ -93,19 +93,10 @@
|
|
|
93
93
|
"mcp",
|
|
94
94
|
"mcp-server",
|
|
95
95
|
"model-context-protocol",
|
|
96
|
-
"ai-memory",
|
|
97
|
-
"agent-memory",
|
|
98
|
-
"memory",
|
|
99
|
-
"persistent-memory",
|
|
100
|
-
"long-term-memory",
|
|
101
|
-
"llm-memory",
|
|
102
|
-
"session-memory",
|
|
103
96
|
"claude-code",
|
|
104
97
|
"claude-code-plugin",
|
|
105
|
-
"claude-code-memory",
|
|
106
98
|
"claude",
|
|
107
99
|
"cursor",
|
|
108
|
-
"cursor-memory",
|
|
109
100
|
"copilot",
|
|
110
101
|
"github-copilot",
|
|
111
102
|
"windsurf",
|
package/server.json
CHANGED
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"url": "https://github.com/cachly-dev/cachly-mcp",
|
|
18
18
|
"source": "github"
|
|
19
19
|
},
|
|
20
|
-
"version": "0.10.
|
|
20
|
+
"version": "0.10.276",
|
|
21
21
|
"packages": [
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "@cachly-dev/mcp-server",
|
|
25
|
-
"version": "0.10.
|
|
25
|
+
"version": "0.10.276",
|
|
26
26
|
"runtimeHint": "npx",
|
|
27
27
|
"transport": {
|
|
28
28
|
"type": "stdio"
|