@taiga-ai/mcp-server 0.2.3-dev.60 → 0.2.3-dev.62
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/dist/index.js
CHANGED
|
@@ -3,7 +3,24 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../../packages/feature-flags/dist/index.js
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Resolve the full flag set for an environment. THE single place the
|
|
8
|
+
* per-environment rules live. Frozen so a resolved set cannot be mutated at
|
|
9
|
+
* runtime — changing a flag is a source edit here, not an assignment in an app.
|
|
10
|
+
*/
|
|
11
|
+
function resolveFeatureFlags(env) {
|
|
12
|
+
return Object.freeze({
|
|
13
|
+
skills: false,
|
|
14
|
+
deployments: env !== "prod"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Safe-default snapshot, resolved as `prod` (every release toggle off). Prefer
|
|
19
|
+
* {@link resolveFeatureFlags} with the app's real environment. Retained for
|
|
20
|
+
* consumers that have no environment of their own — notably the published MCP
|
|
21
|
+
* server — so an unconfigured runtime never leaks a work-in-progress feature.
|
|
22
|
+
*/
|
|
23
|
+
const featureFlags = resolveFeatureFlags("prod");
|
|
7
24
|
//#endregion
|
|
8
25
|
//#region src/client.ts
|
|
9
26
|
/**
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|