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
PluginRoutes.library auth: user
/api/plugins
PluginRoutes.library auth: userGET
PluginRoutes.library auth: user
/api/plugins/:plugin/files
PluginRoutes.library auth: userGET
PluginRoutes.library auth: user
/api/plugins/:plugin/readme
PluginRoutes.library auth: userGET
PluginRoutes.library auth: user
/api/plugins/:plugin/archive
PluginRoutes.library auth: userGET
PluginRoutes.library auth: user
/api/plugins/:plugin/icon
PluginRoutes.library auth: userGET
PluginRoutes.agent-plugins auth: user
/api/projects/:projectId/agents/:agentId/plugins
PluginRoutes.agent-plugins auth: userPOST
PluginRoutes.agent-plugins auth: user
/api/projects/:projectId/agents/:agentId/plugins
PluginRoutes.agent-plugins auth: userDELETE
PluginRoutes.agent-plugins auth: user
/api/projects/:projectId/agents/:agentId/plugins/:name
PluginRoutes.agent-plugins auth: userGET
PluginRoutes.agent-hooks auth: user
/api/projects/:projectId/agents/:agentId/hooks
PluginRoutes.agent-hooks auth: userPOST
PluginRoutes.agent-hooks auth: user
/api/projects/:projectId/agents/:agentId/hooks/archive
PluginRoutes.agent-hooks auth: userGET
PluginRoutes.agent-hooks auth: user
/api/projects/:projectId/agents/:agentId/hooks/:name/archive
PluginRoutes.agent-hooks auth: userGET
PluginRoutes.agent-hooks auth: user
/api/projects/:projectId/agents/:agentId/hooks/:name/icon
PluginRoutes.agent-hooks auth: userDELETE
PluginRoutes.agent-hooks auth: user
/api/projects/:projectId/agents/:agentId/hooks/:name
PluginRoutes.agent-hooks auth: userGET
PluginRoutes.agent-mcp-servers auth: user
/api/projects/:projectId/agents/:agentId/mcp-servers
PluginRoutes.agent-mcp-servers auth: userDELETE
PluginRoutes.agent-mcp-servers auth: user