Skip to content

Commit e53277a

Browse files
committed
fix: report version at startup
1 parent 13f8d9d commit e53277a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dependencies": {
4242
"@jsforce/jsforce-node": "^3.8.2",
4343
"@modelcontextprotocol/sdk": "^1.12.1",
44-
"@oclif/core": "^4.3.1",
44+
"@oclif/core": "^4.3.3",
4545
"@salesforce/core": "^8.11.4",
4646
"@salesforce/kit": "^3.1.6",
4747
"@salesforce/source-deploy-retrieve": "^12.19.7",

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ You can also use special values to control access to orgs:
7575
delimiter: ',',
7676
default: ['all'],
7777
})(),
78+
version: Flags.version(),
7879
};
7980

8081
public static examples = [
@@ -98,7 +99,7 @@ You can also use special values to control access to orgs:
9899
this.logToStderr(`Allowed orgs:\n${flags.orgs.map((org) => `- ${org}`).join('\n')}`);
99100
const server = new McpServer({
100101
name: 'sf-mcp-server',
101-
version: '0.0.6',
102+
version: this.config.version,
102103
capabilities: {
103104
resources: {},
104105
tools: {},
@@ -153,6 +154,6 @@ You can also use special values to control access to orgs:
153154

154155
const transport = new StdioServerTransport();
155156
await server.connect(transport);
156-
console.error('✅ Salesforce MCP Server running on stdio');
157+
console.error(`✅ Salesforce MCP Server v${this.config.version} running on stdio`);
157158
}
158159
}

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,10 +1441,10 @@
14411441
wordwrap "^1.0.0"
14421442
wrap-ansi "^7.0.0"
14431443

1444-
"@oclif/core@^4.3.1":
1445-
version "4.3.1"
1446-
resolved "https://registry.npmjs.org/@oclif/core/-/core-4.3.1.tgz"
1447-
integrity sha512-+QpJSficjZWu65YSRJIwe50xh0C7WVD6BkQyk0HmGIlx2/rvex8LDwbZHCQcvuJDOCVQeX/INh8IImuKn4d1UA==
1444+
"@oclif/core@^4.3.3":
1445+
version "4.3.3"
1446+
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-4.3.3.tgz#a527536b62ef202c58d2b69ce9cd1e64eb3a94b1"
1447+
integrity sha512-A0mk4nlVE+r34fl91OdglXVPwhhfzM59IhSxnOigqMkwxFgT8z3i2WlUgzmazzvzSccs2KM4N2HkTS3NEvW96g==
14481448
dependencies:
14491449
ansi-escapes "^4.3.2"
14501450
ansis "^3.17.0"
@@ -1460,7 +1460,7 @@
14601460
semver "^7.6.3"
14611461
string-width "^4.2.3"
14621462
supports-color "^8"
1463-
tinyglobby "^0.2.13"
1463+
tinyglobby "^0.2.14"
14641464
widest-line "^3.1.0"
14651465
wordwrap "^1.0.0"
14661466
wrap-ansi "^7.0.0"
@@ -8445,7 +8445,7 @@ tiny-jsonc@^1.0.2:
84458445
resolved "https://registry.npmjs.org/tiny-jsonc/-/tiny-jsonc-1.0.2.tgz"
84468446
integrity sha512-f5QDAfLq6zIVSyCZQZhhyl0QS6MvAyTxgz4X4x3+EoCktNWEYJ6PeoEA97fyb98njpBNNi88ybpD7m+BDFXaCw==
84478447

8448-
tinyglobby@^0.2.13, tinyglobby@^0.2.9:
8448+
tinyglobby@^0.2.13, tinyglobby@^0.2.14, tinyglobby@^0.2.9:
84498449
version "0.2.14"
84508450
resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.14.tgz#5280b0cf3f972b050e74ae88406c0a6a58f4079d"
84518451
integrity sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==

0 commit comments

Comments
 (0)