feat: publish Coder MCP server to official MCP Registry (#21673)

## Summary

This adds the necessary configuration to publish Coder's remote MCP
server to the official MCP Registry at registry.modelcontextprotocol.io.

## Changes

- **`server.json`**: MCP server metadata for registry discovery
- **`.github/workflows/publish-mcp-registry.yaml`**: GitHub Actions
workflow to automatically publish on release

## How it works

1. When a new Coder release is published, the workflow automatically
publishes to the MCP Registry
2. MCP clients (Claude, ChatGPT, VS Code, etc.) can discover Coder via
the registry
3. Users just need to provide their Coder deployment URL - OAuth handles
authentication automatically via RFC 7591 Dynamic Client Registration

## MCP Registry Entry

The server will be listed as `io.github.coder/coder` with:
- **Transport**: `streamable-http` 
- **Endpoint**: `{coder_url}/api/experimental/mcp/http`
- **Auth**: OAuth2 (automatic via
`/.well-known/oauth-authorization-server`)

## Testing

After merge and next release, verify at:
```bash
curl "https://registry.modelcontextprotocol.io/v0.1/servers?q=io.github.coder"
```

Closes #21275

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`medium`_

---------

Co-authored-by: Ben Potter <me@bpmct.net>
This commit is contained in:
Atif Ali
2026-06-26 11:20:45 -05:00
committed by GitHub
co-authored by Ben Potter
parent 0f1e792f3f
commit 18efcb6c41
3 changed files with 319 additions and 33 deletions
+47
View File
@@ -0,0 +1,47 @@
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.coder/coder",
"title": "Coder",
"description": "Manage Coder workspaces, templates, and cloud development environments",
"repository": {
"url": "https://github.com/coder/coder",
"source": "github"
},
"version": "0.0.0-dev",
"websiteUrl": "https://coder.com/docs",
"icons": [
{
"src": "https://raw.githubusercontent.com/coder/coder/main/docs/images/logo-black.png",
"mimeType": "image/png"
}
],
"remotes": [
{
"type": "streamable-http",
"url": "{coder_url}/api/experimental/mcp/http",
"variables": {
"coder_url": {
"description": "URL of your Coder deployment (e.g., https://coder.example.com)",
"isRequired": true,
"format": "string",
"placeholder": "https://coder.example.com"
}
}
}
],
"_meta": {
"io.modelcontextprotocol.registry/publisher-provided": {
"documentation": "https://coder.com/docs/ai-coder/mcp-server",
"keywords": [
"workspaces",
"cloud-development",
"templates",
"devcontainers",
"terraform",
"self-hosted"
],
"license": "AGPL-3.0",
"publisher": "Coder"
}
}
}