diff --git a/.github/workflows/update-toolhive-reference.yml b/.github/workflows/update-toolhive-reference.yml
index 16d43583..1d4ac596 100644
--- a/.github/workflows/update-toolhive-reference.yml
+++ b/.github/workflows/update-toolhive-reference.yml
@@ -25,10 +25,8 @@ jobs:
update-reference:
runs-on: ubuntu-latest
steps:
- - name: Checkout repository
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- with:
- fetch-depth: 0
+ - name: Setup
+ uses: ./.github/actions/setup
- name: Set up Git
run: |
diff --git a/docs/toolhive/guides-cli/registry.mdx b/docs/toolhive/guides-cli/registry.mdx
index e384a50e..e2b5d317 100644
--- a/docs/toolhive/guides-cli/registry.mdx
+++ b/docs/toolhive/guides-cli/registry.mdx
@@ -133,9 +133,10 @@ configure ToolHive to use a custom registry instead. This is useful for
organizations that want to maintain their own private registry of MCP servers.
The registry is a JSON file that follows the
-[ToolHive registry schema](../reference/registry-schema.mdx). Once you configure
-a custom registry, ToolHive uses it for all commands that interact with the
-registry, such as `thv registry list`, `thv registry info`, and `thv run`.
+[ToolHive registry schema](../reference/registry-schema-toolhive.mdx). Once you
+configure a custom registry, ToolHive uses it for all commands that interact
+with the registry, such as `thv registry list`, `thv registry info`, and
+`thv run`.
Refer to the
[built-in registry file](https://github.com/stacklok/toolhive/blob/main/pkg/registry/data/registry.json)
diff --git a/docs/toolhive/guides-registry/configuration.mdx b/docs/toolhive/guides-registry/configuration.mdx
index 649b6954..c490a77e 100644
--- a/docs/toolhive/guides-registry/configuration.mdx
+++ b/docs/toolhive/guides-registry/configuration.mdx
@@ -16,7 +16,7 @@ registryName: my-registry
# Registries configuration (required, can have multiple registries)
registries:
- name: toolhive
- # Data format: upstream (MCP registry format) or toolhive (legacy)
+ # Data format: upstream or toolhive (see below)
format: upstream
# Git repository configuration
@@ -63,6 +63,17 @@ database:
| `--config` | Path to YAML configuration file | Yes | - |
| `--address` | Server listen address | No | `:8080` |
+## Registry data formats
+
+The `format` field specifies the JSON schema format for the registry data:
+
+- **`upstream`**: The official
+ [upstream MCP registry format](../reference/registry-schema-upstream.mdx),
+ used by the MCP Registry API and recommended for new registries.
+- **`toolhive`**: The
+ [ToolHive-native format](../reference/registry-schema-toolhive.mdx), used by
+ the built-in ToolHive registry.
+
## Registries
The server supports five registry types, each with its own configuration
diff --git a/docs/toolhive/reference/registry-schema.mdx b/docs/toolhive/reference/registry-schema-toolhive.mdx
similarity index 53%
rename from docs/toolhive/reference/registry-schema.mdx
rename to docs/toolhive/reference/registry-schema-toolhive.mdx
index a3969606..70192cef 100644
--- a/docs/toolhive/reference/registry-schema.mdx
+++ b/docs/toolhive/reference/registry-schema-toolhive.mdx
@@ -7,9 +7,19 @@ displayed_sidebar: toolhiveSidebar
import JSONSchemaViewer from '@theme/JSONSchemaViewer';
import Schema from '@site/static/api-specs/toolhive-legacy-registry.schema.json';
-This is the JSON schema for the ToolHive registry. It defines the structure and
-constraints for the registry entries, ensuring that all entries conform to a
-consistent format.
+This is the JSON schema for the ToolHive-native registry format. It defines the
+structure and constraints for registry entries, ensuring that all entries
+conform to a consistent format.
+
+:::info
+
+This format is considered legacy now that an
+[official upstream registry format](registry-schema-upstream.mdx) exists.
+ToolHive supports both formats, and the ToolHive-native format continues to work
+for the built-in registry, custom file-based registries, and the ToolHive
+Registry Server.
+
+:::
To use this schema in your own custom registry file, add a `$schema` property at
the top of your JSON file:
diff --git a/docs/toolhive/reference/registry-schema-upstream.mdx b/docs/toolhive/reference/registry-schema-upstream.mdx
new file mode 100644
index 00000000..00a6fb99
--- /dev/null
+++ b/docs/toolhive/reference/registry-schema-upstream.mdx
@@ -0,0 +1,44 @@
+---
+title: Upstream registry JSON schema
+description: The JSON schema for the official upstream MCP registry format.
+displayed_sidebar: toolhiveSidebar
+---
+
+import JSONSchemaViewer from '@theme/JSONSchemaViewer';
+import RegistrySchema from '@site/static/api-specs/upstream-registry.schema.json';
+import McpServerSchema from '@site/static/api-specs/mcp-server.schema.json';
+
+This is the JSON schema for the official upstream MCP registry format. It
+defines the structure and constraints for registry entries, ensuring that all
+entries conform to a consistent format. The registry wraps the official MCP
+server schema, which is documented separately below.
+
+:::info
+
+ToolHive also supports the
+[ToolHive-native registry format](./registry-schema-toolhive.mdx), which is used
+by the built-in registry. Both formats work with custom file-based registries
+and the ToolHive Registry Server.
+
+:::
+
+To use this schema in your own custom registry file, add a `$schema` property at
+the top of your JSON file:
+
+```json
+{
+ "$schema": "https://raw.githubusercontent.com/stacklok/toolhive/main/pkg/registry/data/upstream-registry.schema.json",
+ ...
+}
+```
+
+## Registry schema
+
+
+
+## MCP server object schema
+
+The `servers` array in the registry contains objects that conform to the
+official MCP server schema:
+
+
diff --git a/docs/toolhive/tutorials/custom-registry.mdx b/docs/toolhive/tutorials/custom-registry.mdx
index d2ff5925..fb789055 100644
--- a/docs/toolhive/tutorials/custom-registry.mdx
+++ b/docs/toolhive/tutorials/custom-registry.mdx
@@ -325,8 +325,8 @@ registries and private servers hosted within your organization.
## Next steps
-- Explore the full [schema reference](../reference/registry-schema.mdx) to
- understand all available configuration options
+- Explore the full [schema reference](../reference/registry-schema-toolhive.mdx)
+ to understand all available configuration options
- Learn about [custom permissions](../guides-cli/custom-permissions.mdx) for
fine-grained security control
- Set up [secrets management](../guides-cli/secrets-management.mdx) for servers
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index b129e349..36315178 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -205,7 +205,11 @@ const config: Config = {
},
{
label: 'ToolHive Registry schema',
- to: 'toolhive/reference/registry-schema',
+ to: 'toolhive/reference/registry-schema-toolhive',
+ },
+ {
+ label: 'Upstream Registry schema',
+ to: 'toolhive/reference/registry-schema-upstream',
},
{
label: 'ToolHive Registry API',
diff --git a/package-lock.json b/package-lock.json
index 5e8de973..8fa8f98f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,6 +23,7 @@
"redocusaurus": "2.5.0"
},
"devDependencies": {
+ "@apidevtools/json-schema-ref-parser": "^15.2.1",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@docusaurus/types": "3.9.2",
@@ -359,6 +360,22 @@
"url": "https://github.com/sponsors/antfu"
}
},
+ "node_modules/@apidevtools/json-schema-ref-parser": {
+ "version": "15.2.1",
+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-15.2.1.tgz",
+ "integrity": "sha512-XaFfxKmYHUlYla8VMG1sOaX+uZwX2Bbk51pC7D4Oy723HVmzTrJuh5oEFAeFfPQX3HkILXabuvlXzs1YcQmvJQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-yaml": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "peerDependencies": {
+ "@types/json-schema": "^7.0.15"
+ }
+ },
"node_modules/@babel/code-frame": {
"version": "7.28.6",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz",
@@ -10381,9 +10398,9 @@
}
},
"node_modules/diff": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz",
- "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==",
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.2.tgz",
+ "integrity": "sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
@@ -14564,15 +14581,15 @@
}
},
"node_modules/lodash": {
- "version": "4.17.21",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
+ "version": "4.17.23",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",
+ "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
"license": "MIT"
},
"node_modules/lodash-es": {
- "version": "4.17.22",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.22.tgz",
- "integrity": "sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==",
+ "version": "4.17.23",
+ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz",
+ "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
"license": "MIT"
},
"node_modules/lodash.debounce": {
diff --git a/package.json b/package.json
index 36ea6eb7..21001265 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
"redocusaurus": "2.5.0"
},
"devDependencies": {
+ "@apidevtools/json-schema-ref-parser": "^15.2.1",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/tsconfig": "3.9.2",
"@docusaurus/types": "3.9.2",
diff --git a/scripts/bundle-upstream-schema.mjs b/scripts/bundle-upstream-schema.mjs
new file mode 100644
index 00000000..639aae3a
--- /dev/null
+++ b/scripts/bundle-upstream-schema.mjs
@@ -0,0 +1,96 @@
+#!/usr/bin/env node
+// SPDX-FileCopyrightText: Copyright 2025 Stacklok, Inc.
+// SPDX-License-Identifier: Apache-2.0
+
+/**
+ * This script dereferences the upstream registry schema, resolving all $ref
+ * references (including remote ones) into a single bundled schema file.
+ *
+ * It also fetches and dereferences the official MCP server schema separately
+ * for improved rendering on the documentation page. The MCP server schema URL
+ * is extracted from the $ref in the upstream registry schema.
+ *
+ * This is necessary because the upstream schema references the official MCP
+ * server schema, which contains internal $ref references that the JSON Schema
+ * Viewer plugin cannot resolve at runtime.
+ */
+
+import { readFileSync, writeFileSync } from 'fs';
+import { dirname, join } from 'path';
+import { fileURLToPath } from 'url';
+import $RefParser from '@apidevtools/json-schema-ref-parser';
+
+const __dirname = dirname(fileURLToPath(import.meta.url));
+const STATIC_DIR = join(__dirname, '..', 'static', 'api-specs');
+
+const REGISTRY_SCHEMA = join(STATIC_DIR, 'upstream-registry.schema.json');
+const MCP_SERVER_SCHEMA = join(STATIC_DIR, 'mcp-server.schema.json');
+
+/**
+ * Extract the MCP server schema URL from the upstream registry schema.
+ * Looks for $ref in data.properties.servers.items.
+ */
+function extractMcpServerUrl(registrySchemaPath) {
+ const schema = JSON.parse(readFileSync(registrySchemaPath, 'utf-8'));
+ const ref = schema?.properties?.data?.properties?.servers?.items?.$ref;
+
+ if (!ref || !ref.startsWith('http')) {
+ throw new Error(
+ 'Could not find MCP server schema $ref in upstream registry schema'
+ );
+ }
+
+ return ref;
+}
+
+/**
+ * Replace the MCP server $ref in the registry with a placeholder that directs
+ * readers to the separate MCP server schema section.
+ */
+function simplifyRegistrySchema(schema, mcpServerUrl) {
+ const serverPlaceholder = {
+ type: 'object',
+ description: `MCP server object (see MCP server object schema section below). Source: ${mcpServerUrl}`,
+ };
+
+ // Replace servers.items $ref
+ if (schema?.properties?.data?.properties?.servers?.items) {
+ schema.properties.data.properties.servers.items = serverPlaceholder;
+ }
+
+ // Replace groups.items.properties.servers.items $ref if present
+ if (
+ schema?.properties?.data?.properties?.groups?.items?.properties?.servers
+ ?.items
+ ) {
+ schema.properties.data.properties.groups.items.properties.servers.items =
+ serverPlaceholder;
+ }
+
+ return schema;
+}
+
+async function main() {
+ try {
+ const mcpServerUrl = extractMcpServerUrl(REGISTRY_SCHEMA);
+
+ // Simplify registry schema by replacing $refs with placeholders
+ const registrySchema = JSON.parse(readFileSync(REGISTRY_SCHEMA, 'utf-8'));
+ const simplifiedSchema = simplifyRegistrySchema(
+ registrySchema,
+ mcpServerUrl
+ );
+ writeFileSync(REGISTRY_SCHEMA, JSON.stringify(simplifiedSchema, null, 2));
+ console.log('Upstream registry schema processed successfully');
+
+ // Fetch and dereference the MCP server schema
+ const mcpServerSchema = await $RefParser.dereference(mcpServerUrl);
+ writeFileSync(MCP_SERVER_SCHEMA, JSON.stringify(mcpServerSchema, null, 2));
+ console.log('MCP server schema fetched successfully');
+ } catch (error) {
+ console.error('Failed to process schemas:', error.message);
+ process.exit(1);
+ }
+}
+
+main();
diff --git a/scripts/update-toolhive-reference.sh b/scripts/update-toolhive-reference.sh
index 5d836692..75cd3cdc 100755
--- a/scripts/update-toolhive-reference.sh
+++ b/scripts/update-toolhive-reference.sh
@@ -19,6 +19,9 @@ API_SPEC_DST="${STATIC_DIR}/api-specs/toolhive-api.yaml"
REGISTRY_SCHEMA_SRC="${IMPORT_DIR}/toolhive/pkg/registry/data/toolhive-legacy-registry.schema.json"
REGISTRY_SCHEMA_DST="${STATIC_DIR}/api-specs/toolhive-legacy-registry.schema.json"
+UPSTREAM_REGISTRY_SCHEMA_SRC="${IMPORT_DIR}/toolhive/pkg/registry/data/upstream-registry.schema.json"
+UPSTREAM_REGISTRY_SCHEMA_DST="${STATIC_DIR}/api-specs/upstream-registry.schema.json"
+
CRD_API_SRC="${IMPORT_DIR}/toolhive/docs/operator/crd-api.md"
CRD_API_DST="${STATIC_DIR}/api-specs/toolhive-crd-api.md"
@@ -112,7 +115,7 @@ if [[ "$RELEASE_VERSION" =~ ^v.* ]]; then
echo "Warning: API specification not found at ${API_SPEC_SRC}"
fi
- ## Registry schema
+ ## Registry schemas
echo "Updating ToolHive registry JSON schema at ${REGISTRY_SCHEMA_DST}"
if [ -f "${REGISTRY_SCHEMA_SRC}" ]; then
@@ -122,6 +125,19 @@ if [[ "$RELEASE_VERSION" =~ ^v.* ]]; then
echo "Warning: Registry schema not found at ${REGISTRY_SCHEMA_SRC}"
fi
+ echo "Updating upstream registry JSON schema at ${UPSTREAM_REGISTRY_SCHEMA_DST}"
+
+ if [ -f "${UPSTREAM_REGISTRY_SCHEMA_SRC}" ]; then
+ cp ${UPSTREAM_REGISTRY_SCHEMA_SRC} ${UPSTREAM_REGISTRY_SCHEMA_DST}
+ echo "Upstream registry JSON schema updated successfully"
+
+ # Bundle the upstream schema to resolve remote $ref references
+ echo "Bundling upstream registry schema (resolving remote references)..."
+ node "${REPO_ROOT}/scripts/bundle-upstream-schema.mjs"
+ else
+ echo "Warning: Registry schema not found at ${UPSTREAM_REGISTRY_SCHEMA_SRC}"
+ fi
+
elif [[ "$RELEASE_VERSION" =~ ^toolhive-operator-crds-.* ]]; then
echo "Processing operator CRD release: $RELEASE_VERSION"
diff --git a/src/css/custom.css b/src/css/custom.css
index bb655a6b..e6983bf8 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -340,3 +340,37 @@ details summary:hover {
[data-theme='light'] .navbar-sidebar .navbar__logo img {
content: url('/img/logos/stacklok-default-dark-green.svg');
}
+
+/* JSON Schema Viewer overrides
+ * Reset the brand-colored alert styling for the docusaurus-json-schema-plugin
+ * since the nested details blocks are overwhelming with the green theme.
+ */
+.json-schema-viewer.alert,
+.json-schema-viewer details.alert {
+ --docusaurus-details-decoration-color: var(--ifm-color-gray-500);
+ --ifm-alert-background-color: var(--ifm-background-surface-color);
+ --ifm-alert-border-color: var(--ifm-color-gray-300);
+}
+
+.json-schema-viewer details summary {
+ color: var(--ifm-color-content);
+}
+
+.json-schema-viewer details summary:hover {
+ color: var(--ifm-color-primary);
+}
+
+[data-theme='dark'] .json-schema-viewer.alert,
+[data-theme='dark'] .json-schema-viewer details.alert {
+ --docusaurus-details-decoration-color: var(--ifm-color-gray-600);
+ --ifm-alert-background-color: var(--ifm-background-color);
+ --ifm-alert-border-color: var(--ifm-color-gray-700);
+}
+
+[data-theme='dark'] .json-schema-viewer details summary {
+ color: var(--ifm-color-content);
+}
+
+[data-theme='dark'] .json-schema-viewer details summary:hover {
+ color: var(--ifm-color-primary);
+}
diff --git a/static/api-specs/mcp-server.schema.json b/static/api-specs/mcp-server.schema.json
new file mode 100644
index 00000000..bd04cced
--- /dev/null
+++ b/static/api-specs/mcp-server.schema.json
@@ -0,0 +1,6505 @@
+{
+ "$comment": "This file is auto-generated from docs/reference/api/openapi.yaml. Do not edit manually. Run 'make generate-schema' to update.",
+ "$id": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "definitions": {
+ "Argument": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "Icon": {
+ "description": "An optionally-sized icon that can be displayed in a user interface.",
+ "properties": {
+ "mimeType": {
+ "description": "Optional MIME type override if the source MIME type is missing or generic. Must be one of: image/png, image/jpeg, image/jpg, image/svg+xml, image/webp.",
+ "enum": [
+ "image/png",
+ "image/jpeg",
+ "image/jpg",
+ "image/svg+xml",
+ "image/webp"
+ ],
+ "example": "image/png",
+ "type": "string"
+ },
+ "sizes": {
+ "description": "Optional array of strings that specify sizes at which the icon can be used. Each string should be in WxH format (e.g., '48x48', '96x96') or 'any' for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size.",
+ "examples": [
+ [
+ "48x48",
+ "96x96"
+ ],
+ [
+ "any"
+ ]
+ ],
+ "items": {
+ "pattern": "^(\\d+x\\d+|any)$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "src": {
+ "description": "A standard URI pointing to an icon resource. Must be an HTTPS URL. Consumers SHOULD take steps to ensure URLs serving icons are from the same domain as the server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain executable JavaScript.",
+ "example": "https://example.com/icon.png",
+ "format": "uri",
+ "maxLength": 255,
+ "type": "string"
+ },
+ "theme": {
+ "description": "Optional specifier for the theme this icon is designed for. 'light' indicates the icon is designed to be used with a light background, and 'dark' indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.",
+ "enum": [
+ "light",
+ "dark"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src"
+ ],
+ "type": "object"
+ },
+ "Input": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "InputWithVariables": {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ "KeyValueInput": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "LocalTransport": {
+ "anyOf": [
+ {
+ "properties": {
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "stdio"
+ ],
+ "example": "stdio",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "Transport protocol configuration for local/package context"
+ },
+ "NamedArgument": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ },
+ "Package": {
+ "properties": {
+ "environmentVariables": {
+ "description": "A mapping of environment variables to be set when running the package.",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "fileSha256": {
+ "description": "SHA-256 hash of the package file for integrity verification. Required for MCPB packages and optional for other package types. Authors are responsible for generating correct SHA-256 hashes when creating server.json. If present, MCP clients must validate the downloaded file matches the hash before running packages to ensure file integrity.",
+ "example": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "identifier": {
+ "description": "Package identifier - either a package name (for registries) or URL (for direct downloads)",
+ "examples": [
+ "@modelcontextprotocol/server-brave-search",
+ "https://github.com/example/releases/download/v1.0.0/package.mcpb"
+ ],
+ "type": "string"
+ },
+ "packageArguments": {
+ "description": "A list of arguments to be passed to the package's binary.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "registryBaseUrl": {
+ "description": "Base URL of the package registry",
+ "examples": [
+ "https://registry.npmjs.org",
+ "https://pypi.org",
+ "https://docker.io",
+ "https://api.nuget.org/v3/index.json",
+ "https://github.com",
+ "https://gitlab.com"
+ ],
+ "format": "uri",
+ "type": "string"
+ },
+ "registryType": {
+ "description": "Registry type indicating how to download packages (e.g., 'npm', 'pypi', 'oci', 'nuget', 'mcpb')",
+ "examples": [
+ "npm",
+ "pypi",
+ "oci",
+ "nuget",
+ "mcpb"
+ ],
+ "type": "string"
+ },
+ "runtimeArguments": {
+ "description": "A list of arguments to be passed to the package's runtime command (such as docker or npx). The `runtimeHint` field should be provided when `runtimeArguments` are present.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "runtimeHint": {
+ "description": "A hint to help clients determine the appropriate runtime for the package. This field should be provided when `runtimeArguments` are present.",
+ "examples": [
+ "npx",
+ "uvx",
+ "docker",
+ "dnx"
+ ],
+ "type": "string"
+ },
+ "transport": {
+ "description": "Transport protocol configuration for the package",
+ "anyOf": [
+ {
+ "properties": {
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "stdio"
+ ],
+ "example": "stdio",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "version": {
+ "description": "Package version. Must be a specific version. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').",
+ "example": "1.0.2",
+ "minLength": 1,
+ "not": {
+ "const": "latest"
+ },
+ "type": "string"
+ }
+ },
+ "required": [
+ "registryType",
+ "identifier",
+ "transport"
+ ],
+ "type": "object"
+ },
+ "PositionalArgument": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ "RemoteTransport": {
+ "allOf": [
+ {
+ "anyOf": [
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Transport protocol configuration for remote context - extends StreamableHttpTransport or SseTransport with variables"
+ },
+ "Repository": {
+ "description": "Repository metadata for the MCP server source code. Enables users and security experts to inspect the code, improving transparency.",
+ "properties": {
+ "id": {
+ "description": "Repository identifier from the hosting service (e.g., GitHub repo ID). Owned and determined by the source forge. Should remain stable across repository renames and may be used to detect repository resurrection attacks - if a repository is deleted and recreated, the ID should change. For GitHub, use: gh api repos// --jq '.id'",
+ "example": "b94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9",
+ "type": "string"
+ },
+ "source": {
+ "description": "Repository hosting service identifier. Used by registries to determine validation and API access methods.",
+ "example": "github",
+ "type": "string"
+ },
+ "subfolder": {
+ "description": "Optional relative path from repository root to the server location within a monorepo or nested package structure. Must be a clean relative path.",
+ "example": "src/everything",
+ "type": "string"
+ },
+ "url": {
+ "description": "Repository URL for browsing source code. Should support both web browsing and git clone operations.",
+ "example": "https://github.com/modelcontextprotocol/servers",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "source"
+ ],
+ "type": "object"
+ },
+ "ServerDetail": {
+ "description": "Schema for a static representation of an MCP server. Used in various contexts related to discovery, installation, and configuration.",
+ "properties": {
+ "$schema": {
+ "description": "JSON Schema URI for this server.json format",
+ "example": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "format": "uri",
+ "type": "string"
+ },
+ "_meta": {
+ "description": "Extension metadata using reverse DNS namespacing for vendor-specific data",
+ "properties": {
+ "io.modelcontextprotocol.registry/publisher-provided": {
+ "additionalProperties": true,
+ "description": "Publisher-provided metadata for downstream registries",
+ "example": {
+ "buildInfo": {
+ "commit": "abc123def456",
+ "pipelineId": "build-789",
+ "timestamp": "2023-12-01T10:30:00Z"
+ },
+ "tool": "publisher-cli",
+ "version": "1.2.3"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "description": {
+ "description": "Clear human-readable explanation of server functionality. Should focus on capabilities, not implementation details.",
+ "example": "MCP server providing weather data and forecasts via OpenWeatherMap API",
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "icons": {
+ "description": "Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: image/png and image/jpeg (safe, universal compatibility). Clients SHOULD also support: image/svg+xml (scalable but requires security precautions) and image/webp (modern, efficient format).",
+ "items": {
+ "description": "An optionally-sized icon that can be displayed in a user interface.",
+ "properties": {
+ "mimeType": {
+ "description": "Optional MIME type override if the source MIME type is missing or generic. Must be one of: image/png, image/jpeg, image/jpg, image/svg+xml, image/webp.",
+ "enum": [
+ "image/png",
+ "image/jpeg",
+ "image/jpg",
+ "image/svg+xml",
+ "image/webp"
+ ],
+ "example": "image/png",
+ "type": "string"
+ },
+ "sizes": {
+ "description": "Optional array of strings that specify sizes at which the icon can be used. Each string should be in WxH format (e.g., '48x48', '96x96') or 'any' for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size.",
+ "examples": [
+ [
+ "48x48",
+ "96x96"
+ ],
+ [
+ "any"
+ ]
+ ],
+ "items": {
+ "pattern": "^(\\d+x\\d+|any)$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "src": {
+ "description": "A standard URI pointing to an icon resource. Must be an HTTPS URL. Consumers SHOULD take steps to ensure URLs serving icons are from the same domain as the server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain executable JavaScript.",
+ "example": "https://example.com/icon.png",
+ "format": "uri",
+ "maxLength": 255,
+ "type": "string"
+ },
+ "theme": {
+ "description": "Optional specifier for the theme this icon is designed for. 'light' indicates the icon is designed to be used with a light background, and 'dark' indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.",
+ "enum": [
+ "light",
+ "dark"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "Server name in reverse-DNS format. Must contain exactly one forward slash separating namespace from server name.",
+ "example": "io.github.user/weather",
+ "maxLength": 200,
+ "minLength": 3,
+ "pattern": "^[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+$",
+ "type": "string"
+ },
+ "packages": {
+ "items": {
+ "properties": {
+ "environmentVariables": {
+ "description": "A mapping of environment variables to be set when running the package.",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "fileSha256": {
+ "description": "SHA-256 hash of the package file for integrity verification. Required for MCPB packages and optional for other package types. Authors are responsible for generating correct SHA-256 hashes when creating server.json. If present, MCP clients must validate the downloaded file matches the hash before running packages to ensure file integrity.",
+ "example": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "identifier": {
+ "description": "Package identifier - either a package name (for registries) or URL (for direct downloads)",
+ "examples": [
+ "@modelcontextprotocol/server-brave-search",
+ "https://github.com/example/releases/download/v1.0.0/package.mcpb"
+ ],
+ "type": "string"
+ },
+ "packageArguments": {
+ "description": "A list of arguments to be passed to the package's binary.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "registryBaseUrl": {
+ "description": "Base URL of the package registry",
+ "examples": [
+ "https://registry.npmjs.org",
+ "https://pypi.org",
+ "https://docker.io",
+ "https://api.nuget.org/v3/index.json",
+ "https://github.com",
+ "https://gitlab.com"
+ ],
+ "format": "uri",
+ "type": "string"
+ },
+ "registryType": {
+ "description": "Registry type indicating how to download packages (e.g., 'npm', 'pypi', 'oci', 'nuget', 'mcpb')",
+ "examples": [
+ "npm",
+ "pypi",
+ "oci",
+ "nuget",
+ "mcpb"
+ ],
+ "type": "string"
+ },
+ "runtimeArguments": {
+ "description": "A list of arguments to be passed to the package's runtime command (such as docker or npx). The `runtimeHint` field should be provided when `runtimeArguments` are present.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "runtimeHint": {
+ "description": "A hint to help clients determine the appropriate runtime for the package. This field should be provided when `runtimeArguments` are present.",
+ "examples": [
+ "npx",
+ "uvx",
+ "docker",
+ "dnx"
+ ],
+ "type": "string"
+ },
+ "transport": {
+ "description": "Transport protocol configuration for the package",
+ "anyOf": [
+ {
+ "properties": {
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "stdio"
+ ],
+ "example": "stdio",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "version": {
+ "description": "Package version. Must be a specific version. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').",
+ "example": "1.0.2",
+ "minLength": 1,
+ "not": {
+ "const": "latest"
+ },
+ "type": "string"
+ }
+ },
+ "required": [
+ "registryType",
+ "identifier",
+ "transport"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "remotes": {
+ "items": {
+ "allOf": [
+ {
+ "anyOf": [
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Transport protocol configuration for remote context - extends StreamableHttpTransport or SseTransport with variables"
+ },
+ "type": "array"
+ },
+ "repository": {
+ "description": "Optional repository metadata for the MCP server source code. Recommended for transparency and security inspection.",
+ "properties": {
+ "id": {
+ "description": "Repository identifier from the hosting service (e.g., GitHub repo ID). Owned and determined by the source forge. Should remain stable across repository renames and may be used to detect repository resurrection attacks - if a repository is deleted and recreated, the ID should change. For GitHub, use: gh api repos// --jq '.id'",
+ "example": "b94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9",
+ "type": "string"
+ },
+ "source": {
+ "description": "Repository hosting service identifier. Used by registries to determine validation and API access methods.",
+ "example": "github",
+ "type": "string"
+ },
+ "subfolder": {
+ "description": "Optional relative path from repository root to the server location within a monorepo or nested package structure. Must be a clean relative path.",
+ "example": "src/everything",
+ "type": "string"
+ },
+ "url": {
+ "description": "Repository URL for browsing source code. Should support both web browsing and git clone operations.",
+ "example": "https://github.com/modelcontextprotocol/servers",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "source"
+ ],
+ "type": "object"
+ },
+ "title": {
+ "description": "Optional human-readable title or display name for the MCP server. MCP subregistries or clients MAY choose to use this for display purposes.",
+ "example": "Weather API",
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "version": {
+ "description": "Version string for this server. SHOULD follow semantic versioning (e.g., '1.0.2', '2.1.0-alpha'). Equivalent of Implementation.version in MCP specification. Non-semantic versions are allowed but may not sort predictably. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').",
+ "example": "1.0.2",
+ "maxLength": 255,
+ "type": "string"
+ },
+ "websiteUrl": {
+ "description": "Optional URL to the server's homepage, documentation, or project website. This provides a central link for users to learn more about the server. Particularly useful when the server has custom installation instructions or setup requirements.",
+ "example": "https://modelcontextprotocol.io/examples",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "version"
+ ],
+ "type": "object"
+ },
+ "SseTransport": {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ "StdioTransport": {
+ "properties": {
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "stdio"
+ ],
+ "example": "stdio",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "StreamableHttpTransport": {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ },
+ "title": "server.json defining a Model Context Protocol (MCP) server",
+ "description": "Schema for a static representation of an MCP server. Used in various contexts related to discovery, installation, and configuration.",
+ "properties": {
+ "$schema": {
+ "description": "JSON Schema URI for this server.json format",
+ "example": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
+ "format": "uri",
+ "type": "string"
+ },
+ "_meta": {
+ "description": "Extension metadata using reverse DNS namespacing for vendor-specific data",
+ "properties": {
+ "io.modelcontextprotocol.registry/publisher-provided": {
+ "additionalProperties": true,
+ "description": "Publisher-provided metadata for downstream registries",
+ "example": {
+ "buildInfo": {
+ "commit": "abc123def456",
+ "pipelineId": "build-789",
+ "timestamp": "2023-12-01T10:30:00Z"
+ },
+ "tool": "publisher-cli",
+ "version": "1.2.3"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "description": {
+ "description": "Clear human-readable explanation of server functionality. Should focus on capabilities, not implementation details.",
+ "example": "MCP server providing weather data and forecasts via OpenWeatherMap API",
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "icons": {
+ "description": "Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: image/png and image/jpeg (safe, universal compatibility). Clients SHOULD also support: image/svg+xml (scalable but requires security precautions) and image/webp (modern, efficient format).",
+ "items": {
+ "description": "An optionally-sized icon that can be displayed in a user interface.",
+ "properties": {
+ "mimeType": {
+ "description": "Optional MIME type override if the source MIME type is missing or generic. Must be one of: image/png, image/jpeg, image/jpg, image/svg+xml, image/webp.",
+ "enum": [
+ "image/png",
+ "image/jpeg",
+ "image/jpg",
+ "image/svg+xml",
+ "image/webp"
+ ],
+ "example": "image/png",
+ "type": "string"
+ },
+ "sizes": {
+ "description": "Optional array of strings that specify sizes at which the icon can be used. Each string should be in WxH format (e.g., '48x48', '96x96') or 'any' for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size.",
+ "examples": [
+ [
+ "48x48",
+ "96x96"
+ ],
+ [
+ "any"
+ ]
+ ],
+ "items": {
+ "pattern": "^(\\d+x\\d+|any)$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "src": {
+ "description": "A standard URI pointing to an icon resource. Must be an HTTPS URL. Consumers SHOULD take steps to ensure URLs serving icons are from the same domain as the server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain executable JavaScript.",
+ "example": "https://example.com/icon.png",
+ "format": "uri",
+ "maxLength": 255,
+ "type": "string"
+ },
+ "theme": {
+ "description": "Optional specifier for the theme this icon is designed for. 'light' indicates the icon is designed to be used with a light background, and 'dark' indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.",
+ "enum": [
+ "light",
+ "dark"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "Server name in reverse-DNS format. Must contain exactly one forward slash separating namespace from server name.",
+ "example": "io.github.user/weather",
+ "maxLength": 200,
+ "minLength": 3,
+ "pattern": "^[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+$",
+ "type": "string"
+ },
+ "packages": {
+ "items": {
+ "properties": {
+ "environmentVariables": {
+ "description": "A mapping of environment variables to be set when running the package.",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "fileSha256": {
+ "description": "SHA-256 hash of the package file for integrity verification. Required for MCPB packages and optional for other package types. Authors are responsible for generating correct SHA-256 hashes when creating server.json. If present, MCP clients must validate the downloaded file matches the hash before running packages to ensure file integrity.",
+ "example": "fe333e598595000ae021bd27117db32ec69af6987f507ba7a63c90638ff633ce",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "identifier": {
+ "description": "Package identifier - either a package name (for registries) or URL (for direct downloads)",
+ "examples": [
+ "@modelcontextprotocol/server-brave-search",
+ "https://github.com/example/releases/download/v1.0.0/package.mcpb"
+ ],
+ "type": "string"
+ },
+ "packageArguments": {
+ "description": "A list of arguments to be passed to the package's binary.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "registryBaseUrl": {
+ "description": "Base URL of the package registry",
+ "examples": [
+ "https://registry.npmjs.org",
+ "https://pypi.org",
+ "https://docker.io",
+ "https://api.nuget.org/v3/index.json",
+ "https://github.com",
+ "https://gitlab.com"
+ ],
+ "format": "uri",
+ "type": "string"
+ },
+ "registryType": {
+ "description": "Registry type indicating how to download packages (e.g., 'npm', 'pypi', 'oci', 'nuget', 'mcpb')",
+ "examples": [
+ "npm",
+ "pypi",
+ "oci",
+ "nuget",
+ "mcpb"
+ ],
+ "type": "string"
+ },
+ "runtimeArguments": {
+ "description": "A list of arguments to be passed to the package's runtime command (such as docker or npx). The `runtimeHint` field should be provided when `runtimeArguments` are present.",
+ "items": {
+ "anyOf": [
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "required": [
+ "valueHint"
+ ]
+ },
+ {
+ "required": [
+ "value"
+ ]
+ }
+ ],
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times in the command line.",
+ "type": "boolean"
+ },
+ "type": {
+ "enum": [
+ "positional"
+ ],
+ "example": "positional",
+ "type": "string"
+ },
+ "valueHint": {
+ "description": "An identifier for the positional argument. It is not part of the command line. It may be used by client configuration as a label identifying the argument. It is also used to identify the value in transport URL variable substitution.",
+ "example": "file_path",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A positional input is a value inserted verbatim into the command line."
+ },
+ {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "isRepeated": {
+ "default": false,
+ "description": "Whether the argument can be repeated multiple times.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The flag name, including any leading dashes.",
+ "example": "--port",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "named"
+ ],
+ "example": "named",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A command-line `--flag={value}`."
+ }
+ ],
+ "description": "Warning: Arguments construct command-line parameters that may contain user-provided input. This creates potential command injection risks if clients execute commands in a shell environment. For example, a malicious argument value like ';rm -rf ~/Development' could execute dangerous commands. Clients should prefer non-shell execution methods (e.g., posix_spawn) when possible to eliminate injection risks entirely. Where not possible, clients should obtain consent from users or agents to run the resolved command before execution."
+ },
+ "type": "array"
+ },
+ "runtimeHint": {
+ "description": "A hint to help clients determine the appropriate runtime for the package. This field should be provided when `runtimeArguments` are present.",
+ "examples": [
+ "npx",
+ "uvx",
+ "docker",
+ "dnx"
+ ],
+ "type": "string"
+ },
+ "transport": {
+ "description": "Transport protocol configuration for the package",
+ "anyOf": [
+ {
+ "properties": {
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "stdio"
+ ],
+ "example": "stdio",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "version": {
+ "description": "Package version. Must be a specific version. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').",
+ "example": "1.0.2",
+ "minLength": 1,
+ "not": {
+ "const": "latest"
+ },
+ "type": "string"
+ }
+ },
+ "required": [
+ "registryType",
+ "identifier",
+ "transport"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "remotes": {
+ "items": {
+ "allOf": [
+ {
+ "anyOf": [
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "streamable-http"
+ ],
+ "example": "streamable-http",
+ "type": "string"
+ },
+ "url": {
+ "description": "URL template for the streamable-http transport. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://api.example.com/mcp",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "headers": {
+ "description": "HTTP headers to include",
+ "items": {
+ "allOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "A map of variable names to their values. Keys in the input `value` that are wrapped in `{curly_braces}` will be replaced with the corresponding variable values.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "name": {
+ "description": "Name of the header or environment variable.",
+ "example": "SOME_VARIABLE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "type": {
+ "description": "Transport type",
+ "enum": [
+ "sse"
+ ],
+ "example": "sse",
+ "type": "string"
+ },
+ "url": {
+ "description": "Server-Sent Events endpoint URL template. Variables in {curly_braces} are resolved based on context: In Package context, they reference argument valueHints, argument names, or environment variable names from the parent Package. In Remote context, they reference variables from the transport's 'variables' object. After variable substitution, this should produce a valid URI.",
+ "example": "https://mcp-fs.example.com/sse",
+ "pattern": "^https?://[^\\s]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "properties": {
+ "variables": {
+ "additionalProperties": {
+ "properties": {
+ "choices": {
+ "description": "A list of possible values for the input. If provided, the user must select one of these values.",
+ "example": [],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "default": {
+ "description": "The default value for the input. This should be a valid value for the input. If you want to provide input examples or guidance, use the `placeholder` field instead.",
+ "type": "string"
+ },
+ "description": {
+ "description": "A description of the input, which clients can use to provide context to the user.",
+ "type": "string"
+ },
+ "format": {
+ "default": "string",
+ "description": "Specifies the input format. Supported values include `filepath`, which should be interpreted as a file on the user's filesystem.\n\nWhen the input is converted to a string, booleans should be represented by the strings \"true\" and \"false\", and numbers should be represented as decimal values.",
+ "enum": [
+ "string",
+ "number",
+ "boolean",
+ "filepath"
+ ],
+ "type": "string"
+ },
+ "isRequired": {
+ "default": false,
+ "type": "boolean"
+ },
+ "isSecret": {
+ "default": false,
+ "description": "Indicates whether the input is a secret value (e.g., password, token). If true, clients should handle the value securely.",
+ "type": "boolean"
+ },
+ "placeholder": {
+ "description": "A placeholder for the input to be displaying during configuration. This is used to provide examples or guidance about the expected form or content of the input.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The value for the input. If this is not set, the user may be prompted to provide a value. If a value is set, it should not be configurable by end users.\n\nIdentifiers wrapped in `{curly_braces}` will be replaced with the corresponding properties from the input `variables` map. If an identifier in braces is not found in `variables`, or if `variables` is not provided, the `{curly_braces}` substring should remain unchanged.\n",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Configuration variables that can be referenced in URL template {curly_braces}. The key is the variable name, and the value defines the variable properties.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Transport protocol configuration for remote context - extends StreamableHttpTransport or SseTransport with variables"
+ },
+ "type": "array"
+ },
+ "repository": {
+ "description": "Optional repository metadata for the MCP server source code. Recommended for transparency and security inspection.",
+ "properties": {
+ "id": {
+ "description": "Repository identifier from the hosting service (e.g., GitHub repo ID). Owned and determined by the source forge. Should remain stable across repository renames and may be used to detect repository resurrection attacks - if a repository is deleted and recreated, the ID should change. For GitHub, use: gh api repos// --jq '.id'",
+ "example": "b94b5f7e-c7c6-d760-2c78-a5e9b8a5b8c9",
+ "type": "string"
+ },
+ "source": {
+ "description": "Repository hosting service identifier. Used by registries to determine validation and API access methods.",
+ "example": "github",
+ "type": "string"
+ },
+ "subfolder": {
+ "description": "Optional relative path from repository root to the server location within a monorepo or nested package structure. Must be a clean relative path.",
+ "example": "src/everything",
+ "type": "string"
+ },
+ "url": {
+ "description": "Repository URL for browsing source code. Should support both web browsing and git clone operations.",
+ "example": "https://github.com/modelcontextprotocol/servers",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "source"
+ ],
+ "type": "object"
+ },
+ "title": {
+ "description": "Optional human-readable title or display name for the MCP server. MCP subregistries or clients MAY choose to use this for display purposes.",
+ "example": "Weather API",
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "version": {
+ "description": "Version string for this server. SHOULD follow semantic versioning (e.g., '1.0.2', '2.1.0-alpha'). Equivalent of Implementation.version in MCP specification. Non-semantic versions are allowed but may not sort predictably. Version ranges are rejected (e.g., '^1.2.3', '~1.2.3', '>=1.2.3', '1.x', '1.*').",
+ "example": "1.0.2",
+ "maxLength": 255,
+ "type": "string"
+ },
+ "websiteUrl": {
+ "description": "Optional URL to the server's homepage, documentation, or project website. This provides a central link for users to learn more about the server. Particularly useful when the server has custom installation instructions or setup requirements.",
+ "example": "https://modelcontextprotocol.io/examples",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "version"
+ ],
+ "type": "object"
+}
\ No newline at end of file
diff --git a/static/api-specs/upstream-registry.schema.json b/static/api-specs/upstream-registry.schema.json
new file mode 100644
index 00000000..72ea1a17
--- /dev/null
+++ b/static/api-specs/upstream-registry.schema.json
@@ -0,0 +1,85 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://raw.githubusercontent.com/stacklok/toolhive/main/pkg/registry/data/upstream-registry.schema.json",
+ "title": "ToolHive Registry Schema",
+ "description": "Schema for ToolHive registry format using official MCP server schema",
+ "type": "object",
+ "required": [
+ "version",
+ "meta",
+ "data"
+ ],
+ "properties": {
+ "$schema": {
+ "type": "string",
+ "format": "uri",
+ "description": "JSON Schema URI for this registry format"
+ },
+ "version": {
+ "type": "string",
+ "description": "Schema version of the registry",
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
+ "example": "1.0.0"
+ },
+ "meta": {
+ "type": "object",
+ "required": [
+ "last_updated"
+ ],
+ "properties": {
+ "last_updated": {
+ "type": "string",
+ "format": "date-time",
+ "description": "Timestamp when the registry was last updated, in RFC3339 format",
+ "example": "2024-01-15T10:30:00Z"
+ }
+ }
+ },
+ "data": {
+ "type": "object",
+ "required": [
+ "servers"
+ ],
+ "properties": {
+ "servers": {
+ "type": "array",
+ "description": "Array of MCP servers using the official MCP server schema",
+ "items": {
+ "type": "object",
+ "description": "MCP server object (see MCP server object schema section below). Source: https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json"
+ }
+ },
+ "groups": {
+ "type": "array",
+ "description": "Groups of related MCP servers",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "description",
+ "servers"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Unique identifier for the group"
+ },
+ "description": {
+ "type": "string",
+ "description": "Description of the group's purpose"
+ },
+ "servers": {
+ "type": "array",
+ "description": "Array of servers in this group",
+ "items": {
+ "type": "object",
+ "description": "MCP server object (see MCP server object schema section below). Source: https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/vercel.json b/vercel.json
index 11a5e73a..da656ab3 100644
--- a/vercel.json
+++ b/vercel.json
@@ -30,6 +30,11 @@
"source": "/toolhive/guides-k8s/deploy-operator-helm",
"destination": "/toolhive/guides-k8s/deploy-operator",
"permanent": true
+ },
+ {
+ "source": "/toolhive/reference/registry-schema",
+ "destination": "/toolhive/reference/registry-schema-toolhive",
+ "permanent": true
}
],
"installCommand": "dnf install -q -y jq && npm install",