@openrouter/mcp 1.1.0 → 1.1.2
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 +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -112,11 +112,15 @@ const store = new InMemoryMCPCacheStore(); // or your own Redis/DB-backed MCPCac
|
|
|
112
112
|
const mcp = await createMCPTools({
|
|
113
113
|
url,
|
|
114
114
|
auth,
|
|
115
|
-
cache: { store, key: `mcp:${userId}` },
|
|
115
|
+
cache: { store, key: `mcp:${userId}:${url}` },
|
|
116
116
|
staleness: { maxAgeMs: 60 * 60 * 1000 },
|
|
117
117
|
});
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
+
Give each server its own key: include the server URL alongside the principal. An entry is only
|
|
121
|
+
reused for the URL it was written for, so servers sharing one key would evict each other on every
|
|
122
|
+
call.
|
|
123
|
+
|
|
120
124
|
> **Security:** `cacheCredentials` is `false` by default. When enabled, snapshots contain bearer
|
|
121
125
|
> tokens/headers — treat the store as a secret store and namespace cache keys by principal in
|
|
122
126
|
> multi-tenant setups.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@modelcontextprotocol/client": "^2.0.0",
|
|
62
|
-
"@openrouter/agent": "0.
|
|
62
|
+
"@openrouter/agent": "1.0.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"lint": "biome check src tests",
|