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

@johnhenry/aimatey-mcp

Latest version: v0.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: johnhenry
0 Stars
0 Forks
12 Versions
622 Downloads
TypeScript Repo language

Scan summary

@johnhenry/aimatey-mcp was last scanned on 27 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest 2 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 622 downloads.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 27 Nov 2026 No rules fired
0.2.0 25 Nov 2026 No rules fired
0.1.9 31 Oct 2026 No rules fired
0.1.8 23 Oct 2026 Not shown
0.1.7 7 Oct 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.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.3.0; other versions have their own rules, not their own score.

README

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

@johnhenry/aimatey-mcp

npm version license

Note: Previously published as aimatey-mcp@0.1.0.

MCP (Model Context Protocol) tool-calling for the aimatey Universal AI Adapter System — translate an MCP server's tools into the agentic tool-execution loop @johnhenry/aimatey-core's Bridge already ships (bridge.runTools()), via an injectable client.

npm install @johnhenry/aimatey-mcp

No hard (or peer) dependency on any MCP SDK — @johnhenry/aimatey-mcp depends only on @johnhenry/aimatey-types and a small structural interface (McpClientLike: listTools, callTool) that any MCP client can satisfy: the official @modelcontextprotocol/sdk, mcp-query (@johnhenry/mcp-query; previously published as @johnhenry/mcpq, now deprecated in favor of this name), or a test fake.

Why this is small

@johnhenry/aimatey-core already has a complete agentic loop (Bridge.runTools() / createRunTools()): execute → if the model requests tools, run them → append results → re-execute, until the model answers. This package doesn't reimplement any of that — it just converts MCP tools into the ToolDefinition shape that loop already consumes, so MCP tool-calling gets the same validation, iteration limits, and parallel execution for free.

Quick start

import { Bridge } from '@johnhenry/aimatey-core';
import { OpenAIFrontendAdapter } from '@johnhenry/aimatey-frontend';
import { OpenAIBackendAdapter } from '@johnhenry/aimatey-backend';
import { runMcpTools } from '@johnhenry/aimatey-mcp';

// Any client satisfying McpClientLike - e.g. an mcp-query MCPClient already
// connected to one or more servers.
declare const mcpClient: import('@johnhenry/aimatey-mcp').McpClientLike;

const bridge = new Bridge(
  new OpenAIFrontendAdapter(),
  new OpenAIBackendAdapter({ apiKey: process.env.OPENAI_API_KEY })
);

const result = await runMcpTools(bridge.runTools, {
  client: mcpClient,
  prompt: 'What files changed in the last commit?',
});

console.log(result.text);

API

Export Purpose
McpClientLike The structural interface an injected MCP client must satisfy (listTools, callTool)
mcpToolToIRTool(tool) Convert one MCP tool schema to an IRTool
extractMcpResultText(result) Best-effort text extraction from an MCP CallToolResult
mcpToolsToDefinitions(client, options?) List an MCP client's tools and build a Record<string, ToolDefinition>
runMcpTools(runTools, options) Run bridge.runTools() (or any compatible runTools function) against an MCP client's tools

mcpToolsToDefinitions and runMcpTools both accept:

  • server?: string — which server to list/call tools against, for multi-server clients
  • toolFilter?: (tool: McpToolSchema) => boolean — only include matching tools
  • signal?: AbortSignal — forwarded to callTool (and, with preferTasks, used to cancel the task)
  • preferTasks?: boolean — route calls through the client's optional callToolTask(...).result()

An MCP tool's title, annotations (e.g. destructiveHint) and outputSchema are kept on the IR tool under metadata.mcp, and toolFilter receives the full MCP schema, so you can gate destructive tools: toolFilter: (t) => t.annotations?.destructiveHint !== true.

Using your own tools object

If you want more control than runMcpTools gives you (e.g. mixing MCP tools with hand-written ones), use mcpToolsToDefinitions directly and call bridge.runTools() yourself:

import { mcpToolsToDefinitions } from '@johnhenry/aimatey-mcp';

const mcpTools = await mcpToolsToDefinitions(mcpClient);

const result = await bridge.runTools({
  prompt: 'Summarize the open issues.',
  tools: { ...mcpTools, myOwnTool: { description: '...', parameters: {...}, execute: async () => {...} } },
});

WebMCP compatibility

Works with WebMCP-exposed tools (tools registered in-page via document.modelContext, consumed by a browser-side agent) without any changes here - mcp-query ships webMcpToolServer(), an in-memory MCP-server shim you can plug into new MCPClient({ servers: { page: webMcpToolServer() } }). Any MCPClient built that way already satisfies McpClientLike.

Protocol versions

@johnhenry/aimatey-mcp is protocol-version-agnostic by design: it never speaks MCP's wire protocol (JSON-RPC, transports, capability negotiation) itself — it only calls client.listTools() and client.callTool() through the McpClientLike structural interface. Whichever MCP protocol revision(s) the injected client negotiates are supported transparently, with zero code in this package caring about the difference.

Concretely, for the reference client mcp-query (@johnhenry/mcp-query), ConnectionConfig supports:

Revision Era Notes
2025-11-25 legacy (v1) Classic initialize handshake, unsolicited notifications, resources/subscribe, optional session resumption. Default when neither versions nor versionNegotiation is set.
2026-07-28 modern server/discover-based negotiation, change notifications over a client-opened subscriptions/listen stream, no sessions/ping/logging/setLevel.
new MCPClient({
  servers: {
    // Default: legacy-only, no probe.
    a: { transport },
    // Additive: probe for modern, fall back losslessly to legacy.
    b: { transport, versions: ['2026-07-28', '2025-11-25'] },
    // Exclusive: pin to modern only - connect fails against a legacy-only server.
    c: { transport, versions: ['2026-07-28'] },
  },
});

Unknown revision strings are passed through to the SDK verbatim, so a future MCP revision needs no change in mcp-query (or @johnhenry/aimatey-mcp) to support — only a new versions entry at the call site. If you inject a different McpClientLike implementation (the official SDK wrapped by hand, or your own), consult its docs for which revisions it negotiates; @johnhenry/aimatey-mcp's behavior is identical either way.

Tasks and in-band elicitation

Two newer result shapes are the injected client's job, not this package's:

  • Tasks (io.modelcontextprotocol/tasks): a server may answer tools/call with a task handle (taskId, status, no content) instead of a result. Polling tasks/get, honoring the poll interval and cancelling belong to the client. If your client exposes callToolTask(name, args, opts) returning a handle with result() (and optionally cancel()), as mcp-query does, pass preferTasks: true and this package awaits result(), cancelling the task when signal aborts. Otherwise a task-shaped result fails with McpTaskUnresolvedError. A task-shaped callTool result is never re-driven through callToolTask, since that would run the tool twice.
  • In-band elicitation (resultType: "input_required", inputRequests, requestState): answering the server's questions and re-sending the call with requestState is done by the client's elicitation handler. If the client hands an input_required result back, this package throws McpInputRequiredError (naming the missing handler); it never prompts anyone itself.

Both errors are thrown from the tool's execute, so the tool loop reports them to the model as isError: true tool results, as it does for an MCP isError: true result.

License

MIT

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 @johnhenry/aimatey-mcp

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229