feat: add auto-update via forge.lclr.dev/AI/xdebug-mcp releases
All checks were successful
Release / release (push) Successful in 29s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere 2026-05-12 10:42:31 +02:00
parent 35487b996c
commit 2fcb06a130
3 changed files with 14 additions and 1 deletions

View file

@ -23,6 +23,9 @@ func Run(ctx context.Context, args []string, version string) error {
MCP: func(ctx context.Context, inv bootstrap.Invocation) error { MCP: func(ctx context.Context, inv bootstrap.Invocation) error {
return runMCP(c, version) return runMCP(c, version)
}, },
Update: func(ctx context.Context, inv bootstrap.Invocation) error {
return mcpgen.RunUpdate(ctx, inv.Args, version, inv.Stdout)
},
}, },
}) })
} }

View file

@ -1,5 +1,15 @@
binary_name = "xdebug-mcp" binary_name = "xdebug-mcp"
[update]
source_name = "xdebug-mcp releases"
driver = "gitea"
repository = "AI/xdebug-mcp"
base_url = "https://forge.lclr.dev"
asset_name_template = "{binary}-{os}-{arch}{ext}"
checksum_asset_name = "{asset}.sha256"
checksum_required = true
token_env_names = ["GITEA_TOKEN"]
[bootstrap] [bootstrap]
description = "MCP server for Xdebug profiling files" description = "MCP server for Xdebug profiling files"

View file

@ -4,7 +4,7 @@ package mcpgen
import fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest" import fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest"
const embeddedManifest = "binary_name = \"xdebug-mcp\"\n\n[bootstrap]\ndescription = \"MCP server for Xdebug profiling files\"\n\n[profiles]\ndefault = \"prod\"\nknown = [\"dev\", \"prod\"]\n" const embeddedManifest = "binary_name = \"xdebug-mcp\"\n\n[update]\nsource_name = \"xdebug-mcp releases\"\ndriver = \"gitea\"\nrepository = \"AI/xdebug-mcp\"\nbase_url = \"https://forge.lclr.dev\"\nasset_name_template = \"{binary}-{os}-{arch}{ext}\"\nchecksum_asset_name = \"{asset}.sha256\"\nchecksum_required = true\ntoken_env_names = [\"GITEA_TOKEN\"]\n\n[bootstrap]\ndescription = \"MCP server for Xdebug profiling files\"\n\n[profiles]\ndefault = \"prod\"\nknown = [\"dev\", \"prod\"]\n"
func LoadManifest(startDir string) (fwmanifest.File, string, error) { func LoadManifest(startDir string) (fwmanifest.File, string, error) {
return fwmanifest.LoadDefaultOrEmbedded(startDir, embeddedManifest) return fwmanifest.LoadDefaultOrEmbedded(startDir, embeddedManifest)