mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 14:08:01 +08:00
Revert "feat(mcp): add MCP extension support with routes and configur… (#3166)
Revert "feat(mcp): add MCP extension support with routes and configuration"
This reverts commit 56afa6bd42.
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
56afa6bd42
commit
eec57e62ca
@@ -496,10 +496,6 @@ func (c *Config) IsMgmtEnabled() bool {
|
||||
return c.IsSearchEnabled()
|
||||
}
|
||||
|
||||
func (c *Config) IsMCPEnabled() bool {
|
||||
return c.Extensions != nil && c.Extensions.MCP != nil && *c.Extensions.MCP.Enable
|
||||
}
|
||||
|
||||
func (c *Config) IsImageTrustEnabled() bool {
|
||||
return c.Extensions != nil && c.Extensions.Trust != nil && *c.Extensions.Trust.Enable
|
||||
}
|
||||
|
||||
@@ -33,9 +33,4 @@ const (
|
||||
UserPrefs = "/userprefs"
|
||||
ExtUserPrefs = ExtPrefix + UserPrefs
|
||||
FullUserPrefs = RoutePrefix + ExtUserPrefs
|
||||
|
||||
// mcp extension.
|
||||
MCP = "/mcp"
|
||||
ExtMCP = ExtPrefix + MCP
|
||||
FullMCP = RoutePrefix + ExtMCP
|
||||
)
|
||||
|
||||
@@ -212,7 +212,6 @@ func (rh *RouteHandler) SetupRoutes() {
|
||||
rh.c.Log)
|
||||
ext.SetupImageTrustRoutes(rh.c.Config, prefixedRouter, rh.c.MetaDB, rh.c.Log)
|
||||
ext.SetupMgmtRoutes(rh.c.Config, prefixedRouter, rh.c.Log)
|
||||
ext.SetupMCPRoutes(rh.c.Config, prefixedRouter, rh.c.StoreController, rh.c.MetaDB, rh.c.Log)
|
||||
ext.SetupUserPreferencesRoutes(rh.c.Config, prefixedRouter, rh.c.MetaDB, rh.c.Log)
|
||||
// last should always be UI because it will setup a http.FileServer and paths will be resolved by this FileServer.
|
||||
ext.SetupUIRoutes(rh.c.Config, rh.c.Router, rh.c.Log)
|
||||
|
||||
Reference in New Issue
Block a user