Add comprehensive MCP agent management tools with filesystem integration#33
Merged
Merged
Conversation
Features:
• update_agent_prompt - Update agent system prompts via MCP
• add_tool - Add individual tools to agents
• remove_tool - Remove individual tools from agents
• export_agent - Export agents to dotprompt files with filesystem write
Implementation:
• Added 4 new MCP tools to tools_setup.go (15 total tools)
• Added complete handler functions with database integration
• Added UpdatePrompt method to AgentRepo with SQLC query
• Added filesystem export matching CLI behavior exactly
• Full error handling and validation for all edge cases
Database Changes:
• New UpdateAgentPrompt SQLC query for targeted prompt updates
• Updated agent repository with UpdatePrompt method
Testing:
• All 4 tools tested and verified working with live database
• Export tool writes to ~/.config/station/environments/{env}/agents/
• Proper directory creation and file permissions
• Complete feature parity with Station CLI
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
Author
|
🚀 Ready for merge! All MCP agent management tools are fully implemented and tested: Key Features Verified:
Database Operations: All CRUD operations working with proper validation These tools provide complete feature parity with Station CLI, enabling full agent management through MCP clients like Claude Code! 🎯 |
epuerta9
added a commit
that referenced
this pull request
Aug 20, 2025
…ion (#33) Features: • update_agent_prompt - Update agent system prompts via MCP • add_tool - Add individual tools to agents • remove_tool - Remove individual tools from agents • export_agent - Export agents to dotprompt files with filesystem write Implementation: • Added 4 new MCP tools to tools_setup.go (15 total tools) • Added complete handler functions with database integration • Added UpdatePrompt method to AgentRepo with SQLC query • Added filesystem export matching CLI behavior exactly • Full error handling and validation for all edge cases Database Changes: • New UpdateAgentPrompt SQLC query for targeted prompt updates • Updated agent repository with UpdatePrompt method Testing: • All 4 tools tested and verified working with live database • Export tool writes to ~/.config/station/environments/{env}/agents/ • Proper directory creation and file permissions • Complete feature parity with Station CLI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
epuerta9
added a commit
that referenced
this pull request
Aug 30, 2025
…ion (#33) Features: • update_agent_prompt - Update agent system prompts via MCP • add_tool - Add individual tools to agents • remove_tool - Remove individual tools from agents • export_agent - Export agents to dotprompt files with filesystem write Implementation: • Added 4 new MCP tools to tools_setup.go (15 total tools) • Added complete handler functions with database integration • Added UpdatePrompt method to AgentRepo with SQLC query • Added filesystem export matching CLI behavior exactly • Full error handling and validation for all edge cases Database Changes: • New UpdateAgentPrompt SQLC query for targeted prompt updates • Updated agent repository with UpdatePrompt method Testing: • All 4 tools tested and verified working with live database • Export tool writes to ~/.config/station/environments/{env}/agents/ • Proper directory creation and file permissions • Complete feature parity with Station CLI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
epuerta9
added a commit
that referenced
this pull request
Sep 2, 2025
…ion (#33) Features: • update_agent_prompt - Update agent system prompts via MCP • add_tool - Add individual tools to agents • remove_tool - Remove individual tools from agents • export_agent - Export agents to dotprompt files with filesystem write Implementation: • Added 4 new MCP tools to tools_setup.go (15 total tools) • Added complete handler functions with database integration • Added UpdatePrompt method to AgentRepo with SQLC query • Added filesystem export matching CLI behavior exactly • Full error handling and validation for all edge cases Database Changes: • New UpdateAgentPrompt SQLC query for targeted prompt updates • Updated agent repository with UpdatePrompt method Testing: • All 4 tools tested and verified working with live database • Export tool writes to ~/.config/station/environments/{env}/agents/ • Proper directory creation and file permissions • Complete feature parity with Station CLI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
toininoi
pushed a commit
to toininoi/station
that referenced
this pull request
Mar 23, 2026
…ion (cloudshipai#33) Features: • update_agent_prompt - Update agent system prompts via MCP • add_tool - Add individual tools to agents • remove_tool - Remove individual tools from agents • export_agent - Export agents to dotprompt files with filesystem write Implementation: • Added 4 new MCP tools to tools_setup.go (15 total tools) • Added complete handler functions with database integration • Added UpdatePrompt method to AgentRepo with SQLC query • Added filesystem export matching CLI behavior exactly • Full error handling and validation for all edge cases Database Changes: • New UpdateAgentPrompt SQLC query for targeted prompt updates • Updated agent repository with UpdatePrompt method Testing: • All 4 tools tested and verified working with live database • Export tool writes to ~/.config/station/environments/{env}/agents/ • Proper directory creation and file permissions • Complete feature parity with Station CLI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
• Added 4 new MCP tools for complete agent management via Claude Code and other MCP clients
• Full database integration with proper validation and error handling
• Filesystem export functionality matching CLI behavior exactly
New MCP Tools Added
update_agent_prompt- Update an agent's system promptadd_tool- Add individual tools to an agentremove_tool- Remove individual tools from an agentexport_agent- Export agent configuration to dotprompt format with filesystem writeTechnical Implementation
UpdatePromptmethod toAgentRepowith SQLC querytools_setup.go(now 15 total tools)handlers_fixed.gowith comprehensive error handling~/.config/station/environments/{env}/agents/like CLITesting Results
✅ All 4 tools tested and verified working with live database
✅ Export tool writes files to filesystem correctly
✅ Proper validation and error handling for all edge cases
✅ Complete feature parity with Station CLI
Test Plan
tools/listupdate_agent_promptwith database updatesadd_toolandremove_toolwith agent-tool relationshipsexport_agentwith filesystem write to correct location🤖 Generated with Claude Code