@lexq/cli 1.1.2 → 1.1.3
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/README.md +1 -1
- package/dist/index.js +16 -1
- package/dist/mcp/register.d.ts +11 -2
- package/dist/mcp/register.js +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -280,7 +280,7 @@ pnpm enums:check # Generated enums match the engine contract
|
|
|
280
280
|
pnpm prose:check # Numbers and code tables in prose match the contract
|
|
281
281
|
pnpm ab-key:check # Tool descriptions still name the A/B traffic key
|
|
282
282
|
pnpm surface:check # Nothing internal reached a public file
|
|
283
|
-
pnpm registry:check # server.json agrees with package.json
|
|
283
|
+
pnpm registry:check # server.json agrees with package.json and src/mcp/server-info.json
|
|
284
284
|
pnpm schemas:check # tools/list matches the recorded snapshot (needs a build)
|
|
285
285
|
pnpm test:fact-key # Fact key grammar
|
|
286
286
|
pnpm test:decimals # Metric precision display
|
package/dist/index.js
CHANGED
|
@@ -3562,6 +3562,20 @@ function formatUnregisteredFactWarning(meta) {
|
|
|
3562
3562
|
].join("\n");
|
|
3563
3563
|
}
|
|
3564
3564
|
|
|
3565
|
+
// src/mcp/server-info.json
|
|
3566
|
+
var server_info_default = {
|
|
3567
|
+
title: "LexQ",
|
|
3568
|
+
description: "The Decision Operations Platform for engineering teams",
|
|
3569
|
+
websiteUrl: "https://lexq.io",
|
|
3570
|
+
icons: [
|
|
3571
|
+
{
|
|
3572
|
+
src: "https://lexq.io/logo.png",
|
|
3573
|
+
mimeType: "image/png",
|
|
3574
|
+
sizes: ["1024x1024"]
|
|
3575
|
+
}
|
|
3576
|
+
]
|
|
3577
|
+
};
|
|
3578
|
+
|
|
3565
3579
|
// src/mcp/tools/status.ts
|
|
3566
3580
|
import { z } from "zod";
|
|
3567
3581
|
function registerStatusTools(server, callApi) {
|
|
@@ -5043,6 +5057,7 @@ function registerAllTools(server, callApi) {
|
|
|
5043
5057
|
registerDomainTemplateTools(server, callApi);
|
|
5044
5058
|
registerWebhookSubscriptionTools(server, callApi);
|
|
5045
5059
|
}
|
|
5060
|
+
var SERVER_INFO = { name: "lexq", ...server_info_default };
|
|
5046
5061
|
|
|
5047
5062
|
// src/mcp/server.ts
|
|
5048
5063
|
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
@@ -5059,7 +5074,7 @@ function startMcpServer() {
|
|
|
5059
5074
|
const callApi = createCallApiFromConfig();
|
|
5060
5075
|
serveStdio(
|
|
5061
5076
|
() => {
|
|
5062
|
-
const server = new McpServer({
|
|
5077
|
+
const server = new McpServer({ ...SERVER_INFO, version });
|
|
5063
5078
|
registerAllTools(server, callApi);
|
|
5064
5079
|
return server;
|
|
5065
5080
|
},
|
package/dist/mcp/register.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/server';
|
|
1
|
+
import { Implementation, McpServer } from '@modelcontextprotocol/server';
|
|
2
2
|
import { LosslessNumber } from 'lossless-json';
|
|
3
3
|
export { LosslessNumber } from 'lossless-json';
|
|
4
4
|
|
|
@@ -63,5 +63,14 @@ declare const isLosslessNumber: (value: unknown) => value is LosslessNumber;
|
|
|
63
63
|
* @param callApi - API caller function (config-based for CLI, Bearer-based for HTTP)
|
|
64
64
|
*/
|
|
65
65
|
declare function registerAllTools(server: McpServer, callApi: CallApi): void;
|
|
66
|
+
/**
|
|
67
|
+
* How the server introduces itself when a client connects: a title, a description and an
|
|
68
|
+
* icon the client can show, and a link to its website. A host serving these tools adds its
|
|
69
|
+
* own version.
|
|
70
|
+
*
|
|
71
|
+
* The values are kept in server-info.json rather than here because server.json lists them
|
|
72
|
+
* again for the MCP Registry, and `pnpm registry:check` has to read both without a build.
|
|
73
|
+
*/
|
|
74
|
+
declare const SERVER_INFO: Omit<Implementation, 'version'>;
|
|
66
75
|
|
|
67
|
-
export { ApiError, type CallApi, type McpToolResult, formatUnregisteredFactWarning, isLosslessNumber, paginationParams, parseJson, registerAllTools, stringifyJson };
|
|
76
|
+
export { ApiError, type CallApi, type McpToolResult, SERVER_INFO, formatUnregisteredFactWarning, isLosslessNumber, paginationParams, parseJson, registerAllTools, stringifyJson };
|
package/dist/mcp/register.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
// src/mcp/server-info.json
|
|
2
|
+
var server_info_default = {
|
|
3
|
+
title: "LexQ",
|
|
4
|
+
description: "The Decision Operations Platform for engineering teams",
|
|
5
|
+
websiteUrl: "https://lexq.io",
|
|
6
|
+
icons: [
|
|
7
|
+
{
|
|
8
|
+
src: "https://lexq.io/logo.png",
|
|
9
|
+
mimeType: "image/png",
|
|
10
|
+
sizes: ["1024x1024"]
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
};
|
|
14
|
+
|
|
1
15
|
// src/mcp/tools/status.ts
|
|
2
16
|
import { z } from "zod";
|
|
3
17
|
function registerStatusTools(server, callApi) {
|
|
@@ -1591,9 +1605,11 @@ function registerAllTools(server, callApi) {
|
|
|
1591
1605
|
registerDomainTemplateTools(server, callApi);
|
|
1592
1606
|
registerWebhookSubscriptionTools(server, callApi);
|
|
1593
1607
|
}
|
|
1608
|
+
var SERVER_INFO = { name: "lexq", ...server_info_default };
|
|
1594
1609
|
export {
|
|
1595
1610
|
ApiError,
|
|
1596
1611
|
LosslessNumber,
|
|
1612
|
+
SERVER_INFO,
|
|
1597
1613
|
formatUnregisteredFactWarning,
|
|
1598
1614
|
isLosslessNumber,
|
|
1599
1615
|
paginationParams,
|
package/package.json
CHANGED