chore: update module path to forge

This commit is contained in:
thibaud-lclr 2026-05-05 12:23:14 +02:00
parent 6e85969cf4
commit 6bf9dd1866
20 changed files with 42 additions and 42 deletions

View file

@ -9,13 +9,13 @@ manifeste `mcp.toml`, diagnostic et auto-update.
Dans un projet Go : Dans un projet Go :
```bash ```bash
go get gitea.lclr.dev/AI/mcp-framework go get forge.lclr.dev/AI/mcp-framework
``` ```
Pour utiliser le CLI : Pour utiliser le CLI :
```bash ```bash
go install gitea.lclr.dev/AI/mcp-framework/cmd/mcp-framework@latest go install forge.lclr.dev/AI/mcp-framework/cmd/mcp-framework@latest
``` ```
## Créer un projet MCP ## Créer un projet MCP

View file

@ -8,9 +8,9 @@ import (
"os" "os"
"strings" "strings"
"gitea.lclr.dev/AI/mcp-framework/config" "forge.lclr.dev/AI/mcp-framework/config"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type DoctorStatus string type DoctorStatus string

View file

@ -10,9 +10,9 @@ import (
"strings" "strings"
"testing" "testing"
"gitea.lclr.dev/AI/mcp-framework/config" "forge.lclr.dev/AI/mcp-framework/config"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type doctorProfile struct { type doctorProfile struct {

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"os" "os"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type KeyLookupFunc func(key string) (string, bool, error) type KeyLookupFunc func(key string) (string, bool, error)

View file

@ -4,7 +4,7 @@ import (
"errors" "errors"
"testing" "testing"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type testSecretStore struct { type testSecretStore struct {

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type SetupSecretWriteOptions struct { type SetupSecretWriteOptions struct {

View file

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
func TestWriteSetupSecretVerifiedPersistsAndConfirmsReadability(t *testing.T) { func TestWriteSetupSecretVerifiedPersistsAndConfirmsReadability(t *testing.T) {

View file

@ -9,8 +9,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
generatepkg "gitea.lclr.dev/AI/mcp-framework/generate" generatepkg "forge.lclr.dev/AI/mcp-framework/generate"
scaffoldpkg "gitea.lclr.dev/AI/mcp-framework/scaffold" scaffoldpkg "forge.lclr.dev/AI/mcp-framework/scaffold"
) )
const toolName = "mcp-framework" const toolName = "mcp-framework"

View file

@ -3,7 +3,7 @@
## Installation ## Installation
```bash ```bash
go get gitea.lclr.dev/AI/mcp-framework go get forge.lclr.dev/AI/mcp-framework
``` ```
## CLI de scaffold ## CLI de scaffold
@ -11,7 +11,7 @@ go get gitea.lclr.dev/AI/mcp-framework
Pour initialiser un projet MCP depuis un dossier vide, sans écrire de runner Go : Pour initialiser un projet MCP depuis un dossier vide, sans écrire de runner Go :
```bash ```bash
go install gitea.lclr.dev/AI/mcp-framework/cmd/mcp-framework@latest go install forge.lclr.dev/AI/mcp-framework/cmd/mcp-framework@latest
mcp-framework scaffold init \ mcp-framework scaffold init \
--target ./my-mcp \ --target ./my-mcp \
--module example.com/my-mcp \ --module example.com/my-mcp \

View file

@ -18,8 +18,8 @@ import (
"os" "os"
"example.com/my-mcp/mcpgen" "example.com/my-mcp/mcpgen"
"gitea.lclr.dev/AI/mcp-framework/config" "forge.lclr.dev/AI/mcp-framework/config"
"gitea.lclr.dev/AI/mcp-framework/update" "forge.lclr.dev/AI/mcp-framework/update"
) )
var version = "dev" var version = "dev"

View file

@ -12,7 +12,7 @@ Exemple :
```go ```go
result, err := scaffold.Generate(scaffold.Options{ result, err := scaffold.Generate(scaffold.Options{
TargetDir: "./my-mcp", TargetDir: "./my-mcp",
ModulePath: "gitea.lclr.dev/AI/my-mcp", ModulePath: "forge.lclr.dev/AI/my-mcp",
BinaryName: "my-mcp", BinaryName: "my-mcp",
Description: "Client MCP interne", Description: "Client MCP interne",
DefaultProfile: "prod", DefaultProfile: "prod",

View file

@ -12,7 +12,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
) )
var ErrGeneratedFilesOutdated = errors.New("generated files are not up to date") var ErrGeneratedFilesOutdated = errors.New("generated files are not up to date")
@ -211,7 +211,7 @@ func renderManifestLoader(packageName, manifestContent string) (string, error) {
package %s package %s
import fwmanifest "gitea.lclr.dev/AI/mcp-framework/manifest" import fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest"
const embeddedManifest = %s const embeddedManifest = %s
@ -235,7 +235,7 @@ func renderMetadata(packageName string, manifestFile manifest.File) (string, err
package %s package %s
import fwmanifest "gitea.lclr.dev/AI/mcp-framework/manifest" import fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest"
const BinaryName = %s const BinaryName = %s
const DefaultDescription = %s const DefaultDescription = %s
@ -275,7 +275,7 @@ import (
"io" "io"
"strings" "strings"
fwupdate "gitea.lclr.dev/AI/mcp-framework/update" fwupdate "forge.lclr.dev/AI/mcp-framework/update"
) )
func UpdateOptions(version string, stdout io.Writer) (fwupdate.Options, error) { func UpdateOptions(version string, stdout io.Writer) (fwupdate.Options, error) {
@ -338,7 +338,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
fwsecretstore "gitea.lclr.dev/AI/mcp-framework/secretstore" fwsecretstore "forge.lclr.dev/AI/mcp-framework/secretstore"
) )
type SecretStoreOptions struct { type SecretStoreOptions struct {
@ -483,7 +483,7 @@ import (
"flag" "flag"
"strings" "strings"
fwcli "gitea.lclr.dev/AI/mcp-framework/cli" fwcli "forge.lclr.dev/AI/mcp-framework/cli"
) )
type ConfigFlags struct { type ConfigFlags struct {

View file

@ -37,7 +37,7 @@ description = "Demo MCP"
for _, snippet := range []string{ for _, snippet := range []string{
"// Code generated by mcp-framework generate. DO NOT EDIT.", "// Code generated by mcp-framework generate. DO NOT EDIT.",
"package mcpgen", "package mcpgen",
"import fwmanifest \"gitea.lclr.dev/AI/mcp-framework/manifest\"", "import fwmanifest \"forge.lclr.dev/AI/mcp-framework/manifest\"",
"const embeddedManifest = ", "const embeddedManifest = ",
"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)",
@ -386,7 +386,7 @@ func writeModule(t *testing.T, projectDir string) {
t.Fatalf("Abs repo root: %v", err) t.Fatalf("Abs repo root: %v", err)
} }
goMod := "module example.com/generated-demo\n\ngo 1.25.0\n\nrequire (\n\tgithub.com/99designs/keyring v1.2.2\n\tgithub.com/BurntSushi/toml v1.6.0\n\tgitea.lclr.dev/AI/mcp-framework v0.0.0\n)\n\nreplace gitea.lclr.dev/AI/mcp-framework => " + filepath.ToSlash(repoRoot) + "\n" goMod := "module example.com/generated-demo\n\ngo 1.25.0\n\nrequire (\n\tgithub.com/99designs/keyring v1.2.2\n\tgithub.com/BurntSushi/toml v1.6.0\n\tforge.lclr.dev/AI/mcp-framework v0.0.0\n)\n\nreplace forge.lclr.dev/AI/mcp-framework => " + filepath.ToSlash(repoRoot) + "\n"
if err := os.WriteFile(filepath.Join(projectDir, "go.mod"), []byte(goMod), 0o600); err != nil { if err := os.WriteFile(filepath.Join(projectDir, "go.mod"), []byte(goMod), 0o600); err != nil {
t.Fatalf("WriteFile go.mod: %v", err) t.Fatalf("WriteFile go.mod: %v", err)
} }
@ -406,10 +406,10 @@ import (
"io" "io"
"testing" "testing"
fwcli "gitea.lclr.dev/AI/mcp-framework/cli" fwcli "forge.lclr.dev/AI/mcp-framework/cli"
fwsecretstore "gitea.lclr.dev/AI/mcp-framework/secretstore" fwsecretstore "forge.lclr.dev/AI/mcp-framework/secretstore"
"example.com/generated-demo/mcpgen" "example.com/generated-demo/mcpgen"
fwmanifest "gitea.lclr.dev/AI/mcp-framework/manifest" fwmanifest "forge.lclr.dev/AI/mcp-framework/manifest"
) )
func TestGeneratedHelpersUseEmbeddedManifest(t *testing.T) { func TestGeneratedHelpersUseEmbeddedManifest(t *testing.T) {

2
go.mod
View file

@ -1,4 +1,4 @@
module gitea.lclr.dev/AI/mcp-framework module forge.lclr.dev/AI/mcp-framework
go 1.25.0 go 1.25.0

View file

@ -9,7 +9,7 @@ import (
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"gitea.lclr.dev/AI/mcp-framework/update" "forge.lclr.dev/AI/mcp-framework/update"
) )
const DefaultFile = "mcp.toml" const DefaultFile = "mcp.toml"

View file

@ -1539,12 +1539,12 @@ import (
"strings" "strings"
"sync" "sync"
"gitea.lclr.dev/AI/mcp-framework/bootstrap" "forge.lclr.dev/AI/mcp-framework/bootstrap"
"gitea.lclr.dev/AI/mcp-framework/cli" "forge.lclr.dev/AI/mcp-framework/cli"
"gitea.lclr.dev/AI/mcp-framework/config" "forge.lclr.dev/AI/mcp-framework/config"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
"gitea.lclr.dev/AI/mcp-framework/secretstore" "forge.lclr.dev/AI/mcp-framework/secretstore"
"gitea.lclr.dev/AI/mcp-framework/update" "forge.lclr.dev/AI/mcp-framework/update"
) )
var embeddedManifest = ` + "`" + `binary_name = "{{.BinaryName}}" var embeddedManifest = ` + "`" + `binary_name = "{{.BinaryName}}"

View file

@ -15,7 +15,7 @@ import (
"testing" "testing"
"unicode/utf8" "unicode/utf8"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
) )
func TestOpenSupportsBitwardenCLIBackendPolicy(t *testing.T) { func TestOpenSupportsBitwardenCLIBackendPolicy(t *testing.T) {

View file

@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
) )
type ManifestLoader func(startDir string) (manifest.File, string, error) type ManifestLoader func(startDir string) (manifest.File, string, error)

View file

@ -9,7 +9,7 @@ import (
"github.com/99designs/keyring" "github.com/99designs/keyring"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
) )
func TestOpenFromManifestUsesPolicyFromManifest(t *testing.T) { func TestOpenFromManifestUsesPolicyFromManifest(t *testing.T) {

View file

@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
"gitea.lclr.dev/AI/mcp-framework/manifest" "forge.lclr.dev/AI/mcp-framework/manifest"
) )
func TestDescribeRuntimeReturnsDeclaredAndEffectivePolicies(t *testing.T) { func TestDescribeRuntimeReturnsDeclaredAndEffectivePolicies(t *testing.T) {