@sodiumhq/mcp-pm 0.1.0-beta.5669 → 0.1.0-beta.6193
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/dist/http.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as buildServer } from "./src-
|
|
2
|
+
import { t as buildServer } from "./src-BB0-Ejj-.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { SUPPORTED_PROTOCOL_VERSIONS, createMcpHandler } from "@modelcontextprotocol/server";
|
|
5
5
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -197,10 +197,9 @@ function metadataUrl(config) {
|
|
|
197
197
|
const suffix = url.pathname === "/" ? "" : url.pathname;
|
|
198
198
|
return `${url.origin}/.well-known/oauth-protected-resource${suffix}`;
|
|
199
199
|
}
|
|
200
|
-
function buildChallenge(config
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
return parts.join(", ");
|
|
200
|
+
function buildChallenge(config) {
|
|
201
|
+
const scope = `${config.scopes.read} ${config.scopes.write}`;
|
|
202
|
+
return `Bearer resource_metadata="${metadataUrl(config)}", scope="${scope}"`;
|
|
204
203
|
}
|
|
205
204
|
const jwksCache = /* @__PURE__ */ new Map();
|
|
206
205
|
function getJwks(issuer) {
|
|
@@ -415,8 +414,7 @@ const httpServer = createServer((req, res) => {
|
|
|
415
414
|
console.error(`[sodium-pm-mcp-http] ${req.method} ${req.url} failed: ${message}`);
|
|
416
415
|
if (res.headersSent) return;
|
|
417
416
|
if (AUTH && error instanceof AuthError) {
|
|
418
|
-
|
|
419
|
-
res.setHeader("WWW-Authenticate", buildChallenge(AUTH, scope));
|
|
417
|
+
res.setHeader("WWW-Authenticate", buildChallenge(AUTH));
|
|
420
418
|
sendJsonError(res, error.status, message);
|
|
421
419
|
return;
|
|
422
420
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as buildServer } from "./src-
|
|
2
|
+
import { t as buildServer } from "./src-BB0-Ejj-.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
@@ -1714,7 +1714,7 @@ const getWorkflowStepAnalysisOccurrences = (options) => (options.client ?? clien
|
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Get Service Time Report
|
|
1716
1716
|
*
|
|
1717
|
-
* Estimated vs actual time per service: total minutes logged in the window attributed to services via each entry's linked task, compared against the
|
|
1717
|
+
* Estimated vs actual time per service: total minutes logged in the window attributed to services via each entry's linked task, compared against the summed estimates of those tasks. Drill down with serviceCode (rows per client), serviceCode + clientCode (rows per task) and taskCode (rows per workflow step); below the service level a catch-all row makes the rows add up to the row drilled from, and the summary covers the drilled scope. groupBy=TeamMember gives one row per person instead (narrow it with serviceCode): time by who logged it, estimates by the step's (or task's) assignee. Requires time tracking to be in use.
|
|
1718
1718
|
*/
|
|
1719
1719
|
const getServiceTimeReport = (options) => (options.client ?? client).get({
|
|
1720
1720
|
security: [{
|
|
@@ -9188,7 +9188,12 @@ const vatSchemeEnum = z.enum([
|
|
|
9188
9188
|
"FlatRate",
|
|
9189
9189
|
"CashAccounting",
|
|
9190
9190
|
"AnnualAccounting",
|
|
9191
|
-
"MarginScheme"
|
|
9191
|
+
"MarginScheme",
|
|
9192
|
+
"PartialExemption",
|
|
9193
|
+
"RetailSchemes",
|
|
9194
|
+
"TourOperatorsMarginScheme",
|
|
9195
|
+
"AgriculturalFlatRate",
|
|
9196
|
+
"OneStopShop"
|
|
9192
9197
|
]);
|
|
9193
9198
|
const vatPeriodEnum = z.enum([
|
|
9194
9199
|
"Monthly",
|