salesforce-metadata-mcp 2.5.4 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.5] - 2026-06-03
4
+
5
+ ### Auth & Quality — Token Refresh + Code Analyzer Fixes
6
+
7
+ #### Auth improvement
8
+ - **`getFreshTokenFromCLI`**: switched from `sf org display` (which redacts the access token since Salesforce CLI v2.50) to `sf org auth show-access-token`, restoring `SF_ALIAS`-based authentication
9
+
10
+ #### Code quality
11
+ - **Salesforce Code Analyzer v5**: fixed all 544 violations across `src/` — no unused variables, all `let` → `const`, no `@typescript-eslint/no-explicit-any` warnings where the dynamic type was intentional, bias-neutral terminology throughout
12
+ - **TypeScript strict mode**: zero compiler errors; `@ts-nocheck` removed from all source files
13
+
14
+ Tool count: **132** (unchanged)
15
+
16
+ ---
17
+
3
18
  ## [2.5.4] - 2026-06-03
4
19
 
5
20
  ### TypeScript Source Sync — Proper Typing for All 132 Tools
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # salesforce-metadata-mcp
2
2
 
3
- [![Version](https://img.shields.io/badge/version-2.5.4-blue.svg)](https://npmjs.com/package/salesforce-metadata-mcp)
3
+ [![Version](https://img.shields.io/badge/version-2.5.5-blue.svg)](https://npmjs.com/package/salesforce-metadata-mcp)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
5
  [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io)
6
6
 
package/dist/index.js CHANGED
@@ -6,14 +6,14 @@ import { createServer } from "http";
6
6
  import { registerTools } from "./tools/index.js";
7
7
  const server = new McpServer({
8
8
  name: "salesforce-metadata-mcp",
9
- version: "2.5.4",
9
+ version: "2.5.5",
10
10
  });
11
11
  registerTools(server);
12
12
  // ─── Transport: stdio ─────────────────────────────────────────────────────────
13
13
  async function runStdio() {
14
14
  const transport = new StdioServerTransport();
15
15
  await server.connect(transport);
16
- console.error("Salesforce Metadata MCP server v2.5.4 running on stdio");
16
+ console.error("Salesforce Metadata MCP server v2.5.5 running on stdio");
17
17
  }
18
18
  // ─── Transport: HTTP ──────────────────────────────────────────────────────────
19
19
  function readBody(req) {
@@ -38,7 +38,7 @@ async function runHTTP() {
38
38
  const url = req.url ?? "/";
39
39
  if (url === "/health" && req.method === "GET") {
40
40
  res.writeHead(200, { "Content-Type": "application/json" });
41
- res.end(JSON.stringify({ status: "ok", server: "salesforce-metadata-mcp", version: "2.5.4" }));
41
+ res.end(JSON.stringify({ status: "ok", server: "salesforce-metadata-mcp", version: "2.5.5" }));
42
42
  return;
43
43
  }
44
44
  if (url === "/mcp" && req.method === "POST") {
@@ -64,7 +64,7 @@ async function runHTTP() {
64
64
  res.end(JSON.stringify({ error: "Not found" }));
65
65
  });
66
66
  httpServer.listen(port, () => {
67
- console.error(`Salesforce Metadata MCP server v2.5.4 running on http://localhost:${port}/mcp`);
67
+ console.error(`Salesforce Metadata MCP server v2.5.5 running on http://localhost:${port}/mcp`);
68
68
  });
69
69
  }
70
70
  // ─── Entry point ──────────────────────────────────────────────────────────────
@@ -950,7 +950,7 @@ export const CreateExternalObjectSchema = z.object({
950
950
  export const CreateRemoteSiteSettingSchema = z.object({
951
951
  fullName: z.string().min(1).regex(/^[A-Za-z][A-Za-z0-9_]*$/).describe("Remote site setting API name"),
952
952
  name: z.string().min(1).describe("Display name"),
953
- url: z.string().url().describe("URL to whitelist for callouts, e.g. 'https://api.example.com'"),
953
+ url: z.string().url().describe("URL to allow for callouts, e.g. 'https://api.example.com'"),
954
954
  description: z.string().optional().describe("Description of why this site is trusted"),
955
955
  isActive: z.boolean().default(true).describe("Whether this remote site setting is active"),
956
956
  disableProtocolSecurity: z.boolean().default(false).describe("Disable protocol security (not recommended)"),