
Security News
Socket for Origin Now Available in Cursor’s App Marketplace
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.
@webmcp-today/schema
Advanced tools
Config format for WebMCP Today — zod schemas for community WebMCP tool configs
Zod schemas and TypeScript types for declarative WebMCP Today package documents. Use it to validate package submissions, version bodies, registry responses, and the related API-backed tool format.
npm install @webmcp-today/schema
The package is ESM-only and includes its TypeScript declarations.
createPackageSchema validates a complete package document. It checks package metadata, URL-pattern/domain scope, unique tool names, tool input schemas, and—when present—the API block's endpoint bindings and {{parameter}} references.
import { createPackageSchema } from "@webmcp-today/schema";
const result = createPackageSchema.safeParse({
version: 1,
domain: "github.com",
urlPatterns: ["*://github.com/*"],
title: "Example search tools",
description: "Search tools for github.com.",
api: {
baseUrl: "https://github.com",
endpoints: {
search: {
method: "GET",
path: "/api/search",
query: { q: "{{query}}" },
returns: "results[].{title: title, url: url}",
},
},
},
tools: [
{
name: "search",
description: "Search the site.",
inputSchema: {
type: "object",
properties: {
query: { type: "string", description: "Search query" },
},
required: ["query"],
},
annotations: { readOnlyHint: true },
execution: { mode: "api", endpoint: "search" },
},
],
});
if (!result.success) {
console.error(result.error.issues);
} else {
const pkg = result.data;
// `domain` is normalized to lowercase, with a leading `www.` removed.
console.log(pkg.domain);
}
domain must be a concrete, registrable hostname. Each urlPatterns entry uses a Chrome-extension-style match pattern and must stay within that domain. An API baseUrl must use HTTPS and be on the package domain or one of its subdomains. The only endpoint-level baseUrl exception is Hacker News's anonymous Firebase read API; it cannot use auth, and the executor omits cookies.
All public values are exported from the package root.
createPackageSchema, createPackageObjectSchema, updatePackageMetaSchema, publishVersionSchema, publishVersionSchemaForDomain, CreatePackageInput, UpdatePackageMetaInput, and PublishVersionInput.toolDescriptorSchema, inputSchemaSchema, executionDescriptorSchema, apiExecutionSchema, plus their inferred types. Tool execution currently supports execution: { mode: "api", endpoint }.apiBlockSchema, apiEndpointSchema, apiAuthSourceSchema, apiGraphqlSchema, collectApiIssues, and the ApiBlock/ApiEndpoint types. Endpoints can declare a method, path, query, one request-body form (body, form, or graphql), optional JMESPath returns, error locators, and named auth sources.webMcpPackageSchema, response schemas such as packageLookupResponseSchema, bridgeRequestSchema, and local-bridge request/response schemas.matchUrlPattern and rankPackagesByUrl; unknownPlaceholders; canonicalizeApiBlock and apiContentHash; and limits such as TOOL_NAME_MAX, TOOL_DESCRIPTION_MAX, and ENGINE_VERSION.For exact field constraints and all exports, see the source and the API-backed package-format documentation.
FAQs
Config format for WebMCP Today — zod schemas for community WebMCP tool configs
The npm package @webmcp-today/schema receives a total of 11 weekly downloads. As such, @webmcp-today/schema popularity was classified as not popular.
We found that @webmcp-today/schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.

Security News
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.