registry/internal/database
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 6431f23107
feat: add admin edit endpoint for server moderation (#315)
## Summary

Implements `PUT /v0/servers/{id}` admin edit endpoint to address part of
issue #182, providing an API-based solution for server moderation
without requiring direct database access.

- **New endpoint**: `PUT /v0/servers/{id}` for editing existing servers
- **Security**: Uses existing JWT auth with `PermissionActionEdit`
permissions
- **Anti-undelete protection**: Added `ServerStatusDeleted` status that
cannot be reverted
- **Full implementation**: Database, service, API, and comprehensive
test coverage

## Key Use Cases

- Mark malicious servers as `deleted` for takedown
- Update server metadata for moderation actions

Related to: https://github.com/modelcontextprotocol/registry/issues/182
(but that is not _done_ yet because we need admins to be able to login
(probably with #283), and need to add docs on how to do the takedown,
and probably guidelines on what we will/won't takedown)
2025-08-27 21:28:04 +01:00
..
migrations Allow for vendor extensions on servers (#298) 2025-08-23 09:59:03 +01:00
database.go feat: add admin edit endpoint for server moderation (#315) 2025-08-27 21:28:04 +01:00
import.go Allow for vendor extensions on servers (#298) 2025-08-23 09:59:03 +01:00
import_test.go feat: Add support for MCP Bundles (MCPB) in registry (#295) 2025-08-27 04:44:53 +01:00
memory.go feat: add admin edit endpoint for server moderation (#315) 2025-08-27 21:28:04 +01:00
migrate.go Refactor database implementation to use PostgreSQL instead of MongoDB (#289) 2025-08-22 01:40:28 +01:00
postgres.go feat: add admin edit endpoint for server moderation (#315) 2025-08-27 21:28:04 +01:00