File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {VERSION} from '../version.js';
2121
2222import type { DaemonMessage } from './types.js' ;
2323import {
24+ DAEMON_CLIENT_NAME ,
2425 getDaemonPid ,
2526 getPidFilePath ,
2627 getSocketPath ,
@@ -65,7 +66,7 @@ async function setupMCPClient() {
6566 } ) ;
6667 mcpClient = new Client (
6768 {
68- name : 'chrome-devtools-cli-daemon' ,
69+ name : DAEMON_CLIENT_NAME ,
6970 version : VERSION ,
7071 } ,
7172 {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const INDEX_SCRIPT_PATH = path.join(
2121) ;
2222
2323const APP_NAME = 'chrome-devtools-mcp' ;
24+ export const DAEMON_CLIENT_NAME = 'chrome-devtools-cli-daemon' ;
2425
2526// Using these paths due to strict limits on the POSIX socket path length.
2627export function getSocketPath ( ) : string {
Original file line number Diff line number Diff line change 66
77import process from 'node:process' ;
88
9+ import { DAEMON_CLIENT_NAME } from '../daemon/utils.js' ;
910import { logger } from '../logger.js' ;
1011
1112import type { LocalState , Persistence } from './persistence.js' ;
@@ -68,6 +69,10 @@ export class ClearcutLogger {
6869 this . #mcpClient = McpClient . MCP_CLIENT_CLAUDE_CODE ;
6970 } else if ( lowerName . includes ( 'gemini' ) ) {
7071 this . #mcpClient = McpClient . MCP_CLIENT_GEMINI_CLI ;
72+ } else if ( clientName === DAEMON_CLIENT_NAME ) {
73+ this . #mcpClient = McpClient . MCP_CLIENT_DT_MCP_CLI ;
74+ } else if ( lowerName . includes ( 'openclaw' ) ) {
75+ this . #mcpClient = McpClient . MCP_CLIENT_OPENCLAW ;
7176 } else {
7277 this . #mcpClient = McpClient . MCP_CLIENT_OTHER ;
7378 }
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ export enum McpClient {
7575 MCP_CLIENT_UNSPECIFIED = 0 ,
7676 MCP_CLIENT_CLAUDE_CODE = 1 ,
7777 MCP_CLIENT_GEMINI_CLI = 2 ,
78+ MCP_CLIENT_DT_MCP_CLI = 4 ,
79+ MCP_CLIENT_OPENCLAW = 5 ,
7880 MCP_CLIENT_OTHER = 3 ,
7981}
8082
You can’t perform that action at this time.
0 commit comments