@vectros-ai/mcp-server 0.18.0 → 0.18.1
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 +27 -0
- package/README.md +21 -15
- package/dist/cli-http.js +26 -16
- package/dist/cli-http.js.map +1 -1
- package/dist/cli-http.mjs +26 -16
- package/dist/cli-http.mjs.map +1 -1
- package/dist/cli.js +26 -16
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +26 -16
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/server.ts
|
|
2
2
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
3
|
|
|
4
|
-
// node_modules/@vectros-ai/sdk/dist/index.mjs
|
|
4
|
+
// ../../node_modules/@vectros-ai/sdk/dist/index.mjs
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
7
7
|
for (var name in all)
|
|
@@ -2431,7 +2431,7 @@ var AuthClient = class {
|
|
|
2431
2431
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/auth/jwks");
|
|
2432
2432
|
}
|
|
2433
2433
|
/**
|
|
2434
|
-
* Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself.
|
|
2434
|
+
* Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself. Rows exist only where read-access logging is enabled. Provide at least one query axis: a subject (`subjectType` + `subjectId`) within a `contextId` for the primary accounting query; `resourceId` within a `contextId` for 'who read this record'; `callerKeyId` for 'what did this credential read' (account-wide forensic); or `contextId` alone to enumerate a whole context. `from`/`to` bound the time window. Results are scoped to your account, derived from your token — never from input. Requires the `access-log:r` scope.
|
|
2435
2435
|
*
|
|
2436
2436
|
* @param {Vectros.GetAccessLogRequest} request
|
|
2437
2437
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4136,7 +4136,7 @@ var AuthClient = class {
|
|
|
4136
4136
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/auth/issuers/{issuerId}");
|
|
4137
4137
|
}
|
|
4138
4138
|
/**
|
|
4139
|
-
* Updates the mutable fields of a registered issuer: `subClaim`, `emailClaim`, `userinfoUri`, `capturedClaims`, `restrictedToDomain` (a new non-blank value must already be a VERIFIED domain for your account; an empty string clears it
|
|
4139
|
+
* Updates the mutable fields of a registered issuer: `subClaim`, `emailClaim`, `userinfoUri`, `capturedClaims`, `restrictedToDomain` (a new non-blank value must already be a VERIFIED domain for your account; an empty string clears it where permitted; see `IssuerUpdateRequest.restrictedToDomain` for the full semantics), `status` (`active`/`suspended` — a registration awaiting verification (`pending_verification`) accepts no status change until it is verified; a suspended issuer's tokens are rejected identically to an unregistered issuer at exchange time), and `selfSignupPolicies`. Fields omitted from the body are left unchanged (partial update). `issuer`, `jwksUri`, `audience`, and `contextId` are trust-anchor / routing-pin fields and are immutable via this route — supplying a value that differs from the current registration is rejected with 400; supplying the current value back is a no-op. Rotating a trust anchor requires deleting and re-registering the issuer, which is itself refused while any user is bound through it. **`subClaim` is identity-determining, not merely cosmetic**: it names which verified JWT claim is read as the federated user's identifier, so changing it on an issuer that already has bound users would silently re-identify (or, under self-signup, orphan) every one of them — changing it is therefore refused once any user has bound through this issuer, the same guard `DELETE` already applies, and is only free before the first real login. Requires a root API key or the bootstrap's provisioning capability, gated identically to every other operation on this surface. A credential confined to one app context may only update an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may update any issuer.
|
|
4140
4140
|
*
|
|
4141
4141
|
* @param {Vectros.IssuerUpdateRequest} request
|
|
4142
4142
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4946,7 +4946,7 @@ var ComplianceClient = class {
|
|
|
4946
4946
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
4947
4947
|
}
|
|
4948
4948
|
/**
|
|
4949
|
-
* Submits
|
|
4949
|
+
* Submits an erasure request for a single end-subject (a user, or an identity entity in any namespace). Erasure deletes the records, documents, folders and record schemas the subject solely owns across the declared contexts (and, for a user, its access profiles there), plus its identity and lookup rows when all contexts are covered. Rows co-owned with another owner scope or principal are kept; read-access log entries are not erased. The request is asynchronous: it returns 202 with a `requestId`; poll `GET /v1/erasure-requests/{id}` until the job completes to obtain the completion certificate. Requires a root API key — a scoped credential is rejected with 403.
|
|
4950
4950
|
*
|
|
4951
4951
|
* @param {Vectros.ErasureRequest} request
|
|
4952
4952
|
* @param {ComplianceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5009,7 +5009,7 @@ var ComplianceClient = class {
|
|
|
5009
5009
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/erasure-requests");
|
|
5010
5010
|
}
|
|
5011
5011
|
/**
|
|
5012
|
-
* Polls an erasure request by id. While the job is still running this returns its status only; once it completes, the response also includes the
|
|
5012
|
+
* Polls an erasure request by id. While the job is still running this returns its status only; once it completes, the response also includes the completion certificate (which contexts were swept, per-context deletion counts, whether the identity was kept, and reports of dangling references and shared rows left intact). Requires a root API key.
|
|
5013
5013
|
*
|
|
5014
5014
|
* @param {Vectros.GetErasureRequestRequest} request
|
|
5015
5015
|
* @param {ComplianceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -7828,6 +7828,8 @@ var InferenceClient = class {
|
|
|
7828
7828
|
throw new PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
7829
7829
|
case 403:
|
|
7830
7830
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7831
|
+
case 413:
|
|
7832
|
+
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
7831
7833
|
case 429:
|
|
7832
7834
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7833
7835
|
default:
|
|
@@ -7967,6 +7969,8 @@ var InferenceClient = class {
|
|
|
7967
7969
|
throw new PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
7968
7970
|
case 403:
|
|
7969
7971
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7972
|
+
case 413:
|
|
7973
|
+
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
7970
7974
|
case 429:
|
|
7971
7975
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7972
7976
|
case 500:
|
|
@@ -10256,7 +10260,7 @@ function warnOnSuboptimalKey(key, log) {
|
|
|
10256
10260
|
if (key.prefix === "sk") {
|
|
10257
10261
|
log.warn(
|
|
10258
10262
|
{ prefix: key.prefix, env: key.env },
|
|
10259
|
-
'wildcard-scope key (sk_*) on a desktop MCP server is overly broad. For production, prefer a scoped ssk_* key bound to a narrowed AccessProfile
|
|
10263
|
+
'wildcard-scope key (sk_*) on a desktop MCP server is overly broad. For production, prefer a scoped ssk_* key bound to a narrowed AccessProfile: `npx -y @vectros-ai/cli bootstrap` mints one, and the "Recommended credential" section of this package\'s README describes it.'
|
|
10260
10264
|
);
|
|
10261
10265
|
} else if (key.prefix === "st") {
|
|
10262
10266
|
log.warn(
|
|
@@ -10268,8 +10272,8 @@ function warnOnSuboptimalKey(key, log) {
|
|
|
10268
10272
|
|
|
10269
10273
|
// src/build-info.ts
|
|
10270
10274
|
var BUILD_INFO = {
|
|
10271
|
-
mcpServer: true ? "0.18.
|
|
10272
|
-
sdk: true ? "0.
|
|
10275
|
+
mcpServer: true ? "0.18.1" : "dev",
|
|
10276
|
+
sdk: true ? "0.47.0" : "dev"
|
|
10273
10277
|
};
|
|
10274
10278
|
|
|
10275
10279
|
// src/log.ts
|
|
@@ -11315,7 +11319,7 @@ import { z as z10 } from "zod";
|
|
|
11315
11319
|
// src/tools/provider-alias.ts
|
|
11316
11320
|
import { z as z9 } from "zod";
|
|
11317
11321
|
var providerAliasInput = z9.string().min(1, "providerAlias must be non-empty when supplied").optional().describe(
|
|
11318
|
-
"Route THIS call through your own model provider instead of the platform-hosted default, by the alias of a provider config your account has activated. It works only after your account has set up that provider and signed the platform's risk-acceptance waiver; without both, the platform refuses the call with a 403, which is returned to you as written.
|
|
11322
|
+
"Route THIS call through your own model provider instead of the platform-hosted default, by the alias of a provider config your account has activated. It works only after your account has set up that provider and signed the platform's risk-acceptance waiver; without both, the platform refuses the call with a 403, which is returned to you as written. If your account has accepted the Business Associate Agreement with Vectros in the developer portal, an account owner must also have attested that provider config in the developer portal (Model Providers); until then the platform refuses the call with a 403 that says it needs a BAA-holder attestation. A call served by your own provider leaves the Vectros perimeter. Omit it (the default) to use the platform-hosted path. When set, `model` names the model on your provider's own id space, and falls back to that provider config's default model when omitted."
|
|
11319
11323
|
);
|
|
11320
11324
|
|
|
11321
11325
|
// src/tools/rag_ask.ts
|
|
@@ -11327,7 +11331,7 @@ var inputSchema9 = {
|
|
|
11327
11331
|
'System prompt that overrides the default for the generation step \u2014 e.g. "answer only from the provided context, cite sources, be concise". Default: a generic answer-from-context instruction.'
|
|
11328
11332
|
),
|
|
11329
11333
|
model: z10.string().optional().describe(
|
|
11330
|
-
"Inference model alias (e.g. claude-haiku-
|
|
11334
|
+
"Inference model alias (e.g. claude-haiku-5-5, claude-sonnet-5-5, claude-opus-5-5). Omit it to use the platform default, which GET /v1/models reports as `defaultModel`; that endpoint also lists the catalog the calling key can reach. When `providerAlias` is set, this instead names the model on that provider's own id space."
|
|
11331
11335
|
),
|
|
11332
11336
|
providerAlias: providerAliasInput,
|
|
11333
11337
|
search: z10.object({
|
|
@@ -11358,13 +11362,17 @@ var inputSchema9 = {
|
|
|
11358
11362
|
createdBefore: z10.string().optional().describe("Same creation-time basis as createdAfter, bounding at/before this ISO 8601 UTC value."),
|
|
11359
11363
|
requireComplete: z10.boolean().optional().describe("Fail closed (503) on a degraded search backend instead of grounding on partial results. Default false.")
|
|
11360
11364
|
}).optional().describe("Retrieval params + scoping. Default mode HYBRID, limit " + SEARCH_MCP_DEFAULT_LIMIT + "."),
|
|
11361
|
-
maxTokens: z10.number().int().min(1).optional().describe(
|
|
11362
|
-
|
|
11365
|
+
maxTokens: z10.number().int().min(1).optional().describe(
|
|
11366
|
+
"Max output tokens. claude-haiku-5-5, claude-sonnet-5, claude-sonnet-5-5 and claude-opus-5-5 can reason before they answer; when they do, the reasoning counts against this limit, so a small value can return little or no text. Leave headroom: 1024 or more for a short answer."
|
|
11367
|
+
),
|
|
11368
|
+
temperature: z10.number().min(0).max(1).optional().describe(
|
|
11369
|
+
"Sampling temperature (0.0\u20131.0). Default 0.3 \u2014 lower favors deterministic, retrieval-grounded answers. The platform ignores it for claude-haiku-5-5, claude-sonnet-5, claude-sonnet-5-5 and claude-opus-5-5, which sample at their own default; it applies to models that accept a temperature, such as claude-haiku-4-5."
|
|
11370
|
+
)
|
|
11363
11371
|
};
|
|
11364
11372
|
var ragAsk = ({ client, log }) => ({
|
|
11365
11373
|
name: "rag_ask",
|
|
11366
11374
|
title: "RAG ask (corpus-wide)",
|
|
11367
|
-
description: "Ask a question grounded against your tenant's indexed content. Vectros performs a hybrid search, injects the top-K passages into the prompt, and streams a model answer back. Scope retrieval with `search` (ownership \u2014 `scope` for one ownership dimension or `scopeFilters` for several at once, e.g. one client within one org \u2014 folder, type, metadata filters, date window) to ground on a subset \u2014 e.g. one patient or one folder \u2014 and steer generation with `instructions`
|
|
11375
|
+
description: "Ask a question grounded against your tenant's indexed content. Vectros performs a hybrid search, injects the top-K passages into the prompt, and streams a model answer back. Scope retrieval with `search` (ownership \u2014 `scope` for one ownership dimension or `scopeFilters` for several at once, e.g. one client within one org \u2014 folder, type, metadata filters, date window) to ground on a subset \u2014 e.g. one patient or one folder \u2014 and steer generation with `instructions` (and `temperature`, for the models that accept one). The full answer is returned as a single response; progress notifications keep the call alive during the 30-45s generation window. Calls without `providerAlias` are served by platform-hosted AWS Bedrock. A call that sets `providerAlias` goes to your own model provider, outside Vectros's AWS BAA boundary.",
|
|
11368
11376
|
inputSchema: inputSchema9,
|
|
11369
11377
|
// NOT a pure read: this call reserves an atomic hold against the caller's prepaid inference
|
|
11370
11378
|
// balance before generation starts, then debits it on completion — a real financial side
|
|
@@ -11466,10 +11474,12 @@ var inputSchema10 = {
|
|
|
11466
11474
|
documentId: z11.string().min(1, "documentId is required").describe("ID of the document to ask against."),
|
|
11467
11475
|
prompt: z11.string().min(1, "prompt is required").describe("Question to ask about the document."),
|
|
11468
11476
|
model: z11.string().optional().describe(
|
|
11469
|
-
"Inference model alias.
|
|
11477
|
+
"Inference model alias. Omit it to use the platform default, which GET /v1/models reports as `defaultModel`; that endpoint also lists the catalog the calling key can reach. When `providerAlias` is set, this instead names the model on that provider's own id space."
|
|
11470
11478
|
),
|
|
11471
11479
|
providerAlias: providerAliasInput,
|
|
11472
|
-
maxTokens: z11.number().int().min(1).optional().describe(
|
|
11480
|
+
maxTokens: z11.number().int().min(1).optional().describe(
|
|
11481
|
+
"Max output tokens. claude-haiku-5-5, claude-sonnet-5, claude-sonnet-5-5 and claude-opus-5-5 can reason before they answer; when they do, the reasoning counts against this limit, so a small value can return little or no text. Leave headroom: 1024 or more for a short answer."
|
|
11482
|
+
)
|
|
11473
11483
|
};
|
|
11474
11484
|
var documentAsk = ({ client, log }) => ({
|
|
11475
11485
|
name: "document_ask",
|
|
@@ -12057,7 +12067,7 @@ var inputSchema19 = {
|
|
|
12057
12067
|
var folderDelete = ({ client, log }) => ({
|
|
12058
12068
|
name: "folder_delete",
|
|
12059
12069
|
title: "Delete a folder",
|
|
12060
|
-
description: 'Permanently delete a folder by id. The folder must be EMPTY first \u2014 it must contain no documents, no records, and no sub-folders \u2014 and a non-empty folder is refused, which is the most common way this call fails. Use record_query with this folderId, and document_query, to see what is in it. Clearing it differs by content type: a document can be moved out (document_update with a different folderId) or deleted. A RECORD can also be re-filed into another folder \u2014 the API supports it \u2014 but THIS SERVER does not expose that yet: record_update has no folderId argument, so from here your only option is record_delete (needs records:d). Do NOT read that as "the record cannot be moved" and delete
|
|
12070
|
+
description: 'Permanently delete a folder by id. The folder must be EMPTY first \u2014 it must contain no documents, no records, and no sub-folders \u2014 and a non-empty folder is refused, which is the most common way this call fails. Use record_query with this folderId, and document_query, to see what is in it. Clearing it differs by content type: a document can be moved out (document_update with a different folderId) or deleted. A RECORD can also be re-filed into another folder \u2014 the API supports it \u2014 but THIS SERVER does not expose that yet: record_update has no folderId argument, so from here your only option is record_delete (needs records:d). Do NOT read that as "the record cannot be moved" and delete the record on that basis: if the record should be kept, tell the user to move it with the Vectros API/SDK directly rather than deleting it here. A sub-folder cannot be re-parented at all, so nested folders have to be emptied and deleted innermost-first. Note the emptiness check counts everything in the folder, INCLUDING items your credential cannot read \u2014 so a refusal you cannot account for from what you can list is expected behaviour, not a bug, and retrying will not clear it. Requires the key to allow folders:d \u2014 a key without it gets a permission error. Protected folders (e.g. a context root) cannot be deleted at all, however empty.',
|
|
12061
12071
|
inputSchema: inputSchema19,
|
|
12062
12072
|
// Deletes. Idempotent in the standard REST sense: the end state ("this id no longer
|
|
12063
12073
|
// resolves") is the same whether this is the first delete or a repeat of one.
|