registry/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Terry Nederveld 73d2174cec
feat: add CORS support to registry API (#711)
Fixes #710

This PR adds CORS middleware to enable browser-based clients and web
applications to access the registry API.

## Changes

- Add CORSMiddleware in internal/api/cors.go to handle preflight OPTIONS
requests and inject CORS headers
- Integrate CORS middleware into the server middleware stack
- Add CORS configuration options (CORS_ENABLED and CORS_ALLOWED_ORIGIN)

## Testing

- All existing tests pass
- Manual testing confirms CORS headers are present in responses
- OPTIONS preflight requests now return 204 with proper headers

## Configuration

New environment variables:
- MCP_REGISTRY_CORS_ENABLED (default: true)
- MCP_REGISTRY_CORS_ALLOWED_ORIGIN (default: *)
2025-10-27 18:07:13 +00:00
..
api feat: add CORS support to registry API (#711) 2025-10-27 18:07:13 +00:00
auth Apply gofmt formatting to all Go files (#588) 2025-09-30 17:32:22 +03:00
config Apply gofmt formatting to all Go files (#588) 2025-09-30 17:32:22 +03:00
database Fix migration numbering and add migration 010 for package format (#675) 2025-10-15 17:00:39 +03:00
importer Enforce schema validation on the publish and edit API level (#598) 2025-10-05 13:57:10 +01:00
service Enforce schema validation on the publish and edit API level (#598) 2025-10-05 13:57:10 +01:00
telemetry Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
validators Make mcpb package version optional and fix schema validation (#686) 2025-10-17 01:35:29 +03:00