@insiderfinance/totalfinance-mcp
McpServerOptions · field contracts
Page 1 of 2. Back to the entry point or find this declaration.
| Name / type | Meaning & unit | Optional / default |
|---|---|---|
artifactsArtifactStoreReader | An artifact store (Decision 5): input handles resolve through it; permitted reports are listed
as `totalfinance://reports/<hash>` resources. With jobs attached, reports for excluded operations
are hidden. A constructor argument — nothing is looked up by "current session". unitless by name | Optional No @default declared; consult the signature and description. |
artifacts.get(uri: string) => { handle: import('@insiderfinance/totalfinance/workflows').ResourceHandle; value: Record<string, unknown>; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get().return.handleimport('@insiderfinance/totalfinance/workflows').ResourceHandle | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get().return.valueRecord<string, unknown> | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get(uri)string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.list(filter?: { kind?: import('@insiderfinance/totalfinance/workflows').ResourceHandleKind; }) => import('@insiderfinance/totalfinance/workflows').ResourceHandle[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.list(filter){ kind?: import('@insiderfinance/totalfinance/workflows').ResourceHandleKind; } | undefined | unitless by name | Optional No @default declared; consult the signature and description. |
artifacts.list(filter).kindimport('@insiderfinance/totalfinance/workflows').ResourceHandleKind | unitless by name | Optional No @default declared; consult the signature and description. |
capabilitiesreadonly string[] | What every caller of this server holds (Stage 7B.2 Decision 9); default the runtime's defaults. unitless by name | Optional No @default declared; consult the signature and description. |
clock() => string | The instant stamped on a stored result's handle when `artifacts` is writable — the edge's clock (default `new Date().toISOString()`). unitless by name | Optional No @default declared; consult the signature and description. |
deadlineMsnumber | Soft wall-clock budget per tool call (ms). A call exceeding it returns an error. milliseconds | Optional No @default declared; consult the signature and description. |
defaultSeednumber | Deterministic seed policy (spec §18.5). Any stochastic CALL (Monte Carlo, resampling — a tool's
`stochastic` flag may be a per-call predicate) requires a seed; when absent, this default is
injected and echoed in `structured.assumptions.seed` so MCP results are reproducible. Default 0.
Deterministic calls (e.g. historical/parametric VaR) never get a meaningless seed injected. unitless by name | Optional No @default declared; consult the signature and description. |
jobsJobRunner | Explicit local worker runner; requires its artifact reader. Adds typed job controls, never grants. unitless by name | Optional No @default declared; consult the signature and description. |
jobs.cancel(id: string) => import('@insiderfinance/totalfinance/workflows').JobRecord | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.errorOperationError | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.codestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.contextRecord<string, unknown> | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.issuesimport('@insiderfinance/totalfinance/core/schema').SchemaIssue[] | unitless by name | Optional No @default declared; consult the signature and description. |
jobs.cancel().return.error.messagestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.operation{ id: string; version: string; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.operation.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.error.operation.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.finishedAtstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.inputsHashstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.operation{ id: string; version: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.operation.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.operation.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.progress{ fraction: number | null; stage: string; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.progress.fractionnumber | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.progress.stagestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.resultimport('@insiderfinance/totalfinance/workflows').ResourceHandle | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.contentHashstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.createdTimestampMsnumber | When the store minted the handle — the caller's clock in epoch ms, never the library's. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.expiresTimestampMsnumber | null | When the stored value stops being served, epoch ms; null = never. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.kindimport('@insiderfinance/totalfinance/workflows').ResourceHandleKind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.provenanceimport('@insiderfinance/totalfinance/core').Provenance | Caller-supplied provenance, preserved verbatim. unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.schemastring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.uristring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.result.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.seednumber | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.startedAtstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.stateimport('@insiderfinance/totalfinance/workflows').JobState | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.submittedAtstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.usage{ elapsedMs: number | null; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel().return.usage.elapsedMsnumber | null | milliseconds | Required / declared member No @default declared; consult the signature and description. |
jobs.cancel(id)string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get(id: string) => import('@insiderfinance/totalfinance/workflows').JobRecord | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.errorOperationError | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.codestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.contextRecord<string, unknown> | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.issuesimport('@insiderfinance/totalfinance/core/schema').SchemaIssue[] | unitless by name | Optional No @default declared; consult the signature and description. |
jobs.get().return.error.messagestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.operation{ id: string; version: string; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.operation.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.error.operation.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.finishedAtstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.inputsHashstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.operation{ id: string; version: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.operation.idstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.operation.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.progress{ fraction: number | null; stage: string; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.progress.fractionnumber | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.progress.stagestring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.resultimport('@insiderfinance/totalfinance/workflows').ResourceHandle | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.contentHashstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.createdTimestampMsnumber | When the store minted the handle — the caller's clock in epoch ms, never the library's. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.expiresTimestampMsnumber | null | When the stored value stops being served, epoch ms; null = never. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.kindimport('@insiderfinance/totalfinance/workflows').ResourceHandleKind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.provenanceimport('@insiderfinance/totalfinance/core').Provenance | Caller-supplied provenance, preserved verbatim. unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.schemastring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.uristring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.result.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.seednumber | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.startedAtstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.stateimport('@insiderfinance/totalfinance/workflows').JobState | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.submittedAtstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.usage{ elapsedMs: number | null; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.get().return.usage.elapsedMsnumber | null | milliseconds | Required / declared member No @default declared; consult the signature and description. |
jobs.get(id)string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.list() => import('@insiderfinance/totalfinance/workflows').JobRecord[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit(submission: import('@insiderfinance/totalfinance/workflows/local').JobSubmission) => import('@insiderfinance/totalfinance/workflows/local').JobRun | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit().return.cancel() => Promise<import('@insiderfinance/totalfinance/workflows').JobRecord> | Terminate the worker now; resolves with the cancelled (or already terminal) record. unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit().return.completionPromise<import('@insiderfinance/totalfinance/workflows').JobRecord> | Resolves with the terminal record — completed, failed, or cancelled. Never rejects. unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit().return.recordimport('@insiderfinance/totalfinance/workflows').JobRecord | The record as accepted (or, for an inline non-job operation, as completed). unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit(submission)import('@insiderfinance/totalfinance/workflows/local').JobSubmission | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit(submission).deadlineMsnumber | milliseconds | Optional No @default declared; consult the signature and description. |
jobs.submit(submission).idstring | The operation id. unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit(submission).inlineResultBytesnumber | unitless by name | Optional No @default declared; consult the signature and description. |
jobs.submit(submission).inputunknown | unitless by name | Required / declared member No @default declared; consult the signature and description. |
jobs.submit(submission).maxInputBytesnumber | unitless by name | Optional No @default declared; consult the signature and description. |
jobs.submit(submission).requestIdstring | unitless by name | Optional No @default declared; consult the signature and description. |
jobs.submit(submission).seednumber | unitless by name | Optional No @default declared; consult the signature and description. |
maxInputBytesnumber | Reject any tool call whose serialized arguments exceed this many bytes (compute-budget guard,
spec §18.5). Default 64 KB. unitless by name | Optional No @default declared; consult the signature and description. |
packs(OperationPack | ToolPack)[] | EXACT pack selection (alignment spec P1.1): omitted → the selected profile; provided → exactly
the packs given, nothing implicit. `packs: [optionsPack()]` exposes only the option tools;
expand the defaults with `packs: [...defaultPacks(), backtestPack()]`. When `tools` is also
given, the registry is their union (both are explicit). Pack tools obey the same read-only
filter, seed policy, and budgets as the defaults. unitless by name | Optional No @default declared; consult the signature and description. |
pageSizenumber | Maximum entries per tools/resources list page: integer 1–100, default 100. count (integer) | Optional No @default declared; consult the signature and description. |
profile'default' | 'valuation' | 'options' | 'portfolio' | 'research' | 'strategies' | 'backtesting' | 'scenarios' | 'full' | Task selection when neither tools nor packs is supplied. Explicit tools/packs remain exact. unitless by name | Optional No @default declared; consult the signature and description. |
readOnlyboolean | Financial read-only mode (default `true`): tools flagged `mutates` or requiring a write/approval
capability are filtered out. Explicit artifact storage and job controls are independent. unitless by name | Optional No @default declared; consult the signature and description. |
stores{ authorization?: AuthorizationStore; journal?: ExecutionJournalStore; } | The trade lifecycle's stores (Decision 10). unitless by name | Optional No @default declared; consult the signature and description. |
stores.authorizationAuthorizationStore | unitless by name | Optional No @default declared; consult the signature and description. |
stores.authorization.consume(input: import('@insiderfinance/totalfinance/workflows').GrantConsumption & { hashOrUri: string; }) => import('@insiderfinance/totalfinance/workflows').GrantConsumption | Atomically claim the grant with its validated write-ahead batch before journal commit.
Idempotent only for the same store, receipt, key and batch; all other claims refuse. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.consumedTimestampMsnumber | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.idempotencyKeystring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalEventsreadonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalStoreIdstring | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.receiptIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input)import('@insiderfinance/totalfinance/workflows').GrantConsumption & { hashOrUri: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).consumedTimestampMsnumber | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).hashOrUristring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).idempotencyKeystring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalEventsreadonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalStoreIdstring | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).receiptIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get(hashOrUri: string) => { handle: import('@insiderfinance/totalfinance/workflows').ResourceHandle; grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; consumed: import('@insiderfinance/totalfinance/workflows').GrantConsumption | null; } | null | The grant by content hash (or handle uri) with its consumption (null while unconsumed), or null. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumedimport('@insiderfinance/totalfinance/workflows').GrantConsumption | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.consumedTimestampMsnumber | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.idempotencyKeystring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalEventsreadonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalStoreIdstring | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.receiptIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.grantimport('@insiderfinance/totalfinance/portfolio').AuthorizationGrant | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.handleimport('@insiderfinance/totalfinance/workflows').ResourceHandle | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get(hashOrUri)string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.list() => import('@insiderfinance/totalfinance/workflows').ResourceHandle[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input: { grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; createdTimestampMs: import('@insiderfinance/totalfinance/core').EpochMs; }) => import('@insiderfinance/totalfinance/workflows').ResourceHandle | Store a grant under its content hash; idempotent (the first put stands). Returns its handle. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.contentHashstring | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.createdTimestampMsnumber | When the store minted the handle — the caller's clock in epoch ms, never the library's. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.expiresTimestampMsnumber | null | When the stored value stops being served, epoch ms; null = never. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.kindimport('@insiderfinance/totalfinance/workflows').ResourceHandleKind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.provenanceimport('@insiderfinance/totalfinance/core').Provenance | Caller-supplied provenance, preserved verbatim. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.schemastring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.uristring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.versionstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input){ createdTimestampMs: import('@insiderfinance/totalfinance/core').EpochMs; grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input).createdTimestampMsnumber | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input).grantimport('@insiderfinance/totalfinance/portfolio').AuthorizationGrant | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journalExecutionJournalStore | unitless by name | Optional No @default declared; consult the signature and description. |
stores.journal.append(input: { events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; }) => { journalId: string; appended: number; skipped: number; total: number; } | Append atomically; identical eventId/body retries are skipped, conflicting bodies refused. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.appendednumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.journalIdstring | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.skippednumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.totalnumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append(input){ events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append(input).eventsreadonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.list() => string[] | Every journal id, sorted. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.read(journalId: string) => import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Every event of a journal in append order (empty for an unknown journal). unitless by name | Required / declared member No @default declared; consult the signature and description. |