@iflow-mcp/rafeekpro-geminiautopm
v0.1.1
Published
AutoPM Framework for Gemini CLI - Intelligent Project Management with MCP
Readme
GeminiAutoPM
Intelligent Project Management Framework for Gemini CLI
GeminiAutoPM is a powerful Gemini CLI extension that provides AI-powered agent tools for code analysis, test execution, DevOps automation, and agile project management. Built on the Model Context Protocol (MCP), it brings intelligent automation to your development workflow.
✨ Features
🔍 Code Analyzer
- Bug Detection: Trace logic flows and identify potential bugs
- Security Scanning: Detect vulnerabilities and security anti-patterns
- Performance Analysis: Identify bottlenecks and optimization opportunities
- Code Quality: Assess maintainability and best practices adherence
🧪 Test Runner
- Test Execution: Run tests with any framework (Jest, Mocha, Pytest, etc.)
- Failure Analysis: Deep-dive into test failures with root cause analysis
- Coverage Assessment: Identify test coverage gaps
- Regression Detection: Compare results with baseline metrics
🤖 Agent Manager
- Tool Creation: Scaffold new MCP tools following best practices
- Registry Management: Maintain consistent tool catalog
- Validation: Ensure tools follow MCP standards
- Documentation: Generate comprehensive docs with examples
🚀 Quick Start
Installation
# Install the extension
gemini extensions install rafeekpro/GeminiAutoPM
# Verify installation
gemini extensions listBasic Usage
Once installed, the tools are automatically available in Gemini CLI:
# Start Gemini CLI
gemini
# Use the tools in natural language
> Use the code_analyzer tool to review my authentication module for security issues
> Use the test_runner tool to execute all unit tests and analyze failures
> Use the agent_manager tool to create a new MCP tool for GraphQL development📖 Documentation
Agent Tools
code_analyzer
Performs deep code analysis for bugs, security vulnerabilities, and optimization opportunities.
Parameters:
task(required): The code analysis task to performscope(optional): Analysis focus (security, performance, bugs)files(optional): Specific files to analyze
Example:
Use code_analyzer to scan the src/auth directory for security vulnerabilitiesContext7 Queries:
mcp://context7/security/code-analysismcp://context7/security/vulnerability-scanningmcp://context7/code-quality/static-analysis
test_runner
Executes tests and provides comprehensive failure analysis.
Parameters:
task(required): The test execution taskscope(optional): Test type (unit, integration, e2e)testPattern(optional): Test file patternframework(optional): Test framework (jest, mocha, pytest)
Example:
Use test_runner to run all integration tests and analyze any failuresContext7 Queries:
mcp://context7/testing/test-frameworksmcp://context7/testing/jestmcp://context7/testing/test-analysis
agent_manager
Creates and manages MCP tools and agent definitions.
Parameters:
task(required): Management task (create, analyze, update)scope(optional): Management scopeagentType(optional): Type of agent/toolcapabilities(optional): Required capabilities
Example:
Use agent_manager to create a new tool for Docker containerizationContext7 Queries:
mcp://context7/mcp/model-context-protocolmcp://context7/mcp/tool-developmentmcp://context7/typescript/zod-validation
🏗️ Architecture
MCP Server Structure
GeminiAutoPM/
├── src/
│ ├── agents/ # Agent implementations
│ │ ├── code-analyzer.ts
│ │ ├── test-runner.ts
│ │ └── agent-manager.ts
│ ├── types/ # TypeScript types
│ │ └── agent.ts
│ └── agents-server.ts # Main MCP server
├── gemini-extension.json # Extension manifest
├── GEMINI.md # Persistent context
└── package.jsonHow It Works
- Extension Loading: Gemini CLI loads the extension and reads
GEMINI.md - MCP Server Start: The
agents-server.tsstarts via stdio transport - Tool Registration: Three tools are registered with the MCP server
- Tool Invocation: Gemini model can invoke tools based on user requests
- Result Processing: Tool results are returned as structured content
🔧 Development
Prerequisites
- Node.js >= 20.0.0
- npm >= 10.0.0
- Gemini CLI installed
Setup
# Clone the repository
git clone https://github.com/rafeekpro/GeminiAutoPM.git
cd GeminiAutoPM
# Install dependencies
npm install
# Build the project
npm run build
# Link for local development
gemini extensions link .Testing
# Run tests
npm test
# Watch mode
npm run test:watch
# Coverage report
npm run test:coverageProject Commands
npm run build # Compile TypeScript to JavaScript
npm run dev # Watch mode for development
npm test # Run Jest tests
npm run test:coverage # Generate coverage report📝 Framework Principles
1. Context7 Integration (MANDATORY)
Always query Context7 documentation before implementing:
- Verify API signatures against live documentation
- Apply current best practices
- Follow industry standards
2. Test-Driven Development (TDD)
All code follows TDD:
- Write tests FIRST
- Implement functionality
- Refactor while keeping tests green
- Achieve comprehensive coverage
3. Security First
Security is paramount:
- Use
code_analyzerwith security scope before releases - Follow OWASP and CWE standards
- Validate all inputs
- Handle errors gracefully
🛠️ Configuration
Extension Manifest (gemini-extension.json)
{
"name": "gemini-autopm",
"version": "0.1.0",
"contextFileName": "GEMINI.md",
"mcpServers": {
"autopm-agents": {
"command": "node",
"args": ["${extensionPath}/dist/agents-server.js"],
"cwd": "${extensionPath}"
}
}
}User Settings (~/.gemini/settings.json)
The extension is automatically configured. No manual settings required.
🤝 Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Follow TDD - write tests first
- Ensure all tests pass (
npm test) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Guidelines
- Follow TypeScript strict mode
- Use Zod for input validation
- Include Context7 documentation queries
- Write comprehensive tests (80%+ coverage)
- Add usage examples to tool descriptions
- Update documentation
📄 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
- Built on Model Context Protocol (MCP)
- Powered by Gemini CLI
- Inspired by ClaudeAutoPM
📞 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
🗺️ Roadmap
Phase 1: Core Foundation (Current)
- ✅ MCP server with 3 core agent tools
- ✅ Basic documentation and examples
- ✅ Initial test coverage
Phase 2: Expanded Capabilities
- [ ] Add 10 more specialized agent tools
- [ ] Project management prompts (epic decomposition, task breakdown)
- [ ] DevOps automation tools
- [ ] Enhanced test analysis features
Phase 3: Advanced Features
- [ ] Multi-server architecture
- [ ] Custom command definitions (TOML)
- [ ] Advanced Context7 integration
- [ ] Docker sandbox support
- [ ] CI/CD integration examples
Phase 4: Enterprise Features
- [ ] Tool allowlisting and security controls
- [ ] Performance optimization
- [ ] Multi-project support
- [ ] Advanced analytics and reporting
🌟 Star History
If you find GeminiAutoPM useful, please consider giving it a star on GitHub!
Made with ❤️ for the Gemini CLI community
