mirror of
https://github.com/ChromeDevTools/chrome-devtools-mcp.git
synced 2026-11-04 15:00:11 +00:00
refactor: extract version in a seprate file (#1032)
This commit is contained in:
1 parent
dd26bbf172
commit
0106865aad
4 files changed
+14
-8
No files matched your search
@@ -18,7 +18,7 @@
|
||||
"extra-files": [
|
||||
{
|
||||
"type": "generic",
|
||||
"path": "src/main.ts"
|
||||
"path": "src/version.ts"
|
||||
},
|
||||
{
|
||||
"type": "json",
|
||||
|
||||
@@ -15,6 +15,7 @@ import {StdioClientTransport} from '@modelcontextprotocol/sdk/client/stdio.js';
|
||||
|
||||
import {logger} from '../logger.js';
|
||||
import {PipeTransport} from '../third_party/index.js';
|
||||
import {VERSION} from '../version.js';
|
||||
|
||||
import {
|
||||
getSocketPath,
|
||||
@@ -43,8 +44,7 @@ async function setupMCPClient() {
|
||||
mcpClient = new Client(
|
||||
{
|
||||
name: 'chrome-devtools-cli-daemon',
|
||||
// TODO: handle client version (optional).
|
||||
version: '0.1.0',
|
||||
version: VERSION,
|
||||
},
|
||||
{
|
||||
capabilities: {},
|
||||
|
||||
+1
-5
@@ -30,11 +30,7 @@ import {ToolCategory} from './tools/categories.js';
|
||||
import {tools as slimTools} from './tools/slim/tools.js';
|
||||
import type {ToolDefinition} from './tools/ToolDefinition.js';
|
||||
import {tools} from './tools/tools.js';
|
||||
|
||||
// If moved update release-please config
|
||||
// x-release-please-start-version
|
||||
const VERSION = '0.17.3';
|
||||
// x-release-please-end
|
||||
import {VERSION} from './version.js';
|
||||
|
||||
export const args = parseArguments(VERSION);
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2026 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
// If moved update release-please config
|
||||
// x-release-please-start-version
|
||||
export const VERSION = '0.17.3';
|
||||
// x-release-please-end
|
||||
Reference in new issue
Block a user