fix(update): refresh embedded release host
All checks were successful
Release / release (push) Successful in 31s
All checks were successful
Release / release (push) Successful in 31s
This commit is contained in:
parent
0de2a2b351
commit
9ad3ab1989
4 changed files with 10 additions and 4 deletions
|
|
@ -122,7 +122,7 @@ binary_name = "email-mcp"
|
||||||
source_name = "email-mcp releases"
|
source_name = "email-mcp releases"
|
||||||
driver = "gitea"
|
driver = "gitea"
|
||||||
repository = "AI/email-mcp"
|
repository = "AI/email-mcp"
|
||||||
base_url = "https://gitea.lclr.dev"
|
base_url = "https://forge.lclr.dev"
|
||||||
asset_name_template = "{binary}-{os}-{arch}{ext}"
|
asset_name_template = "{binary}-{os}-{arch}{ext}"
|
||||||
checksum_asset_name = "{asset}.sha256"
|
checksum_asset_name = "{asset}.sha256"
|
||||||
checksum_required = true
|
checksum_required = true
|
||||||
|
|
@ -165,7 +165,7 @@ Le repo inclut un assistant interactif `install.sh` :
|
||||||
Tu peux aussi l’exécuter directement depuis la branche `main` :
|
Tu peux aussi l’exécuter directement depuis la branche `main` :
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://gitea.lclr.dev/AI/email-mcp/raw/branch/main/install.sh | bash
|
curl -fsSL https://forge.lclr.dev/AI/email-mcp/raw/branch/main/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Claude Code CLI
|
### Claude Code CLI
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,12 @@ func TestGeneratedManifestFallsBackToEmbeddedRootManifest(t *testing.T) {
|
||||||
if manifestFile.SecretStore.BackendPolicy != "bitwarden-cli" {
|
if manifestFile.SecretStore.BackendPolicy != "bitwarden-cli" {
|
||||||
t.Fatalf("secret store backend policy = %q, want bitwarden-cli", manifestFile.SecretStore.BackendPolicy)
|
t.Fatalf("secret store backend policy = %q, want bitwarden-cli", manifestFile.SecretStore.BackendPolicy)
|
||||||
}
|
}
|
||||||
|
if manifestFile.DocsURL != "https://forge.lclr.dev/AI/email-mcp" {
|
||||||
|
t.Fatalf("DocsURL = %q, want https://forge.lclr.dev/AI/email-mcp", manifestFile.DocsURL)
|
||||||
|
}
|
||||||
|
if manifestFile.Update.BaseURL != "https://forge.lclr.dev" {
|
||||||
|
t.Fatalf("Update.BaseURL = %q, want https://forge.lclr.dev", manifestFile.Update.BaseURL)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGeneratedConfigHelpersExposeIMAPResolutionFields(t *testing.T) {
|
func TestGeneratedConfigHelpersExposeIMAPResolutionFields(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -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 = \"email-mcp\"\ndocs_url = \"https://gitea.lclr.dev/AI/email-mcp\"\n\n[update]\nsource_name = \"email-mcp releases\"\ndriver = \"gitea\"\nrepository = \"AI/email-mcp\"\nbase_url = \"https://gitea.lclr.dev\"\nasset_name_template = \"{binary}-{os}-{arch}{ext}\"\nchecksum_asset_name = \"{asset}.sha256\"\nchecksum_required = true\ntoken_env_names = [\"GITEA_TOKEN\"]\n\n[environment]\nknown = [\n \"EMAIL_MCP_PROFILE\",\n \"EMAIL_MCP_HOST\",\n \"EMAIL_MCP_USERNAME\",\n \"EMAIL_MCP_PASSWORD\",\n \"BW_SESSION\",\n \"MCP_FRAMEWORK_BITWARDEN_CACHE\",\n \"MCP_FRAMEWORK_BITWARDEN_DEBUG\",\n]\n\n[secret_store]\nbackend_policy = \"bitwarden-cli\"\n\n[profiles]\ndefault = \"default\"\nknown = [\"default\"]\n\n[bootstrap]\ndescription = \"Local MCP server to read an IMAP mailbox.\"\n\n[[config.fields]]\nname = \"host\"\nenv = \"EMAIL_MCP_HOST\"\nconfig_key = \"host\"\ntype = \"string\"\nlabel = \"IMAP host\"\nrequired = true\nsources = [\"env\", \"config\"]\n\n[[config.fields]]\nname = \"username\"\nenv = \"EMAIL_MCP_USERNAME\"\nconfig_key = \"username\"\ntype = \"string\"\nlabel = \"Username\"\nrequired = true\nsources = [\"env\", \"config\"]\n\n[[config.fields]]\nname = \"password\"\nenv = \"EMAIL_MCP_PASSWORD\"\nsecret_key_template = \"imap-password/{profile}\"\ntype = \"secret\"\nlabel = \"Password\"\nrequired = true\nsources = [\"env\", \"secret\"]\n"
|
const embeddedManifest = "binary_name = \"email-mcp\"\ndocs_url = \"https://forge.lclr.dev/AI/email-mcp\"\n\n[update]\nsource_name = \"email-mcp releases\"\ndriver = \"gitea\"\nrepository = \"AI/email-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[environment]\nknown = [\n \"EMAIL_MCP_PROFILE\",\n \"EMAIL_MCP_HOST\",\n \"EMAIL_MCP_USERNAME\",\n \"EMAIL_MCP_PASSWORD\",\n \"BW_SESSION\",\n \"MCP_FRAMEWORK_BITWARDEN_CACHE\",\n \"MCP_FRAMEWORK_BITWARDEN_DEBUG\",\n]\n\n[secret_store]\nbackend_policy = \"bitwarden-cli\"\n\n[profiles]\ndefault = \"default\"\nknown = [\"default\"]\n\n[bootstrap]\ndescription = \"Local MCP server to read an IMAP mailbox.\"\n\n[[config.fields]]\nname = \"host\"\nenv = \"EMAIL_MCP_HOST\"\nconfig_key = \"host\"\ntype = \"string\"\nlabel = \"IMAP host\"\nrequired = true\nsources = [\"env\", \"config\"]\n\n[[config.fields]]\nname = \"username\"\nenv = \"EMAIL_MCP_USERNAME\"\nconfig_key = \"username\"\ntype = \"string\"\nlabel = \"Username\"\nrequired = true\nsources = [\"env\", \"config\"]\n\n[[config.fields]]\nname = \"password\"\nenv = \"EMAIL_MCP_PASSWORD\"\nsecret_key_template = \"imap-password/{profile}\"\ntype = \"secret\"\nlabel = \"Password\"\nrequired = true\nsources = [\"env\", \"secret\"]\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)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest"
|
||||||
|
|
||||||
const BinaryName = "email-mcp"
|
const BinaryName = "email-mcp"
|
||||||
const DefaultDescription = "Local MCP server to read an IMAP mailbox."
|
const DefaultDescription = "Local MCP server to read an IMAP mailbox."
|
||||||
const DocsURL = "https://gitea.lclr.dev/AI/email-mcp"
|
const DocsURL = "https://forge.lclr.dev/AI/email-mcp"
|
||||||
|
|
||||||
func BootstrapInfo(startDir string) (fwmanifest.BootstrapMetadata, string, error) {
|
func BootstrapInfo(startDir string) (fwmanifest.BootstrapMetadata, string, error) {
|
||||||
manifestFile, source, err := LoadManifest(startDir)
|
manifestFile, source, err := LoadManifest(startDir)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue