Public
Like
1
mcp-registry-subregistry-api
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
I want to create a subregistry API using the following tech stack:
- GET /v0/servers - List all servers with pagination
- GET /v0/servers/{serverName} - Get latest version of server by server name (URL-encoded)
- GET /v0/servers/{serverName}/versions/{version} - Get specific version of server (both parameters should be URL-encoded)
- GET /v0/servers/{serverName}/versions - List all versions of a server
- POST /v0/publish - Publish new server (optional, registry-specific authentication)
- Read operations: No authentication required
- Write operations: Registry-specific authentication (if supported) Content Type
All requests and responses use application/json
List endpoints use cursor-based pagination for efficient, stable results.
- Initial request: Omit the cursor parameter
- Subsequent requests: Use the nextCursor value from the previous response
- End of results: When nextCursor is null or empty, there are no more results
Important: Always treat cursors as opaque strings. Never manually construct or modify cursor values.
- Validate the Open API spec is 100% up to date
- Create database tables that meets the Open API spec using Val.Town SQLite and Val.Town Blobs (for storing images)
- [ ]
- Create Hono endopints