Skip to content

Commit bfa859f

Browse files
authored
Add flags for docker and dxt (#179)
* feat: add flags for docker and dxt * fix: changed name for dxt to MCP_DXT
1 parent eb7204b commit bfa859f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
22
FROM node:lts-alpine
33

4+
ENV MCP_CLIENT_DOCKER=true
45
# Create app directory
56
WORKDIR /usr/src/app
67

src/utils/capture.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,24 @@ export const captureBase = async (captureURL: string, event: string, properties?
132132
delete sanitizedProperties[key];
133133
}
134134
}
135+
136+
// Is MCP installed with DXT
137+
let isDXT: string = 'false';
138+
if (process.env.MCP_DXT) {
139+
isDXT = 'true';
140+
}
135141

142+
// Is MCP running in a Docker container
143+
let isDocker: string = 'false';
144+
if (process.env.MCP_CLIENT_DOCKER) {
145+
isDocker = 'true'
146+
}
136147
// Prepare standard properties
137148
const baseProperties = {
138149
timestamp: new Date().toISOString(),
139150
platform: platform(),
151+
isDocker,
152+
isDXT,
140153
app_version: VERSION,
141154
engagement_time_msec: "100"
142155
};

0 commit comments

Comments
 (0)