Skip to content

feat(agent): Add open-source BaseAgent utilizing MCP Executor composition#209

Open
Dev-Scodes5 wants to merge 1 commit intoIBM:mainfrom
Dev-Scodes5:feat/add-base-mcp-agent
Open

feat(agent): Add open-source BaseAgent utilizing MCP Executor composition#209
Dev-Scodes5 wants to merge 1 commit intoIBM:mainfrom
Dev-Scodes5:feat/add-base-mcp-agent

Conversation

@Dev-Scodes5
Copy link

Fixes #196

Adds the foundational architecture for standalone open-source agents.

Instead of directly inheriting from workflow.Executor (which is tightly coupled to PlanStep logic), this approach uses composition. The BaseAgent wraps the executor to handle the underlying MCP stdio connections and tool routing. This leaves the agent completely independent to implement its own autonomous reasoning loop (e.g., ReAct, Claude Code).

Changes:

Created src/agent/base_agent.py containing the BaseAgent class and a call_tool() wrapper.

Added src/agent/README.md to guide users on how to inherit from this base class and add their own components.

Testing:

Ran uv run pytest src/ -v -k "not integration". All base tests pass. (Note: the 1 failure in TestHistory is just my local environment missing the CouchDB Docker fixture, entirely isolated from this module).

…outing

Signed-off-by: Sheraz Arshad <vectorvitalityfit@gmail.com>
@DhavalRepo18
Copy link
Collaborator

@Dev-Scodes5 I have revised the git issue. It brings more clarity on what we now call a base agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature : Adding open source version of base agent

2 participants