
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@modelcontextprotocol/core
Advanced tools
Model Context Protocol for TypeScript — public Zod schemas (spec + OAuth/OpenID)
Canonical public home for the Model Context Protocol specification and OAuth/OpenID Zod schemas.
These are the exact schema constants the SDK validates protocol and OAuth/OpenID payloads against internally. The @modelcontextprotocol/server and @modelcontextprotocol/client packages keep a Zod-free public surface, so this package exists as the supported place to import the
raw schemas when you need to validate or parse MCP messages yourself.
npm install @modelcontextprotocol/core
import { CallToolResultSchema } from '@modelcontextprotocol/core';
// Throws on invalid input; returns the typed result on success.
const result = CallToolResultSchema.parse(payload);
// Or non-throwing:
const parsed = CallToolResultSchema.safeParse(payload);
if (parsed.success) {
// parsed.data is a fully typed CallToolResult
}
This package exports only Zod schema constants (*Schema), in two groups:
CallToolResultSchema, ListToolsResultSchema, …; andOAuthTokensSchema, OAuthMetadataSchema, IdJagTokenExchangeResponseSchema, … (the schemas v1 exposed from @modelcontextprotocol/sdk/shared/auth.js).The corresponding TypeScript types, error classes, enums, and type guards are part of the public API of @modelcontextprotocol/server and
@modelcontextprotocol/client.
Migrating from v1? In v1 these schemas were imported from
@modelcontextprotocol/sdk/types.js(spec schemas) and@modelcontextprotocol/sdk/shared/auth.js(OAuth/OpenID schemas). Point those*Schemaimports at@modelcontextprotocol/coreand your existing.parse()/.safeParse()calls keep working unchanged.
FAQs
Model Context Protocol for TypeScript — public Zod schemas (spec + OAuth/OpenID)
The npm package @modelcontextprotocol/core receives a total of 1,022,087 weekly downloads. As such, @modelcontextprotocol/core popularity was classified as popular.
We found that @modelcontextprotocol/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.