diff --git a/docs/server-json/examples.md b/docs/server-json/examples.md index e38d092..4ae7b52 100644 --- a/docs/server-json/examples.md +++ b/docs/server-json/examples.md @@ -621,6 +621,43 @@ This example shows an MCPB (MCP Bundle) package that: - Includes a SHA-256 hash for integrity verification - Can be downloaded and executed directly by MCP clients that support MCPB +## Embedded MCP inside a CLI tool + +Some CLI tools bundle an MCP server, without a standalone MCP package or a public repository. In these cases, reuse the existing `packages` shape by pointing at the host CLI package and supplying the `package_arguments` and `runtime_hint` if needed to start the MCP server. + +```json +{ + "$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json", + "name": "io.snyk/cli-mcp", + "description": "MCP server provided by the Snyk CLI", + "status": "active", + "version_detail": { + "version": "1.1298.0" + }, + "packages": [ + { + "registry_type": "npm", + "registry_base_url": "https://registry.npmjs.org", + "identifier": "snyk", + "version": "1.1298.0", + "transport": { + "type": "stdio" + }, + "package_arguments": [ + { "type": "positional", "value": "mcp" }, + { + "type": "named", + "name": "-t", + "description": "Transport type for MCP server", + "default": "stdio", + "choices": ["stdio", "sse"] + } + ] + } + ] +} +``` + ## Deprecated Server Example ```json diff --git a/tools/validate-examples/main.go b/tools/validate-examples/main.go index a4edd21..23f140c 100644 --- a/tools/validate-examples/main.go +++ b/tools/validate-examples/main.go @@ -24,7 +24,7 @@ const ( // IMPORTANT: Only change this count if you have intentionally added or removed examples // from the examples.md file. This check prevents accidental formatting changes from // causing examples to be skipped during validation. - expectedExampleCount = 11 + expectedExampleCount = 12 ) func main() {