@webiny/mcp 6.0.0-rc.6 → 6.0.0-rc.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/mcp",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
19
|
-
"@webiny/cli-core": "6.0.0-rc.
|
|
19
|
+
"@webiny/cli-core": "6.0.0-rc.7",
|
|
20
20
|
"front-matter": "4.0.2",
|
|
21
21
|
"react": "18.2.0",
|
|
22
22
|
"zod": "3.25.76"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/lodash": "4.17.24",
|
|
26
26
|
"@types/ncp": "2.0.8",
|
|
27
|
-
"@webiny/build-tools": "6.0.0-rc.
|
|
27
|
+
"@webiny/build-tools": "6.0.0-rc.7",
|
|
28
28
|
"typescript": "5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9c6892640a45679ff521e25cd6587dff57393a2e"
|
|
49
49
|
}
|
|
@@ -13,7 +13,7 @@ description: >
|
|
|
13
13
|
|
|
14
14
|
## TL;DR
|
|
15
15
|
|
|
16
|
-
Webiny supports Auth0 as an external identity provider (IDP) to replace the default Cognito authentication.
|
|
16
|
+
Webiny supports Auth0 as an external identity provider (IDP) to replace the default Cognito authentication. First, install the `@webiny/auth0` package (using the same version as the `webiny` dependency in `package.json`). Then create two files: an API config class that maps Auth0 JWT claims to Webiny identity data (`Auth0IdpConfig`), and a React extension component (`<Auth0 />`) that wires issuer URL, client ID, and the API config path. Register the extension in `webiny.config.tsx`, set two environment variables (`AUTH0_ISSUER`, `AUTH0_CLIENT_ID`), and deploy.
|
|
17
17
|
|
|
18
18
|
## Pattern / Core Concept
|
|
19
19
|
|
|
@@ -71,6 +71,18 @@ The `<Auth0 />` component (from `@webiny/auth0`) is a `defineExtension` that:
|
|
|
71
71
|
|
|
72
72
|
### Example 1: Basic Auth0 Configuration
|
|
73
73
|
|
|
74
|
+
**Step 0: Install the `@webiny/auth0` dependency**
|
|
75
|
+
|
|
76
|
+
`@webiny/auth0` is an optional dependency. Add it to `package.json` using the same version as the `webiny` dependency, then install:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Check the webiny version in package.json, then add @webiny/auth0 with the same version
|
|
80
|
+
# For example, if "webiny": "^0.0.0-unstable.xxx":
|
|
81
|
+
yarn add @webiny/auth0@^0.0.0-unstable.xxx
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> **Important:** After adding the dependency, tell the user to run `yarn` to install it. Do NOT run `yarn` automatically — let the user do it.
|
|
85
|
+
|
|
74
86
|
**Step 1: Create the API config**
|
|
75
87
|
|
|
76
88
|
Create `extensions/auth0/MyAuth0Config.ts`:
|
|
@@ -13,7 +13,7 @@ description: >
|
|
|
13
13
|
|
|
14
14
|
## TL;DR
|
|
15
15
|
|
|
16
|
-
Webiny supports Okta as an external identity provider (IDP) to replace the default Cognito authentication.
|
|
16
|
+
Webiny supports Okta as an external identity provider (IDP) to replace the default Cognito authentication. First, install the `@webiny/okta` package (using the same version as the `webiny` dependency in `package.json`). Then create two files: an API config class that maps Okta JWT claims to Webiny identity data (`OktaIdpConfig`), and a React extension component (`<Okta />`) that wires issuer URL, client ID, and the API config path. Register the extension in `webiny.config.tsx`, set two environment variables (`OKTA_ISSUER`, `OKTA_CLIENT_ID`), and deploy.
|
|
17
17
|
|
|
18
18
|
## Pattern / Core Concept
|
|
19
19
|
|
|
@@ -71,6 +71,18 @@ The `<Okta />` component (from `@webiny/okta`) is a `defineExtension` that:
|
|
|
71
71
|
|
|
72
72
|
### Example 1: Basic Okta Configuration
|
|
73
73
|
|
|
74
|
+
**Step 0: Install the `@webiny/okta` dependency**
|
|
75
|
+
|
|
76
|
+
`@webiny/okta` is an optional dependency. Add it to `package.json` using the same version as the `webiny` dependency, then install:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Check the webiny version in package.json, then add @webiny/okta with the same version
|
|
80
|
+
# For example, if "webiny": "^0.0.0-unstable.xxx":
|
|
81
|
+
yarn add @webiny/okta@^0.0.0-unstable.xxx
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> **Important:** After adding the dependency, tell the user to run `yarn` to install it. Do NOT run `yarn` automatically — let the user do it.
|
|
85
|
+
|
|
74
86
|
**Step 1: Create the API config**
|
|
75
87
|
|
|
76
88
|
Create `extensions/okta/MyOktaConfig.ts`:
|