@softure-ai/mcp-access 0.1.5 → 0.1.6
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/CHANGELOG.md +9 -0
- package/dist/index.js +1 -1
- package/dist/next/context.js +2 -2
- package/dist/next/context.js.map +1 -1
- package/module.json +1 -1
- package/package.json +6 -2
- package/src/index.ts +1 -1
- package/src/next/context.ts +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Newest first. Each version lists what changed for an app that uses `@softure-ai/mcp-access`. When an app has run a version in
|
|
4
|
+
production, the version gets a line `verified in: <app>@<commit>` ([docs/05](../../docs/05-adoption-playbook.md),
|
|
5
|
+
"Definition of done"). Versions before the first one below are described in their GitHub Releases (`mcp-access@x.y.z`).
|
|
6
|
+
|
|
7
|
+
## 0.1.6
|
|
8
|
+
|
|
9
|
+
- Adapters use the configured database handle; `@softure-ai/ui` is a peer dependency.
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export const MCP_RATE_LIMIT_BUCKETS = {
|
|
|
23
23
|
export const mcpAccess = defineModule({
|
|
24
24
|
manifest: {
|
|
25
25
|
id: MODULE_ID,
|
|
26
|
-
version: "0.1.
|
|
26
|
+
version: "0.1.6",
|
|
27
27
|
dependsOn: { security: "^0.1.0", auth: "^0.1.0" },
|
|
28
28
|
dbSchema: "mcp",
|
|
29
29
|
tables: ["access_tokens"],
|
package/dist/next/context.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// handle and the wall clock.
|
|
3
3
|
import { systemClock } from "@softure-ai/core";
|
|
4
4
|
import { getSoftureConfig } from "@softure-ai/core/next";
|
|
5
|
-
import {
|
|
5
|
+
import { getConfiguredDatabase } from "@softure-ai/db";
|
|
6
6
|
export async function getMcpAccessContext(config = getSoftureConfig()) {
|
|
7
7
|
if (config.database === null) {
|
|
8
8
|
throw new Error("@softure-ai/mcp-access: softure.config.ts has no database; mcp-access needs one");
|
|
9
9
|
}
|
|
10
|
-
const { db } = await
|
|
10
|
+
const { db } = await getConfiguredDatabase(config.database);
|
|
11
11
|
return { db, clock: systemClock, config };
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=context.js.map
|
package/dist/next/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/next/context.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,6BAA6B;AAC7B,OAAO,EAAE,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/next/context.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,6BAA6B;AAC7B,OAAO,EAAE,WAAW,EAAsB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,SAAwB,gBAAgB,EAAE;IAClF,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,iFAAiF,CAAC,CAAC;IACrG,CAAC;IACD,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC5D,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;AAC5C,CAAC"}
|
package/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softure-ai/mcp-access",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "SOFTURE AI MCP access module: hashed, scoped, expiring access tokens, a rate-limited Bearer endpoint around the app's MCP server factory, and a token page with client setup instructions for Next.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
18
|
+
"CHANGELOG.md",
|
|
18
19
|
"src",
|
|
19
20
|
"!src/**/*.test.ts",
|
|
20
21
|
"!src/**/*.test.tsx",
|
|
@@ -55,13 +56,16 @@
|
|
|
55
56
|
"@softure-ai/core": "^0.1.0",
|
|
56
57
|
"@softure-ai/db": "^0.1.0",
|
|
57
58
|
"@softure-ai/security": "^0.1.0",
|
|
58
|
-
"@softure-ai/ui": "^0.1.0",
|
|
59
59
|
"zod": "^4.6.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
63
|
+
"@softure-ai/ui": "^0.1.0",
|
|
63
64
|
"drizzle-orm": "^0.45.2",
|
|
64
65
|
"next": "^16.0.0",
|
|
65
66
|
"react": "^19.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@softure-ai/ui": "^0.1.7"
|
|
66
70
|
}
|
|
67
71
|
}
|
package/src/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ export const MCP_RATE_LIMIT_BUCKETS = {
|
|
|
26
26
|
export const mcpAccess = defineModule({
|
|
27
27
|
manifest: {
|
|
28
28
|
id: MODULE_ID,
|
|
29
|
-
version: "0.1.
|
|
29
|
+
version: "0.1.6",
|
|
30
30
|
dependsOn: { security: "^0.1.0", auth: "^0.1.0" },
|
|
31
31
|
dbSchema: "mcp",
|
|
32
32
|
tables: ["access_tokens"],
|
package/src/next/context.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// handle and the wall clock.
|
|
3
3
|
import { systemClock, type SoftureConfig } from "@softure-ai/core";
|
|
4
4
|
import { getSoftureConfig } from "@softure-ai/core/next";
|
|
5
|
-
import {
|
|
5
|
+
import { getConfiguredDatabase } from "@softure-ai/db";
|
|
6
6
|
import type { McpAccessContext } from "../server/tokens.js";
|
|
7
7
|
|
|
8
8
|
export async function getMcpAccessContext(config: SoftureConfig = getSoftureConfig()): Promise<McpAccessContext> {
|
|
9
9
|
if (config.database === null) {
|
|
10
10
|
throw new Error("@softure-ai/mcp-access: softure.config.ts has no database; mcp-access needs one");
|
|
11
11
|
}
|
|
12
|
-
const { db } = await
|
|
12
|
+
const { db } = await getConfiguredDatabase(config.database);
|
|
13
13
|
return { db, clock: systemClock, config };
|
|
14
14
|
}
|