registry/pkg/model/constants.go
Tadas Antanavicius 453956d975
chore: Release server.json schema version 2025-12-11 (#841)
Prepared by Claude Code, iterated and reviewed by me.

## Summary

This PR releases the server.json schema version `2025-12-11`,
incorporating URL template variables for remote servers from #570.

### What's New

- **URL Template Variables for Remote Servers** - Remote servers can now
define configurable variables in URLs using `{curly_braces}` notation,
enabling multi-tenant deployments.

### Schema Version
- `2025-10-17` → `2025-12-11`

## Release Sequence

1. ~~**First: Merge static repo PR** -
https://github.com/modelcontextprotocol/static/pull/11 (publishes schema
to versioned URL)~~
2. **Then: Merge this PR** - Updates registry code to reference the new
schema version

## Changes in This PR

- [x] Update CHANGELOG.md with release notes
- [x] Update `CurrentSchemaVersion` in `pkg/model/constants.go`
- [x] Update schema example URL in `docs/reference/api/openapi.yaml`
- [x] Update schema URL in `pkg/api/v0/types.go`
- [x] Update all documentation examples to use new schema version
- [x] Regenerate `server.schema.json`

## Test Plan
- [x] `make check` passes (lint, schema validation, example validation)
- [x] Unit tests pass for validators and publisher commands

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 09:33:57 -08:00

42 lines
1.2 KiB
Go

package model
// Registry Types - supported package registry types
const (
RegistryTypeNPM = "npm"
RegistryTypePyPI = "pypi"
RegistryTypeOCI = "oci"
RegistryTypeNuGet = "nuget"
RegistryTypeMCPB = "mcpb"
)
// Registry Base URLs - supported package registry base URLs
const (
RegistryURLNPM = "https://registry.npmjs.org"
RegistryURLPyPI = "https://pypi.org"
RegistryURLNuGet = "https://api.nuget.org/v3/index.json"
RegistryURLGitHub = "https://github.com"
RegistryURLGitLab = "https://gitlab.com"
)
// Transport Types - supported remote transport protocols
const (
TransportTypeStreamableHTTP = "streamable-http"
TransportTypeSSE = "sse"
TransportTypeStdio = "stdio"
)
// Runtime Hints - supported package runtime hints
const (
RuntimeHintNPX = "npx"
RuntimeHintUVX = "uvx"
RuntimeHintDocker = "docker"
RuntimeHintDNX = "dnx"
)
// Schema versions
const (
// CurrentSchemaVersion is the current supported schema version date
CurrentSchemaVersion = "2025-12-11"
// CurrentSchemaURL is the full URL to the current schema
CurrentSchemaURL = "https://static.modelcontextprotocol.io/schemas/" + CurrentSchemaVersion + "/server.schema.json"
)