@backstage-community/plugin-mcp-chat 0.3.1 → 0.4.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +6 -3
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentType } from 'react';
|
|
4
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* MCP Chat plugin.
|
|
@@ -18,7 +19,9 @@ declare const McpChatPage: () => react_jsx_runtime.JSX.Element;
|
|
|
18
19
|
* MCP Chat Icon
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
|
-
declare const MCPChatIcon:
|
|
22
|
+
declare const MCPChatIcon: ComponentType<{
|
|
23
|
+
fontSize?: 'medium' | 'large' | 'small' | 'inherit';
|
|
24
|
+
}>;
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* MCP server connection types
|
|
@@ -182,7 +185,7 @@ interface McpChatApi {
|
|
|
182
185
|
/**
|
|
183
186
|
* @public
|
|
184
187
|
*/
|
|
185
|
-
declare const mcpChatApiRef:
|
|
188
|
+
declare const mcpChatApiRef: _backstage_frontend_plugin_api.ApiRef<McpChatApi>;
|
|
186
189
|
|
|
187
190
|
export { MCPChatIcon, MCPServerType, McpChatPage, mcpChatApiRef, mcpChatPlugin };
|
|
188
191
|
export type { ChatMessage, ChatResponse, ConversationRecord, ConversationsResponse, MCPServer, MCPServerStatusData, McpChatApi, Provider, ProviderConnectionStatus, ProviderStatusData, Tool, ToolsResponse };
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createPlugin,\n createRoutableExtension,\n createApiFactory,\n discoveryApiRef,\n fetchApiRef,\n
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ComponentType } from 'react';\nimport {\n createPlugin,\n createRoutableExtension,\n createApiFactory,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef } from './routes';\nimport { mcpChatApiRef } from './api';\nimport { McpChat } from './api/McpChatApi';\nimport { BotIconComponent } from './components/BotIcon';\n\n/**\n * MCP Chat plugin.\n @public\n */\n\nexport const mcpChatPlugin = createPlugin({\n id: 'mcp-chat',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: mcpChatApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new McpChat({ discoveryApi, fetchApi }),\n }),\n ],\n});\n\n/**\n * MCP Chat Page\n * @public\n */\nexport const McpChatPage = mcpChatPlugin.provide(\n createRoutableExtension({\n name: 'McpChatPage',\n component: () => import('./components/ChatPage').then(m => m.ChatPage),\n mountPoint: rootRouteRef,\n }),\n);\n\n/**\n * MCP Chat Icon\n * @public\n */\nexport const MCPChatIcon: ComponentType<{\n fontSize?: 'medium' | 'large' | 'small' | 'inherit';\n}> = BotIconComponent;\n"],"names":[],"mappings":";;;;;;AAkCO,MAAM,gBAAgB,YAAA,CAAa;AAAA,EACxC,EAAA,EAAI,UAAA;AAAA,EACJ,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,gBAAA,CAAiB;AAAA,MACf,GAAA,EAAK,aAAA;AAAA,MACL,IAAA,EAAM;AAAA,QACJ,YAAA,EAAc,eAAA;AAAA,QACd,QAAA,EAAU;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,OAAA,CAAQ,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,KACzC;AAAA;AAEL,CAAC;AAMM,MAAM,cAAc,aAAA,CAAc,OAAA;AAAA,EACvC,uBAAA,CAAwB;AAAA,IACtB,IAAA,EAAM,aAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,oCAAuB,EAAE,IAAA,CAAK,CAAA,CAAA,KAAK,EAAE,QAAQ,CAAA;AAAA,IACrE,UAAA,EAAY;AAAA,GACb;AACH;AAMO,MAAM,WAAA,GAER;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-mcp-chat",
|
|
3
3
|
"description": "A Backstage plugin that provides a chat interface for interacting with the MCP Servers.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"postpack": "backstage-cli package postpack"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@backstage/core-components": "^0.
|
|
34
|
-
"@backstage/core-plugin-api": "^1.
|
|
33
|
+
"@backstage/core-components": "^0.18.7",
|
|
34
|
+
"@backstage/core-plugin-api": "^1.12.3",
|
|
35
35
|
"@backstage/errors": "^1.2.7",
|
|
36
|
-
"@backstage/theme": "^0.
|
|
36
|
+
"@backstage/theme": "^0.7.2",
|
|
37
37
|
"@mui/icons-material": "^5.17.1",
|
|
38
38
|
"@mui/material": "^5.17.1",
|
|
39
39
|
"react-markdown": "^10.1.0",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"react-router-dom": "^6.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@backstage/cli": "^0.
|
|
51
|
-
"@backstage/dev-utils": "^1.1.
|
|
52
|
-
"@backstage/test-utils": "^1.7.
|
|
50
|
+
"@backstage/cli": "^0.35.4",
|
|
51
|
+
"@backstage/dev-utils": "^1.1.20",
|
|
52
|
+
"@backstage/test-utils": "^1.7.15",
|
|
53
53
|
"@testing-library/dom": "^10.4.1",
|
|
54
54
|
"@testing-library/jest-dom": "^6.0.0",
|
|
55
55
|
"@testing-library/react": "^16.0.0",
|