Skip to content

Commit b08e531

Browse files
author
hideya
committed
Update to ver 0.3.8
1 parent aa2a953 commit b08e531

File tree

6 files changed

+31
-5
lines changed

6 files changed

+31
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.3.8] - 2025-08-27
10+
11+
### Added
12+
- `--version` flag for the convenient version checking
13+
14+
915
## [0.3.7] - 2025-08-27
1016

1117
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Create a `llm_mcp_config.json5` file:
232232
},
233233

234234
// To connect a remote MCP server with OAuth, use "mcp-remote"
235-
"notionMCP": {
235+
"notion": {
236236
"command": "npx",
237237
"args": ["-y", "mcp-remote", "https://mcp.notion.com/mcp"],
238238
}

llm_mcp_config.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
// },
5252

5353
// "llm": {
54-
// // ttps://console.groq.com/keys
54+
// // https://console.groq.com/keys
5555
// "provider": "groq",
5656
// // "model": "openai/gpt-oss-20b",
5757
// "model": "openai/gpt-oss-120b",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@h1deya/mcp-client-cli",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "Simple MCP Client to quickly test and explore MCP servers from the command line",
55
"license": "MIT",
66
"keywords": [
@@ -31,6 +31,7 @@
3131
"main": "./dist/index.js",
3232
"files": [
3333
"dist",
34+
"package.json",
3435
"README.md",
3536
"LICENSE"
3637
],

src/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import yargs from "yargs";
1212
import { hideBin } from "yargs/helpers";
1313
import * as fs from "fs";
1414
import * as path from "path";
15+
import { fileURLToPath } from "url";
1516

1617
// NOTE: without the following, I got this error:
1718
// ReferenceError: WebSocket is not defined
@@ -38,6 +39,23 @@ const COLORS = {
3839
RESET: "\x1b[0m"
3940
} as const;
4041

42+
// Version helper function
43+
const getPackageVersion = (): string => {
44+
try {
45+
// Get the directory of the current module
46+
const __filename = fileURLToPath(import.meta.url);
47+
const __dirname = path.dirname(__filename);
48+
49+
// Read package.json from the project root
50+
const packageJsonPath = path.join(__dirname, "..", "package.json");
51+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
52+
return packageJson.version || "unknown";
53+
} catch (error) {
54+
console.warn("Could not read version from package.json:", error);
55+
return "unknown";
56+
}
57+
};
58+
4159
// CLI argument setup
4260
interface Arguments {
4361
config: string;
@@ -48,6 +66,7 @@ interface Arguments {
4866

4967
const parseArguments = (): Arguments => {
5068
return yargs(hideBin(process.argv))
69+
.version(getPackageVersion())
5170
.options({
5271
config: {
5372
type: "string",

0 commit comments

Comments
 (0)