How to connect to already existing AI agents/functions
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3493177. --> Reported by: [jibla](https://www.drupal.org/user/1013184) >>> <h2>Problem Statement</h2> <p>One of the important topics we face to discuss and solve, is integrating with the already existing AI ecosystem, which includes AI agents, functions/actions that these agents perform.</p> <p>To avoid &ldquo;reinventing the wheel&rdquo; and duplicating existing work, we want to discuss the best way to leverage and integrate existing AI agent actions and functions. Specifically, we aim to determine how to call and expose these functions automatically with the MCP framework.</p> <h2>Proposed Approach</h2> <p>Our general plan is to use Drupal Plugin types for the various MCP entities, such as, resource plugins for defining resources, tool plugins for implementing tools and others.</p> <p>The idea is that other modules will be able to define their own tools and functionalities. However, we believe it would be beneficial if the AI agent functions/actions could be automatically exposed as MCP tools. This would simplify integration and make it easier to connect with the existing AI ecosystem without additional configuration or manual steps.</p> <h2>Questions for Discussion</h2> <ol> <li>How and what should we call to integrate existing AI agent functions/actions?</li> <li>How should the discovery process work?</li> </ol> > Related issue: [Issue #3493167](https://www.drupal.org/node/3493167)
issue