@noresponse/mcp 0.4.3 → 0.4.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 +11 -0
- package/README.md +2 -2
- package/bin/mcp-server.js +14 -13
- package/bin/mcp-server.js.map +9 -9
- package/manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.5
|
|
4
|
+
|
|
5
|
+
No changes detected.
|
|
6
|
+
|
|
7
|
+
## 0.4.4
|
|
8
|
+
|
|
9
|
+
* `SDK.assessments.create()`: `response.account.risk.decision.enum(held)` **Added** (Breaking ⚠️)
|
|
10
|
+
* `SDK.assessments.get()`: `response.account.risk.decision.enum(held)` **Added** (Breaking ⚠️)
|
|
11
|
+
* `SDK.accounts.listChanged()`: `response.items[].risk.decision.enum(held)` **Added** (Breaking ⚠️)
|
|
12
|
+
* `SDK.accounts.get()`: `response.risk.decision.enum(held)` **Added** (Breaking ⚠️)
|
|
13
|
+
|
|
3
14
|
## 0.4.3
|
|
4
15
|
|
|
5
16
|
No changes detected.
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ The server uses the API key you give it and stores nothing. API key rotation is
|
|
|
14
14
|
| `get_assessment` | Read the latest version of one assessment. | `GET /v1/assessments/{assessment_id}` |
|
|
15
15
|
| `wait_for_assessment` | Poll a pending assessment, at the interval Retry-After asks for, until it settles or `timeout_seconds` (default 25, at most 55) pass. | `GET /v1/assessments/{assessment_id}` |
|
|
16
16
|
| `query_assessments` | Page through one account's unexpired assessments, newest first. | `POST /v1/assessments/query` |
|
|
17
|
-
| `get_account` | Read an account's one current risk: the score, a decision (`allow`, `step_up`, `review` or `
|
|
17
|
+
| `get_account` | Read an account's one current risk: the score, a decision (`allow`, `step_up`, `review`, `block`, or `held` while a held flow waits) for each flow, and the assessment it comes from. Needs the `history` scope. | `GET /v1/accounts/{account_id}` |
|
|
18
18
|
| `list_account_assessments` | Page through one account's unexpired assessments, newest first, with the account id in the URL. Needs the `history` scope. | `GET /v1/accounts/{account_id}/assessments` |
|
|
19
19
|
| `list_changed_accounts` | List the accounts whose risk changed, oldest change first; pass `next_cursor` back as `changed_since` to poll, and `unenforced` true for only the accounts that need action. Needs the `history` scope. | `GET /v1/accounts` |
|
|
20
20
|
| `record_enforcement` | Record what you did to an account in your identity provider for one flow at one `risk_version`, applied or failed. A repeat answers the stored record. Needs the `history` scope. | `POST /v1/accounts/{account_id}/enforcements` |
|
|
@@ -33,7 +33,7 @@ The server uses the API key you give it and stores nothing. API key rotation is
|
|
|
33
33
|
| `delete_integration` | Delete an integration; its endpoint answers 404 from then on. | `DELETE /v1/integrations/{integration_id}` |
|
|
34
34
|
| `rotate_integration_secret` | Replace an integration's secret. The old one is accepted for 24 hours. Never retried. | `POST /v1/integrations/{integration_id}/rotate` |
|
|
35
35
|
|
|
36
|
-
Act on `account.risk.decision` (`allow`, `step_up`, `review` or `
|
|
36
|
+
Act on `account.risk.decision` (`allow`, `step_up`, `review`, `block`, or `held` while a held flow waits for its investigation), the account's current decision for the assessment's flow. `detail` holds the assessment's own risk, recommendation and `assessment_version`. While the account's first assessment is pending, `account` is absent, so apply your own fallback for that, 429, 503 or a timeout.
|
|
37
37
|
|
|
38
38
|
## Hosted server
|
|
39
39
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -48104,9 +48104,9 @@ var init_config = __esm(() => {
|
|
|
48104
48104
|
SDK_METADATA = {
|
|
48105
48105
|
language: "typescript",
|
|
48106
48106
|
openapiDocVersion: "1",
|
|
48107
|
-
sdkVersion: "0.4.
|
|
48107
|
+
sdkVersion: "0.4.5",
|
|
48108
48108
|
genVersion: "internal",
|
|
48109
|
-
userAgent: "noresponse-sdk/mcp-typescript 0.4.
|
|
48109
|
+
userAgent: "noresponse-sdk/mcp-typescript 0.4.5 internal 1 @noresponse/mcp"
|
|
48110
48110
|
};
|
|
48111
48111
|
});
|
|
48112
48112
|
|
|
@@ -50255,8 +50255,9 @@ var init_accountdecision = __esm(() => {
|
|
|
50255
50255
|
"allow",
|
|
50256
50256
|
"step_up",
|
|
50257
50257
|
"review",
|
|
50258
|
-
"block"
|
|
50259
|
-
|
|
50258
|
+
"block",
|
|
50259
|
+
"held"
|
|
50260
|
+
]).describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it.");
|
|
50260
50261
|
});
|
|
50261
50262
|
|
|
50262
50263
|
// src/models/accountdecisionsbyflow.ts
|
|
@@ -50265,10 +50266,10 @@ var init_accountdecisionsbyflow = __esm(() => {
|
|
|
50265
50266
|
init_zod();
|
|
50266
50267
|
init_accountdecision();
|
|
50267
50268
|
AccountDecisionsByFlow$zodSchema = object({
|
|
50268
|
-
account_creation: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
|
|
50269
|
-
login: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
|
|
50270
|
-
purchase: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.")
|
|
50271
|
-
}).describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them.");
|
|
50269
|
+
account_creation: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
|
|
50270
|
+
login: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
|
|
50271
|
+
purchase: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it.")
|
|
50272
|
+
}).describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed.");
|
|
50272
50273
|
});
|
|
50273
50274
|
|
|
50274
50275
|
// src/models/reasoncode.ts
|
|
@@ -50350,7 +50351,7 @@ var init_accountrisk = __esm(() => {
|
|
|
50350
50351
|
init_accountdecision();
|
|
50351
50352
|
init_accountriskreason();
|
|
50352
50353
|
AccountRisk$zodSchema = object({
|
|
50353
|
-
decision: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it."),
|
|
50354
|
+
decision: AccountDecision$zodSchema.describe("block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. held only for a flow whose admission is held (settings flows.<flow>.admission), when the account's current assessment was made for that flow and its investigation has not completed (status partial): the final decision arrives as account.risk_changed when the investigation completes, decided by its score, or when the hold's deadline (hold_seconds after the assessment was created) passes first, as the flow's on_expiry action or the decision the evidence so far gives, whichever is stricter. Your application applies it."),
|
|
50354
50355
|
reasons: array(AccountRiskReason$zodSchema).describe("Every reason that fired, highest weight first. The weights sum to score before clamping."),
|
|
50355
50356
|
score: int().describe("0 (safe) to 100 (risky), as risk.score of the assessment.")
|
|
50356
50357
|
});
|
|
@@ -50364,7 +50365,7 @@ var init_account = __esm(() => {
|
|
|
50364
50365
|
init_accountrisk();
|
|
50365
50366
|
Account$zodSchema = object({
|
|
50366
50367
|
assessment_id: string2().describe("The assessment the current risk comes from."),
|
|
50367
|
-
decisions_by_flow: AccountDecisionsByFlow$zodSchema.describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them."),
|
|
50368
|
+
decisions_by_flow: AccountDecisionsByFlow$zodSchema.describe("The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed."),
|
|
50368
50369
|
id: string2().describe("The account_id the workspace sends with its assessments."),
|
|
50369
50370
|
risk: AccountRisk$zodSchema,
|
|
50370
50371
|
risk_version: int().describe("The version of the account's current risk. It increases every time the account's current risk or decisions_by_flow changes, and does not decrease. Of two copies of an account, the one with the higher risk_version is newer. account.risk_changed carries the risk_version that its change made."),
|
|
@@ -55357,7 +55358,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
|
|
|
55357
55358
|
function createMCPServer(deps) {
|
|
55358
55359
|
const server = new McpServer({
|
|
55359
55360
|
name: "NoResponse",
|
|
55360
|
-
version: "0.4.
|
|
55361
|
+
version: "0.4.5"
|
|
55361
55362
|
});
|
|
55362
55363
|
const getClient = deps.getSDK || (() => new NoResponseCore({
|
|
55363
55364
|
security: deps.security,
|
|
@@ -64062,7 +64063,7 @@ var routes = buildRouteMap({
|
|
|
64062
64063
|
var app = buildApplication(routes, {
|
|
64063
64064
|
name: "mcp",
|
|
64064
64065
|
versionInfo: {
|
|
64065
|
-
currentVersion: "0.4.
|
|
64066
|
+
currentVersion: "0.4.5"
|
|
64066
64067
|
}
|
|
64067
64068
|
});
|
|
64068
64069
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -64070,5 +64071,5 @@ export {
|
|
|
64070
64071
|
app
|
|
64071
64072
|
};
|
|
64072
64073
|
|
|
64073
|
-
//# debugId=
|
|
64074
|
+
//# debugId=967F6D0E897D9CEE64756E2164756E21
|
|
64074
64075
|
//# sourceMappingURL=mcp-server.js.map
|