Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@introspection-ai/eval-simulate

Latest version: v0.16.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: brightsparc, yoga-introspection
13 Versions
3.2K Downloads

Scan summary

@introspection-ai/eval-simulate was last scanned on 29 Nov 2026 at version 0.16.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest 5 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 0.16.0.
  • Downloads: 3,211 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.16.0 LATEST 29 Nov 2026 No rules fired
0.15.0 27 Nov 2026 No rules fired
0.14.0 27 Nov 2026 No rules fired
0.13.0 27 Nov 2026 Not shown
0.12.0 26 Nov 2026 Not shown

No rules fired in 0.16.0

Findings

Findings for v0.16.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.16.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@introspection-ai/eval-simulate

Simulates a Recipe's bindings in evals. A Recipe keeps a fake of each binding it uses under fakes/, and this package serves them, validates every call against the binding's captured contract, and keeps their state where the eval's checks can read it. It serves MCP fakes (fakes/mcp/<server-id>/), from its /mcp entry points, and API fakes of REST APIs described by OpenAPI (fakes/api/<api-id>/), from /api, both from one world on one port.

Entry point Holds
@introspection-ai/eval-simulate/mcp The MCP fakes' contract, handler helpers and host (startServices)
@introspection-ai/eval-simulate/mcp/answers Reading answers
@introspection-ai/eval-simulate/mcp/verify Checking a run
@introspection-ai/eval-simulate/mcp/checks The tests a Recipe keeps
@introspection-ai/eval-simulate/mcp/testing The fake's contract tests
@introspection-ai/eval-simulate/api API fakes: contract, handlers, emulate runtime, mounts
@introspection-ai/eval-simulate/emulators/microsoft Microsoft 365 over Graph: mail, calendar, OneDrive
@introspection-ai/eval-simulate/emulators/google Gmail, Calendar, Drive: emulate's emulator held to Google's contract
@introspection-ai/eval-simulate The same as /mcp, whose startServices also serves /api's mounts

The package was published as @introspection-ai/mcp-fakes up to 0.5.0, which is deprecated. To move, depend on this package and import from /mcp; its bin is eval-simulate serve.

MCP fakes

The host for a Recipe's MCP fakes. A fake stands in for an MCP server the Recipe declares, during an eval run: it serves the tools the server's captured tools.ts describes, validates every call against those schemas, and keeps its state where the eval's checks can read it. One process serves every fake of a Recipe, so a task needs one sidecar and one port however many servers the Recipe declares.

The package is built on the official MCP TypeScript SDK, version 2 (@modelcontextprotocol/server and @modelcontextprotocol/client). It serves the captured JSON Schemas as they are, through fromJsonSchema; no schema passes through zod.

The fakes it serves

A Recipe's fakes/ holds one directory per server under mcp/, named by the server id the Recipe declares:

fakes/
  package.json            # depends on @introspection-ai/eval-simulate
  package-lock.json       # what the sidecar image installs with npm ci
  Dockerfile              # the Harbor sidecar's image (below)
  mcp/
    index.ts              # every fake, imported statically
    crm/
      index.ts            # exports the fake's manifest, contract, register and observed
      tools.ts            # the captured tools the Recipe allows (written by `introspection bindings mcp capture`)
      answers.ts          # each tool's successful answer, declared by hand
      contract.ts         # contractOf(tools, answers)
      observed.ts         # what the real server answered (written by `introspection bindings mcp observe`)
      entities.ts         # the fake's state type
      handlers.ts         # one SDK tool callback per allowed tool
      manifest.json       # server identity, capture, entity map
  scenarios/
    index.ts              # SCENARIOS and world(name, clock): every fake's starting state
  tests/
    fakes.test.js         # checkRecipeFakes (below)
    setup.js              # the recording's global setup and teardown
    responses.jsonl       # every answer the contract tests received

mcp/index.ts exports fakes, an object keyed by server id whose values are the fakes' modules: each exports its manifest, its contract, its register and, where it has an observed.ts, its observed. A fake's index.ts re-exports manifest.json as imported, with no cast: Manifest takes the strings a JSON import widens, and the host refuses a value the protocol does not allow, such as an icon theme other than light or dark. A fake's id is its directory under mcp/ and the server id the Recipe declares in its package.json. scenarios/index.ts exports world(scenario, clock, seed, context) and the scenarios by name; a world that models no subject ignores seed and context.

The contract

The CLI writes tools.ts and observed.ts as TypeScript modules whose default export is the JSON as const, so TypeScript keeps every literal and TypeBox's Static infers each schema's type:

// Written by `introspection bindings mcp capture`. Do not edit.
// biome-ignore-all format: the CLI writes this file and reads it back
// prettier-ignore
export default { "tools": [ … ] } as const;

A formatter may rewrite the object: the CLI reads it back as JSON5 and compares values, not text.

A fake declares each tool's successful answer in answers.ts, an Answer: the format the server answers in, json, toon, prefixed_json (JSON after the fixed prefix and before the optional suffix) or text, and the TypeBox schema of the decoded value; a text answer has none. contract.ts binds the two:

// answers.ts
import { Type } from "typebox";

export const answers = {
  "send-email": {
    format: "prefixed_json",
    prefix: "Email sent successfully! ",
    schema: Type.Object({ id: Type.String() }, { additionalProperties: false }),
  },
  "get-email": { format: "text" },
};

// contract.ts
import { contractOf } from "@introspection-ai/eval-simulate/mcp";
import { answers } from "./answers.ts";
import tools from "./tools.ts";

export const contract = contractOf(tools, answers);
export type Contract = typeof contract;

contractOf gives each tool, by name and in captured order, its entry: the captured tool as it is served, its input schema (args), the defaults it states, and its answer. A tool that states an outputSchema has that as its answer, { format: 'json', schema: outputSchema }, and declares none. The type check fails when answers misses a tool or declares one for a tool with an outputSchema; contractOf throws for those and for an answer of a tool not captured. typebox 1 is a peer dependency.

capture writes only the tools the Recipe allows, so tools.ts holds the tools the fake registers. A fake captured with --all-tools names the tools it registers as a third argument, and its contract holds only those: answers are needed for them alone, and an answer for any other tool is refused.

export const contract = contractOf(tools, answers, ["send-email", "get-email"]);
Type Is
Args<C, N> A tool's arguments as its handler receives them, the defaults the host fills required
SentArgs<C, N> A tool's arguments as a caller sends them
Result<C, N> A tool's decoded answer: its schema's Static, or the text of a text answer
Answered<C> A call a fake answered, { name, args, result }, narrowed by name
Entry, Contract, Answer One tool's entry; every entry by name; a declared answer

observedOf(observed) gives each tool of a fake's observed.ts its sampled count and the answer the real server gave, in the same Answer shape, and a code-mode tool each API operation's own under operations; a fake's index.ts exports it as observed for checkRecipeFakes. That check holds a code-mode tool's recorded call to the operation the arguments its manifest's codeMode names select, and to the tool's own answer when they select no observed one. It reads a tool's sampled and result only, which have the same shape from format 3 on, so it reads formats 3 to 6 alike and refuses an older file, which records no answer formats. What later formats change (masking, source, and the provenance and source.merged of format 6) is how the CLI derives and merges a file, which the check does not read; so a newer format is not refused.

Writing a handler

handlers.ts registers its tools with the SDK directly. toolsOf(contract) gives config(name), which builds a tool's registration from its captured entry and types the callback's arguments, and answer(name, value), which answers in the tool's declared format, its value typed by the answer's schema:

import {
  type McpServer,
  notImplemented,
  text,
  toolsOf,
} from "@introspection-ai/eval-simulate/mcp";
import { contract } from "./contract.ts";
import type { State } from "./entities.ts";

const { config, answer } = toolsOf(contract);

export function register(server: McpServer, state: State) {
  server.registerTool(
    "list-deals",
    config("list-deals"),
    async ({ limit, filter }) => {
      // `limit` is filled from the schema's default when the caller omits it.
      if (filter && filter.op !== "eq")
        return notImplemented(`the filter op ${filter.op}`);
      return answer("list-deals", { deals: state.deals.slice(0, limit) }); // encoded as declared, TOON say
    },
  );

  server.registerTool(
    "get-deal",
    config("get-deal"),
    async ({ id }) => answer("get-deal", { id, stage: "Proposal" }), // states an outputSchema: structuredContent
  );
}
  • config(name) carries the tool's title, description, annotations, icons and _meta as captured, and its input and output schemas wrapped with fromJsonSchema. It refuses a tool that is not captured, a tool that declares execution with taskSupport optional or required (the SDK cannot serve it), and an input schema that states a default below the top level (the host would not fill it). A tool declaring "taskSupport": "forbidden", the protocol's default and what many servers declare on every tool, is served without execution, which means the same.
  • Register in captured order. The SDK lists tools in the order they are registered, so the served list then matches the capture.
  • answer(name, value) encodes the value in the tool's format (encode), putting a prefixed_json answer's prefix before its JSON; a tool that states an outputSchema answers with structured(value). TOON is written by @toon-format/toon, with an empty array under a key or at the root rewritten from the library's key: [] to the length form key[0]:, as the real server's encoder writes it (TOON spec 3.3 allows both). The canonical-TOON check in observed.ts uses the same encoder.
  • text(value, isError?) builds a text result, for a tool error.
  • structured<T>(value) builds the result of a tool that declares an output schema: the structured content, and its JSON as the text item.
  • notImplemented(what) is the tool error for an argument value that selects a behaviour the handler does not implement, such as a filter operator: This fake does not implement <what>.
  • labelId(label) derives a stable UUID from a readable label, so a world's ids are the same from run to run.
  • toolConfig(tools) is the config under toolsOf, for a fake without a contract.
A seeded subject

Where a fake models how someone or something responds to the agent, the response comes from a seed, so a run repeats exactly and a repeat on another seed varies only the subject. world(scenario, clock, seed) receives the seed (0 unless the run names one) and puts it in the state of each fake that draws from it. A handler draws with randomOf(seed, ...key), a generator of numbers in [0, 1):

import { randomOf } from "@introspection-ai/eval-simulate/mcp";

server.registerTool("submit", config("submit"), async ({ itemId }) => {
  const subject = state.subjects[state.current];
  const random = randomOf(state.seed, subject.id, itemId);
  const accepted = random() < subject.affinity[itemId];
  return answer("submit", { accepted });
});

The same seed and key give the same numbers whatever was drawn before, so key each draw by what the call and the state hold, never by how many calls came before it: an answer depends on the inputs and the state, not on the call's position. Dates still come from the world's clock. The seed reaches only the world and the draws; the tools, their schemas and their answers' formats are the contract, the same for every seed. A handler never reads which test or outcome a run expects.

The simulation context and stateless fakes

A run's context is its seed, the subject it simulates and which of the subject's conversations it is, plus the run's id for labels. startServices takes them as seed, subject, conversation and run; a sidecar reads EVAL_SIMULATE_SEED, EVAL_SIMULATE_SUBJECT, EVAL_SIMULATE_CONVERSATION and EVAL_SIMULATE_RUN (contextOf(env) reads them the same way). world receives it as its fourth argument and puts it in the state of each fake that draws from it, as it does the seed.

A fake keyed by the context needs no state carried between conversations or trials. partitionOf, shuffleOf and sliceOf draw from a seed or a context, keyed by its seed and subject; put the conversation in the key when a draw should differ per conversation. The run never keys a draw, so the candidates and arms of one run meet the same world.

import { partitionOf, sliceOf } from "@introspection-ai/eval-simulate/mcp";

// Each item belongs to one conversation, so no conversation repeats another's.
const mine = state.items.filter(
  (item) =>
    partitionOf(state.context, "conversation", item.id, conversations) ===
    state.context.conversation - 1,
);
// The k-th request gets the k-th slice, with nothing remembered about earlier ones.
const batch = sliceOf(
  state.context,
  ["batch", state.context.conversation],
  mine,
  state.requests,
  5,
);

Count state.requests from the calls the fake has answered, never from the agent's arguments. replay(fakes, world, calls, { scenario, clock, seed, subject, conversation }) rebuilds every fake's state from a call log, as record or a series writes it, so a verifier or the next trial can derive the state instead of reading or restoring it, and the next conversation of a series can start from it (see A series on fresh fakes).

Reading answers

@introspection-ai/eval-simulate/mcp/answers reads a successful answer back: decoded by its format and validated against its schema with TypeBox's compiled validator. A Recipe's contract tests check every answer with it, and its eval checks read the agent's tool results with it.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @introspection-ai/eval-simulate

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229