@@ -53,25 +53,85 @@ export type ServerEvent = TelemetryEvent<ServerEventProperties>;
53
53
* Interface for static properties, they can be fetched once and reused.
54
54
*/
55
55
export type CommonStaticProperties = {
56
+ /**
57
+ * The version of the MCP server (as read from package.json).
58
+ */
56
59
mcp_server_version : string ;
60
+
61
+ /**
62
+ * The name of the MCP server (as read from package.json).
63
+ */
57
64
mcp_server_name : string ;
65
+
66
+ /**
67
+ * The platform/OS the MCP server is running on.
68
+ */
58
69
platform : string ;
70
+
71
+ /**
72
+ * The architecture of the OS the server is running on.
73
+ */
59
74
arch : string ;
75
+
76
+ /**
77
+ * Same as platform.
78
+ */
60
79
os_type : string ;
80
+
81
+ /**
82
+ * The version of the OS the server is running on.
83
+ */
61
84
os_version ?: string ;
62
85
} ;
63
86
64
87
/**
65
88
* Common properties for all events that might change.
66
89
*/
67
90
export type CommonProperties = {
91
+ /**
92
+ * The device id - will be populated with the machine id when it resolves.
93
+ */
68
94
device_id ?: string ;
95
+
96
+ /**
97
+ * A boolean indicating whether the server is running in a container environment.
98
+ */
69
99
is_container_env ?: boolean ;
100
+
101
+ /**
102
+ * The version of the MCP client as reported by the client on session establishment.
103
+ */
70
104
mcp_client_version ?: string ;
105
+
106
+ /**
107
+ * The name of the MCP client as reported by the client on session establishment.
108
+ */
71
109
mcp_client_name ?: string ;
110
+
111
+ /**
112
+ * The transport protocol used by the MCP server.
113
+ */
72
114
transport ?: "stdio" | "http" ;
115
+
116
+ /**
117
+ * A boolean indicating whether Atlas credentials are configured.
118
+ */
73
119
config_atlas_auth ?: TelemetryBoolSet ;
120
+
121
+ /**
122
+ * A boolean indicating whether a connection string is configured.
123
+ */
74
124
config_connection_string ?: TelemetryBoolSet ;
125
+
126
+ /**
127
+ * The randomly generated session id.
128
+ */
75
129
session_id ?: string ;
130
+
131
+ /**
132
+ * The way the MCP server is hosted - e.g. standalone for a server running independently or
133
+ * "vscode" if embedded in the VSCode extension. This field should be populated by the hosting
134
+ * application to differentiate events coming from an MCP server it's hosting.
135
+ */
76
136
hosting_mode ?: string ;
77
137
} & CommonStaticProperties ;
0 commit comments