Skip to content

Commit e17043d

Browse files
committed
docs: Remove deprecated server example that was removed in main
- Remove 'Deprecated Server Example' section that conflicts with main's intent - Update expectedServerJSONCount from 15 to 14 (12 original + 2 new URL templating examples)
1 parent 2500a7b commit e17043d

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

docs/reference/server-json/generic-server-json.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -737,51 +737,3 @@ This example demonstrates URL templating for local/package servers, where variab
737737
```
738738

739739
The `{port}` variable in the URL references either the `--port` argument name or the `port` valueHint from packageArguments. When the package runs with `--port 8080`, the URL becomes `http://localhost:8080/mcp`.
740-
741-
### Deprecated Server Example
742-
743-
```json
744-
{
745-
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
746-
"name": "io.github.example/old-weather",
747-
"description": "Legacy weather server - DEPRECATED: Use weather-v2 instead for new projects",
748-
"title": "Old Weather (Deprecated)",
749-
"repository": {
750-
"url": "https://github.com/example/old-weather",
751-
"source": "github",
752-
"id": "legacy-abc123-def456-789012-345678-901234567890"
753-
},
754-
"version": "0.9.5",
755-
"packages": [
756-
{
757-
"registryType": "npm",
758-
"registryBaseUrl": "https://registry.npmjs.org",
759-
"identifier": "@legacy/old-weather-server",
760-
"version": "0.9.5",
761-
"transport": {
762-
"type": "stdio"
763-
},
764-
"environmentVariables": [
765-
{
766-
"name": "WEATHER_API_KEY",
767-
"description": "Weather API key",
768-
"isRequired": true,
769-
"isSecret": true
770-
}
771-
]
772-
}
773-
],
774-
"_meta": {
775-
"io.modelcontextprotocol.registry/publisher-provided": {
776-
"tool": "legacy-publisher",
777-
"version": "0.8.1",
778-
"build_info": {
779-
"timestamp": "2023-06-15T09:30:00Z",
780-
"deprecation_notice": "This publisher is deprecated. Use npm-publisher v2.0+ for new projects.",
781-
"maintenance_mode": true,
782-
"final_version": true
783-
}
784-
}
785-
}
786-
}
787-
```

tools/validate-examples/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func main() {
3333

3434
func runValidation() error {
3535
// Define what we validate and how
36-
expectedServerJSONCount := 15
36+
expectedServerJSONCount := 14
3737
targets := []validationTarget{
3838
{
3939
path: filepath.Join("docs", "reference", "server-json", "generic-server-json.md"),

0 commit comments

Comments
 (0)