@forumone/throughline-plugin-contract
v0.2.1
Published
Shared plugin and MCP contract types and the cross-plugin registry for @forumone/throughline core packages.
Readme
@forumone/throughline-plugin-contract
Shared type contracts every Throughline core plugin satisfies, plus the cross-plugin runtime registry. Core packages import from here so the plugin surface stays consistent across the framework. It is published because every core plugin imports getPluginRegistry from it at runtime.
What's in here
CorePlugin<Options>— the Payload plugin signature every core package exportsBaseCorePluginOptions— options every plugin accepts (enabled,routePrefix,logger)McpToolDefinition,McpToolContext,McpMeta— the MCP server surfaceMcpAuthenticator,McpAuthResult,AuthenticatedUser— shared bearer-token auth typesgetPluginRegistry— the runtime registry plugins use to announce themselves and check for sibling pluginsexamplePlugin— a reference implementation showing the exact shape every future plugin follows
Authoring a plugin
See docs/building-plugins.md at the repo root.
