registry/internal/api/handlers/v0
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones ef4607720d
Fix _meta field format for MCP spec compliance (#367)
## Summary

Updates the `_meta` field structure to be compliant with the MCP
specification by using proper `prefix/name` format for vendor
extensions.

### Changes

- **Registry metadata**: `io.modelcontextprotocol.registry` →
`io.modelcontextprotocol.registry/official`
- **Publisher metadata**: `publisher` →
`io.modelcontextprotocol.registry/publisher-provided`
- **Database migration**: Updates indexes to use new field paths
- **Updated all code**: Service layer, validators, tests, and seed data

### Format Before
```json
{
  "_meta": {
    "publisher": { "license": "MIT" },
    "io.modelcontextprotocol.registry": { "id": "...", "is_latest": true }
  }
}
```

### Format After
```json
{
  "_meta": {
    "io.modelcontextprotocol.registry/publisher-provided": { "license": "MIT" },
    "io.modelcontextprotocol.registry/official": { "id": "...", "is_latest": true }
  }
}
```

This resolves the naming collision with the planned top-level
`publisher` field and ensures compliance with MCP specification
requirements.

Fixes #356
2025-09-08 11:40:04 -07:00
..
auth Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
edit.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
edit_test.go Fix _meta field format for MCP spec compliance (#367) 2025-09-08 11:40:04 -07:00
health.go Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
health_test.go Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
ping.go api: Use Huma to generate swagger docs and parse JSON automatically (#262) 2025-08-13 16:57:55 +01:00
ping_test.go auth: New auth flow (#273) 2025-08-15 13:03:35 +01:00
publish.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
publish_integration_test.go Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
publish_registry_validation_test.go Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
publish_test.go Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
response.go auth: New auth flow (#273) 2025-08-15 13:03:35 +01:00
servers.go Implement flattened _meta format for server extensions (#331) 2025-09-01 19:27:23 +01:00
servers_test.go Fix _meta field format for MCP spec compliance (#367) 2025-09-08 11:40:04 -07:00
telemetry_test.go Fix _meta field format for MCP spec compliance (#367) 2025-09-08 11:40:04 -07:00