Writes a library plugin onto an Agent's Agent State — its skills, hook package, workbenches and MCP servers, whole or refused (the server binds core's installPlugin: it reads the plugin library through the host the server names, so the write runs on the server's own core copy).
API
@Interface()
export abstract class AgentPluginInstaller {
abstract install(
root: string,
projectId: string,
agentId: string,
plugin: LibraryPlugin,
): Promise<void>;
abstract installBare(
root: string,
projectId: string,
agentId: string,
plugin: LibraryPlugin,
): Promise<void>;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (2)
install
install(root: string, projectId: string, agentId: string, plugin: LibraryPlugin): Promise<void>The write with a taken MCP server name translated: creating an Agent answers the creator's choice with 409 mcp_server_name_taken.
@paramroot
string@paramprojectId
string@paramagentId
string@paramplugin
LibraryPlugin@returns
Promise<void>installBare
installBare(root: string, projectId: string, agentId: string, plugin: LibraryPlugin): Promise<void>The same write with core's own error left bare: a plugin update's caller reads the McpServerNameTakenError (the holder's server, agent and ownership on it), as the whole-plugin update's contract spells.
@paramroot
string@paramprojectId
string@paramagentId
string@paramplugin
LibraryPlugin@returns
Promise<void>