@backstage/plugin-mcp-actions-backend 0.1.3-next.1 → 0.1.4-next.0

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +25 -0
  3. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @backstage/plugin-mcp-actions-backend
2
2
 
3
+ ## 0.1.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-defaults@0.13.0-next.0
9
+ - @backstage/backend-plugin-api@1.4.3
10
+ - @backstage/catalog-client@1.12.0
11
+ - @backstage/errors@1.2.7
12
+ - @backstage/types@1.2.2
13
+ - @backstage/plugin-catalog-node@1.19.0
14
+
15
+ ## 0.1.3
16
+
17
+ ### Patch Changes
18
+
19
+ - 1d47bf3: Proxy `/.well-known/oauth-authorization-server` to `/.well-known/openid-configuration` on `auth-backend` when `auth.experimentalDynamicClientRegistration.enabled` is enabled.
20
+ - 7f2a4a0: Updating docs
21
+ - d08b0c9: The MCP backend will now convert known Backstage errors into textual responses with `isError: true`.
22
+ The error message can be useful for an LLM to understand and maybe give back to the user.
23
+ Previously all errors where thrown out to `@modelcontextprotocol/sdk` which causes a generic 500.
24
+ - Updated dependencies
25
+ - @backstage/backend-defaults@0.12.1
26
+ - @backstage/plugin-catalog-node@1.19.0
27
+ - @backstage/catalog-client@1.12.0
28
+ - @backstage/types@1.2.2
29
+ - @backstage/backend-plugin-api@1.4.3
30
+
3
31
  ## 0.1.3-next.1
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -103,6 +103,31 @@ node -p 'require("crypto").randomBytes(24).toString("base64")'
103
103
 
104
104
  Set the `MCP_TOKEN` environment variable with this token, and configure your MCP client to use it in the [Authorization header](#configuring-mcp-clients)
105
105
 
106
+ #### Experimental: Dynamic Client Registration
107
+
108
+ > [!CAUTION]
109
+ > This is highly experimental, proceed with caution.
110
+
111
+ You can configure the `auth-backend` and install the `auth` frontend plugin in order to enable [Dynamic Client Registration](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization#dynamic-client-registration) with MCP Clients.
112
+
113
+ This means that there is no token required in your MCP settings, and a token will be given to a client that requests a token on your behalf. When adding the MCP server to an MCP client like Cursor or Claude, a popup that requires your approval will be opened in your Backstage instance, which is powered by the `auth` plugin.
114
+
115
+ You will need to add the `@backstage/plugin-auth` package to your `app` `package.json`, and enable the following config in `app-config.yaml`:
116
+
117
+ ```yaml
118
+ auth:
119
+ experimentalDynamicClientRegistration:
120
+ # enable the feature
121
+ enabled: true
122
+
123
+ # this is optional and will default to *, but you can limit the callback URLs which are valid for added security
124
+ allowedRedirectUriPatterns:
125
+ - cursor://*
126
+ ```
127
+
128
+ > [!NOTE]
129
+ > The `@backstage/plugin-auth` package is currently only available in the new frontend system.
130
+
106
131
  ## Configuring MCP Clients
107
132
 
108
133
  The MCP server supports both Server-Sent Events (SSE) and Streamable HTTP protocols.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-mcp-actions-backend",
3
- "version": "0.1.3-next.1",
3
+ "version": "0.1.4-next.0",
4
4
  "backstage": {
5
5
  "role": "backend-plugin",
6
6
  "pluginId": "mcp-actions",
@@ -37,20 +37,20 @@
37
37
  "test": "backstage-cli package test"
38
38
  },
39
39
  "dependencies": {
40
- "@backstage/backend-defaults": "0.12.1-next.1",
41
- "@backstage/backend-plugin-api": "1.4.3-next.0",
42
- "@backstage/catalog-client": "1.12.0-next.0",
40
+ "@backstage/backend-defaults": "0.13.0-next.0",
41
+ "@backstage/backend-plugin-api": "1.4.3",
42
+ "@backstage/catalog-client": "1.12.0",
43
43
  "@backstage/errors": "1.2.7",
44
- "@backstage/plugin-catalog-node": "1.19.0-next.1",
45
- "@backstage/types": "1.2.1",
44
+ "@backstage/plugin-catalog-node": "1.19.0",
45
+ "@backstage/types": "1.2.2",
46
46
  "@modelcontextprotocol/sdk": "^1.12.3",
47
47
  "express": "^4.17.1",
48
48
  "express-promise-router": "^4.1.0",
49
49
  "zod": "^3.22.4"
50
50
  },
51
51
  "devDependencies": {
52
- "@backstage/backend-test-utils": "1.9.0-next.1",
53
- "@backstage/cli": "0.34.2-next.2",
52
+ "@backstage/backend-test-utils": "1.9.1-next.0",
53
+ "@backstage/cli": "0.34.4-next.0",
54
54
  "@types/express": "^4.17.6"
55
55
  },
56
56
  "typesVersions": {