PluginRoutes · packages/server/src/http/routes/plugins.ts:382

PluginRoutes

http-routes

The plugin library and the Agent-scoped install/uninstall groups, as one route component.

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "PluginRoutes.library",
      "prefix": "/api/plugins",
      "auth": "user",
      "order": 70
    },
    {
      "id": "PluginRoutes.agent-plugins",
      "prefix": "/api/projects/:projectId/agents/:agentId/plugins",
      "auth": "user",
      "order": 222
    },
    {
      "id": "PluginRoutes.agent-hooks",
      "prefix": "/api/projects/:projectId/agents/:agentId/hooks",
      "auth": "user",
      "order": 224
    },
    {
      "id": "PluginRoutes.agent-mcp-servers",
      "prefix": "/api/projects/:projectId/agents/:agentId/mcp-servers",
      "auth": "user",
      "order": 226
    }
  ]
}

Code Half (@Bind)

@Bind("PluginRoutes.library") libraryRoutes!: Hono<AppEnv>; · @Bind("PluginRoutes.agent-plugins") pluginRoutes!: Hono<AppEnv>; · @Bind("PluginRoutes.agent-hooks") hookRoutes!: Hono<AppEnv>; · @Bind("PluginRoutes.agent-mcp-servers") mcpServerRoutes!: Hono<AppEnv>;

Endpoints (15)

GET

/api/plugins

PluginRoutes.library auth: user
GET

/api/plugins/:plugin/files

PluginRoutes.library auth: user
GET

/api/plugins/:plugin/readme

PluginRoutes.library auth: user
GET

/api/plugins/:plugin/archive

PluginRoutes.library auth: user
GET

/api/plugins/:plugin/icon

PluginRoutes.library auth: user
GET

/api/projects/:projectId/agents/:agentId/plugins

PluginRoutes.agent-plugins auth: user
POST

/api/projects/:projectId/agents/:agentId/plugins

PluginRoutes.agent-plugins auth: user
DELETE

/api/projects/:projectId/agents/:agentId/plugins/:name

PluginRoutes.agent-plugins auth: user
GET

/api/projects/:projectId/agents/:agentId/hooks

PluginRoutes.agent-hooks auth: user
POST

/api/projects/:projectId/agents/:agentId/hooks/archive

PluginRoutes.agent-hooks auth: user
GET

/api/projects/:projectId/agents/:agentId/hooks/:name/archive

PluginRoutes.agent-hooks auth: user
GET

/api/projects/:projectId/agents/:agentId/hooks/:name/icon

PluginRoutes.agent-hooks auth: user
DELETE

/api/projects/:projectId/agents/:agentId/hooks/:name

PluginRoutes.agent-hooks auth: user
GET

/api/projects/:projectId/agents/:agentId/mcp-servers

PluginRoutes.agent-mcp-servers auth: user
DELETE

/api/projects/:projectId/agents/:agentId/mcp-servers/:name

PluginRoutes.agent-mcp-servers auth: user