id-cardPlugin Registration

Registering your shiny new plugin for GL Connector!

circle-exclamation

While registering a plugin is as simple as plugging it into the appropriate Plugin Manager, as of the time of writing, we have two Plugin Handlers; for our standard HTTP Manager, and the MCP Manager (do note that MCP Manager is also an MCP Handler). All of this will be handled in Connector API's app.py located herearrow-up-right.

Registering the Plugin for HTTP Manager

The variable name for the normal HTTP manager is plugin_manager. To register your plugin, you simply need to add it by registering it as such:

plugin_manager.register_plugin(PluginClass)

That's it! You have successfully added the new plugin for GL Connector!

Registering the Plugin for MCP Manager

Adding the plugin for MCP Manager is a little more tricky, because of the lifetime it requires to setup Streamable HTTP. As such, there are two places you need to register the plugin in:

In the MCP Generator herearrow-up-right:

mcp_generator = McpGenerator()
mcps = mcp_generator.generate_fastmcp(
    plugin_classes=[
        # ...other plugins,
        PluginClass
        # *acidev_plugins
    ]
)

And finally, in the actual plugin manager named mcp_plugin_manager herearrow-up-right:

Last updated