mirror of
https://github.com/ChromeDevTools/chrome-devtools-mcp.git
synced 2026-09-28 11:22:57 +08:00
feat(telemetry): report hermes client usage. (#2703)
This commit is contained in:
@@ -116,6 +116,8 @@ export class ClearcutLogger {
|
||||
this.#mcpClient = McpClient.MCP_CLIENT_GROK;
|
||||
} else if (lowerName.includes('copilot')) {
|
||||
this.#mcpClient = McpClient.MCP_CLIENT_GITHUB_COPILOT;
|
||||
} else if (lowerName.includes('hermes-agent')) {
|
||||
this.#mcpClient = McpClient.MCP_CLIENT_HERMES;
|
||||
} else {
|
||||
this.#mcpClient = McpClient.MCP_CLIENT_OTHER;
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ export enum McpClient {
|
||||
MCP_CLIENT_OPENCODE = 9,
|
||||
MCP_CLIENT_CLAUDE_DESKTOP = 10,
|
||||
MCP_CLIENT_GITHUB_COPILOT = 11,
|
||||
MCP_CLIENT_HERMES = 12,
|
||||
MCP_CLIENT_OTHER = 3,
|
||||
}
|
||||
|
||||
|
||||
@@ -140,6 +140,7 @@ describe('ClearcutLogger', () => {
|
||||
{name: 'github-copilot-developer', expected: 11}, // MCP_CLIENT_GITHUB_COPILOT
|
||||
{name: 'copilot-intellij', expected: 11}, // MCP_CLIENT_GITHUB_COPILOT
|
||||
{name: 'unknown-client', expected: 3}, // MCP_CLIENT_OTHER
|
||||
{name: 'hermes-agent/1.0.0', expected: 12}, // MCP_CLIENT_HERMES
|
||||
];
|
||||
|
||||
for (const {name, expected} of clients) {
|
||||
|
||||
Reference in New Issue
Block a user