Skip to content

feat: add sub-agent MCP server with background processing support#16

Closed
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:sub-agent
Closed

feat: add sub-agent MCP server with background processing support#16
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:sub-agent

Conversation

@localai-bot
Copy link
Contributor

This PR adds a sub-agent MCP server with background processing support.

- Implements sub_agent_chat tool for synchronous and asynchronous chat completions
- Adds sub_agent_list tool to list active background tasks
- Adds sub_agent_get_result tool to retrieve task results
- Supports TTL-based cleanup for background tasks
- Configurable via environment variables:
  - OPENAI_BASE_URL: Base URL for OpenAI API
  - OPENAI_MODEL: Model to use (default: gpt-4o-mini)
  - OPENAI_API_KEY: API key for authentication
  - SUB_AGENT_TTL: TTL in hours for task results (default: 4)
@localai-bot
Copy link
Contributor Author

👀 Monitoring PR - CI passing, awaiting review

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you committed a binary here. remove it!

@@ -0,0 +1,10 @@
module github.com/mudler/MCPs/sub-agent
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for a separate go.mod/go.sum. there is already one at top level

@mudler
Copy link
Owner

mudler commented Feb 27, 2026

you also need to add it to the github workflow for building, and update the README.md of the repository

@localai-bot
Copy link
Contributor Author

Pushed updates to address review feedback:

  1. Added to the GitHub workflow () for building the Docker image
  2. Added Sub-Agent Server documentation to

The changes are in commit d149799 on the branch.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants