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

@appport/mcp

Latest version: v1.5.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: rkendel
18 Versions
4.6K Downloads

Scan summary

@appport/mcp was last scanned on 23 Nov 2026 at version 1.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 18 versions; the latest 5 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 1.5.0.
  • Downloads: 4,600 downloads.

Versions

18 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.5.0 LATEST 23 Nov 2026 No rules fired
1.4.0 23 Nov 2026 No rules fired
1.3.12 19 Nov 2026 No rules fired
1.3.11 19 Nov 2026 Not shown
1.3.10 19 Nov 2026 Not shown

No rules fired in 1.5.0

Findings

Findings for v1.5.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 1.5.0; other versions have their own rules, not their own score.

README

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

@appport/mcp

The MCP adapter for AppPort: exposes an AppPort application's capabilities to any MCP client (agents, IDEs, other hosts) over the official @modelcontextprotocol/sdk.

Architecture

            AppPort  (authority: capabilities, authorization, idempotency, timeouts)
               │
     ┌─────────┴──────────┐
  native clients      @appport/mcp  ──►  MCP clients

AppPort is the authority; MCP is a projection. This package defines no capabilities, permissions, tenants, operations, persistence or business logic, and retains no state between calls. Each MCP tools/call is translated into an AppRequest and dispatched through AppPortApplication.handleRequest — the same pipeline every other transport uses — so validation, authorization, idempotency, timeouts, telemetry and handler execution are unchanged. JSON-RPC, protocol negotiation, framing and transports are the MCP SDK's; none is reimplemented here.

MCP tools/call → @appport/mcp → AppRequest → application.handleRequest
                                   → validate → authorize → capability handler

Server setup

createMcpHandler returns a standard (Request) => Promise<Response> function serving MCP Streamable HTTP. It is stateless — each HTTP request gets its own short-lived SDK server and transport and is answered as one JSON response — so it runs on serverless platforms and any fetch-compatible runtime without sticky sessions or a long-lived process. GET and DELETE (server-initiated streams, session teardown) are declined with 405, which MCP permits.

import { createMcpHandler } from "@appport/mcp";
import { errors } from "@appport/protocol";

const handler = createMcpHandler(application, {
  // Runs per MCP request. Verify credentials, then say who the caller is.
  async context({ headers, authInfo }) {
    const token = headers["authorization"]?.toString().replace(/^Bearer /, "");
    if (!token) return undefined; // anonymous: AppPort allows only public capabilities
    const session = await myApp.verify(token); // your AppPort `Session`
    if (!session) throw errors.unauthorized("Invalid credentials");
    return { session };
  }
});

// e.g. a Next.js / Vercel route handler
export const POST = (request: Request) => handler(request);
export const GET = POST;
export const DELETE = POST;

For stdio or in-memory use, createMcpServer(application, options) returns the SDK Server to connect to any SDK transport.

Options (McpServerOptions): context, serverInfo (defaults to the application's name and version), include, prefix, includeBuiltins.

The host owns deployment, routing, TLS, origin/DNS-rebinding checks, rate limiting and credential verification. The host may also verify the credential before calling the handler and pass it as handler(request, { authInfo }); it then reaches context as authInfo.

Authentication

The adapter never authenticates callers and never trusts them implicitly. The host supplies the authenticated session and/or principal — the same values a native transport passes in AppPort's DispatchOptions — through context.

  • No context option, or context returns nothing → the call is dispatched anonymously. AppPort's authorizer refuses any capability that requires permissions (UNAUTHORIZED); only public capabilities run.
  • context throws an AppPortError (UNAUTHORIZED/FORBIDDEN) → reported as a tool error. Any other exception is reported as a JSON-RPC internal error with no detail.
  • Identity cannot be supplied by the MCP caller in tool arguments or _meta.

Idempotency keys are scoped by AppPort to the session, so provide a stable, per-caller session.id.

Capability exposure

Tools are derived from the application manifest on every request; there is no second list.

AppPort MCP tool
request capability call.create tool call_create (. → _, optional prefix)
capability inputSchema tool inputSchema (must be an object schema)
capability outputSchema tool outputSchema (when an object schema)
capability name/version/permissions tool _meta["dev.appport/capability"]

The tool name is a label, not an identity: calls resolve through the manifest. Two capabilities projecting to one tool name is an error, not an overwrite. Stream capabilities, non-object inputs and the reserved appport.* namespace (unless includeBuiltins) are not exposed. Tool discovery lists what the application publishes; it does not filter by caller — authorization is enforced when a tool is called.

Metadata

AppPort request metadata is carried in the MCP tools/call _meta object and placed, unchanged, on the AppRequest (MCP_META exports the keys):

_meta key AppPort field Notes
dev.appport/idempotencyKey idempotencyKey replay is AppPort's (§13.1); this package keeps no cache
dev.appport/timeoutMs timeoutMs becomes the capability's deadline; AppPort clamps it (§13.3); no MCP default is added
dev.appport/traceId traceId reaches context.traceId; AppPort generates one if absent; echoed on the result _meta

Malformed values (empty strings, non-positive timeouts) are rejected as INVALID_REQUEST. MCP request cancellation and HTTP client disconnects abort the capability's context.signal.

Errors

Protocol-level problems use JSON-RPC errors from the SDK: malformed JSON or messages (-32700/-32600), unknown method (-32601), unknown tool (-32602), and adapter failures (-32603, no detail). Every AppPort outcome is a tool result: success has content (JSON text) and structuredContent; failure has isError: true, text CODE: message, and _meta["dev.appport/error"] (MCP_ERROR_META) with { code, category, retryable, details? }. details is what AppPort already sanitized (§16).

AppPort code category
INVALID_REQUEST, INVALID_INPUT, INVALID_PROTOCOL, UNSUPPORTED_VERSION, UNSUPPORTED_CAPABILITY_VERSION, PAYLOAD_TOO_LARGE, NO_COMPATIBLE_MATERIALIZATION invalid_request
UNAUTHORIZED unauthenticated
FORBIDDEN forbidden
NOT_FOUND, UNKNOWN_CAPABILITY not_found
CONFLICT conflict
TIMEOUT timeout
RATE_LIMITED rate_limited
CANCELLED cancelled
STREAM_ERROR, namespaced extension codes (acme.UPSTREAM_DOWN) capability_failure
INTERNAL_ERROR, anything else internal

Resources and notifications: subscribe instead of polling (1.4.0)

With resources, the application's declared events become MCP resources, so an agent subscribes to (say) a meeting's transcript and is notified of each line instead of calling a feed tool every 30 seconds. Off by default.

const handler = createMcpSessionHandler(application, {
  context,                       // the same host identity hook as for tools
  resources: {
    // optional: answer resources/read from a capability (dispatched as the caller, validated and authorized)
    readers: {
      "meetings.transcript.appended": { capability: "meetings.transcript.get", input: ({ scope }) => ({ meetingId: scope }) }
    }
  }
});
MCP AppPort
resources/list one resource per declared event: appport://events/<event> (eventResourceUri(event))
resources/templates/list appport://events/<event>{?scope}: one scope's events (eventResourceUri(event, scope))
resources/subscribe an AppPort subscription to that event and scope, authorized like a native one (§9.4)
notifications/resources/updated sent for each delivered event; the envelope is in _meta["dev.appport/event"] (MCP_EVENT_META)
resources/read the reader capability's output, or { event, scope?, subscribed, events } observed since subscribing (history, default 20)
resources/unsubscribe releases the AppPort subscription

Authorization. Subscribing, every delivery and every read go through application.authorizeObservation, i.e. the application's Authorizer with the event as the capability, its permissions as required and { scope } as input, as the identity context returned when the agent subscribed. Deliveries are re-authorized, so revoked access stops notifications on a live subscription. A denial with NOT_FOUND (a concealing policy) and a resource that does not exist are the same JSON-RPC error, -32002 (MCP_RESOURCE_NOT_FOUND) "Resource not found: "; UNAUTHORIZED and FORBIDDEN are -32600 with the AppPort code in the message and in data["dev.appport/error"].

Which server. Notifications need a connection that outlives a request:

  • createMcpServer(application, { resources }) (stdio, in-memory, any SDK transport): resources with subscribe: true. Closing the connection releases every subscription.
  • createMcpSessionHandler(application, { resources, idleTimeoutMs, maxSessions, reidentifyMs }): Streamable HTTP with sessions (mcp-session-id) and the GET event stream for notifications. A session keeps the principal it was opened with: a request resolving to another principal is refused (403) and the session closed; every reidentifyMs (default 15000) the last request's credentials are re-checked through context, and the session ends when they no longer hold. Sessions live in this process. handler.close() ends them all; handler.sessionCount counts them.
  • createMcpHandler stays stateless: resources/list and resources/read work, and it advertises subscribe: false (subscribe is MethodNotFound).

createMcpBridge(application, dispatch, { resources }) offers the same as methods (listResources, listResourceTemplates, readResource, subscribeResource(uri, onUpdated), unsubscribeResource, close) for hosts that run their own MCP server; refusals are AppPortErrors (NOT_FOUND, UNAUTHORIZED, FORBIDDEN).

Security

Exposing a capability through MCP does not bypass AppPort authorization: every call passes AppPort validation and the application's authorizer, and handlers receive the host-supplied session/principal. Tenant and resource isolation remain the application's responsibility, enforced in capability handlers through that context (for example context.session.attributes); a caller cannot reach another tenant's data through MCP any more than through any other transport.

State

For tools, none. Nothing is cached, stored or shared between calls; createMcpHandler builds a fresh SDK server per HTTP request. Resource subscriptions (opt-in) are the one exception: they live as long as their MCP connection or session. Durable and ephemeral state (idempotency records, sessions, operations) belong to the AppPort application.

Compatibility

createMcpBridge, toMcpTools, toToolName, fromToolName and describeError remain. createMcpBridge(...).callTool(name, args, metadata?) now forwards the AppPort idempotency key, timeout and trace ID (previously dropped), and its results now carry structuredContent and _meta. Prefer createMcpHandler / createMcpServer, which speak MCP; fromToolName is lossy for capability names containing _ and is not used internally.

@appport/mcp/bridge (1.3.0)

@appport/mcp/bridge exports the projection only: createMcpBridge, toMcpTools, toToolName, fromToolName, MCP_META, MCP_ERROR_META, mcpErrorCategory and their types. It never imports @modelcontextprotocol/sdk, at runtime or in its declarations. The root @appport/mcp exports the same names plus the MCP server (createMcpServer, createMcpHandler), which does. The MCP SDK's own declarations reference the DOM-only HeadersInit, so a Node-only TypeScript project (no DOM lib, skipLibCheck: false) can import @appport/mcp/bridge but must either add the DOM lib or enable skipLibCheck to import the @appport/mcp root. @appport/sdk takes its MCP bridge exports from this subpath.

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 @appport/mcp

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229