create-ampless 0.2.0-alpha.24 → 0.2.0-alpha.26
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.
|
@@ -3,6 +3,7 @@ import { dirname, resolve } from 'node:path'
|
|
|
3
3
|
import { a, defineData, type ClientSchema } from '@aws-amplify/backend'
|
|
4
4
|
import { amplessSchemaModels, defaultAuthorizationModes } from '@ampless/backend'
|
|
5
5
|
import { userAdmin } from '../functions/user-admin/resource.js'
|
|
6
|
+
import { mcpHandler } from '../functions/mcp-handler/resource.js'
|
|
6
7
|
import { customSchemaModels } from './resource.custom.js'
|
|
7
8
|
|
|
8
9
|
// AppSync's `a.handler.custom({ entry })` paths are resolved by CDK
|
|
@@ -27,7 +28,15 @@ const resolverPaths = {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const schema = a.schema({
|
|
30
|
-
...amplessSchemaModels(a, {
|
|
31
|
+
...amplessSchemaModels(a, {
|
|
32
|
+
resolverPaths,
|
|
33
|
+
userAdminFunction: userAdmin,
|
|
34
|
+
// Grants the MCP Lambda IAM auth on Post / PostTag so the HTTP
|
|
35
|
+
// transport can dispatch the post CRUD tools without sharing a
|
|
36
|
+
// Cognito identity or API key. See `@ampless/backend` data/index.ts
|
|
37
|
+
// for the exact authorization clause.
|
|
38
|
+
mcpHandlerFunction: mcpHandler,
|
|
39
|
+
}),
|
|
31
40
|
...customSchemaModels(a),
|
|
32
41
|
})
|
|
33
42
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@ampless/plugin-seo": "^0.2.0-alpha.6",
|
|
28
28
|
"@ampless/plugin-webhook": "^0.2.0-alpha.6",
|
|
29
29
|
"@ampless/admin": "^0.2.0-alpha.21",
|
|
30
|
-
"@ampless/backend": "^0.2.0-alpha.
|
|
30
|
+
"@ampless/backend": "^0.2.0-alpha.11",
|
|
31
31
|
"@ampless/runtime": "^0.2.0-alpha.9",
|
|
32
32
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
33
33
|
"ampless": "^0.2.0-alpha.6",
|