feat(ql3): add bounded copilot mcp surface

This commit is contained in:
whyour
2026-08-16 03:04:12 +08:00
parent 0e85cbdeb6
commit 58025ede55
21 changed files with 1620 additions and 33 deletions
+1
View File
@@ -245,6 +245,7 @@ const EXPECTED_PACKAGE_DEPENDENCIES = Object.freeze({
}),
'packages/ql3-cluster-admin': Object.freeze({
dependencies: Object.freeze({
'@modelcontextprotocol/server': '2.0.0',
'@qinglong/ai': 'workspace:*',
'@qinglong/cluster-postgres': 'workspace:*',
'@qinglong/runtime-core': 'workspace:*',
+5
View File
@@ -15,6 +15,7 @@ const EXPECTED_EXTERNAL_DEPENDENCIES = Object.freeze({
const EXPECTED_ADMIN_EXTERNAL_DEPENDENCIES = Object.freeze({
'@kubernetes/client-node': '1.4.0',
'@modelcontextprotocol/server': '2.0.0',
'drizzle-orm': '0.45.2',
pg: '8.22.0',
semver: '7.7.4',
@@ -357,6 +358,10 @@ function assertExactExternalClosure(readFile, root, findings) {
);
if (
adminManifest.bin?.['ql3-cluster-admin'] !== 'dist/product-cli/cli.js' ||
adminManifest.bin?.['ql3-copilot-mcp'] !==
'dist/copilot-mcp/cli.js' ||
adminManifest.exports?.['./copilot-mcp']?.require !==
'./dist/copilot-mcp/server.js' ||
adminManifest.bin?.['ql3-plugin-package-recover'] !==
'dist/plugin-package/recovery/pluginPackageRecoveryCli.js' ||
adminManifest.bin?.['ql3-plugin-package-manage'] !==