@sodiumhq/mcp-pm 0.1.0-beta.4457 → 0.1.0-beta.4489

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Model Context Protocol (MCP) server for [Sodium Practice Management](https://sodiumhq.com). Lets AI assistants like Claude Desktop, Claude Code, Cursor, and VS Code interact with your Sodium tenant.
4
4
 
5
+ > **Using a browser assistant?** claude.ai, ChatGPT, and Gemini can connect to Sodium without installing anything — add `https://mcp.sodiumhq.com` as a custom connector and sign in with your Sodium account. This npm package is the local (stdio) alternative, authenticated with an API key.
6
+
5
7
  > **Full setup guide and example prompts:** [sodiumhq.com/features/mcp](https://sodiumhq.com/features/mcp)
6
8
 
7
9
  ## Status
package/dist/http.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as buildServer } from "./src-uJ9liBF-.mjs";
2
+ import { t as buildServer } from "./src-Ik7PFVX1.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { createServer } from "node:http";
@@ -171,11 +171,11 @@ var AuthError = class extends Error {
171
171
  }
172
172
  };
173
173
  function loadAuthConfig() {
174
- const resourceUrl = process.env.MCP_RESOURCE_URL;
174
+ const resourceUrl = process.env.MCP_RESOURCE_URL?.trim();
175
175
  const issuer = process.env.AUTH0_ISSUER;
176
176
  if (!resourceUrl || !issuer) return null;
177
177
  return {
178
- resourceUrl: resourceUrl.replace(/\/+$/, ""),
178
+ resourceUrl,
179
179
  issuer: issuer.endsWith("/") ? issuer : `${issuer}/`,
180
180
  scopes: {
181
181
  read: process.env.MCP_SCOPE_READ ?? "mcp:read",
@@ -239,7 +239,8 @@ const writesRaw = (process.env.SODIUM_ENABLE_WRITES ?? "").trim().toLowerCase();
239
239
  const WRITES_ENABLED = writesRaw === "true" || writesRaw === "1";
240
240
  const AUTH = loadAuthConfig();
241
241
  const OBO = AUTH ? loadOboConfig(AUTH.issuer) : null;
242
- const ENDPOINT_PATH = AUTH ? new URL(AUTH.resourceUrl).pathname : process.env.MCP_ENDPOINT_PATH ?? "/mcp";
242
+ const RESOURCE_PATH = AUTH ? new URL(AUTH.resourceUrl).pathname : process.env.MCP_ENDPOINT_PATH ?? "/mcp";
243
+ const ENDPOINT_PATH = RESOURCE_PATH.length > 1 ? RESOURCE_PATH.replace(/\/+$/, "") : RESOURCE_PATH;
243
244
  const TELEMETRY_CONFIG = loadTelemetryConfig({
244
245
  roleName: "sodium-pm-mcp",
245
246
  applicationVersion: VERSION
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as buildServer } from "./src-uJ9liBF-.mjs";
2
+ import { t as buildServer } from "./src-Ik7PFVX1.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { parseArgs } from "node:util";
@@ -8550,7 +8550,7 @@ const dateTypeEnum = z.enum([
8550
8550
  "ConfirmationStatementNextMadeUpTo",
8551
8551
  "LastConfirmationStatementFiled",
8552
8552
  "LastConfirmationStatementMadeUpTo",
8553
- "NextVatReturnDue",
8553
+ "NextVatReturnDueAnnual",
8554
8554
  "NextVatPeriodEndQuarterly",
8555
8555
  "NextVatReturnDueQuarterly",
8556
8556
  "NextVatPeriodEndMonthly",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sodiumhq/mcp-pm",
3
- "version": "0.1.0-beta.4457",
3
+ "version": "0.1.0-beta.4489",
4
4
  "description": "Sodium Practice Management MCP server — lets AI assistants interact with your Sodium tenant",
5
5
  "type": "module",
6
6
  "bin": {