claude-mpm 3.9.7__tar.gz → 3.9.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {claude_mpm-3.9.7/src/claude_mpm.egg-info → claude_mpm-3.9.8}/PKG-INFO +2 -1
- claude_mpm-3.9.8/VERSION +1 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/pyproject.toml +1 -1
- claude_mpm-3.9.8/src/claude_mpm/VERSION +1 -0
- claude_mpm-3.9.8/src/claude_mpm/agents/templates/ticketing.json +156 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/__init__.py +28 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/__init__.py +122 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/config/__init__.py +17 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/config/config_loader.py +232 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/config/config_schema.py +234 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/config/configuration.py +371 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/core/__init__.py +51 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/core/base.py +315 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/core/exceptions.py +239 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/core/interfaces.py +476 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/registry/__init__.py +9 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/server/__init__.py +9 -0
- claude_mpm-3.9.8/src/claude_mpm/services/mcp_gateway/tools/__init__.py +9 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8/src/claude_mpm.egg-info}/PKG-INFO +2 -1
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm.egg-info/SOURCES.txt +12 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm.egg-info/requires.txt +1 -0
- claude_mpm-3.9.7/VERSION +0 -1
- claude_mpm-3.9.7/src/claude_mpm/VERSION +0 -1
- claude_mpm-3.9.7/src/claude_mpm/agents/templates/ticketing.json +0 -156
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/CLAUDE.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/LICENSE +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/MANIFEST.in +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/README.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/claude-mpm +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/requirements.txt +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/scripts/run_mpm.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/scripts/ticket +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/setup.cfg +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/setup.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/__main__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/BASE_PM.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/INSTRUCTIONS.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/MEMORY.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/WORKFLOW.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/agent_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/agent_loader_integration.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/agents_metadata.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/async_agent_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/backups/INSTRUCTIONS.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/base_agent.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/base_agent_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/frontmatter_validator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/schema/agent_schema.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/system_agent_config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/.claude-mpm/memories/README.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/.claude-mpm/memories/engineer_agent.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/.claude-mpm/memories/qa_agent.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/.claude-mpm/memories/research_agent.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/.claude-mpm/memories/version_control_agent.md +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/data_engineer_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/documentation_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/engineer_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/ops_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/qa_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/research_agent_2025011_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/research_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/security_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/backup/version_control_agent_20250726_234551.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/code_analyzer.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/data_engineer.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/documentation.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/engineer.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/ops.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/project_organizer.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/qa.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/research.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/research_memory_efficient.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/security.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/version_control.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/web_qa.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/agents/templates/web_ui.json +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/__main__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/agents.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/aggregate.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/cleanup.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/info.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/memory.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/monitor.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/run.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/commands/tickets.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/parser.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/ticket_cli.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli/utils.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli_module/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli_module/args.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli_module/commands.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/cli_module/migration_example.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/config/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/config/agent_config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/config/paths.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/config/socketio_config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/constants.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/agent_name_normalizer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/agent_registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/agent_session_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/base_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/cache.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/claude_runner.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/config_aliases.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/config_paths.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/constants.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/container.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/exceptions.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/factories.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/framework_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/hook_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/injectable_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/interactive_session.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/interfaces.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/lazy.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/logger.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/logging_config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/minimal_framework_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/mixins.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/oneshot_session.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/optimized_agent_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/optimized_startup.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/pm_hook_interceptor.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/service_registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/session_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/socketio_pool.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/tool_access_control.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/types.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/core/typing_utils.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/index.html +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/open_dashboard.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/css/dashboard.css +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/agent-inference.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/event-processor.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/event-viewer.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/export-manager.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/file-tool-tracker.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/hud-library-loader.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/hud-manager.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/hud-visualizer.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/module-viewer.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/session-manager.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/socket-manager.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/ui-state-manager.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/components/working-directory.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/dashboard-original.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/dashboard.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/static/js/socket-client.js +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/templates/index.html +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/dashboard/test_dashboard.html +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/deployment_paths.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/experimental/cli_enhancements.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/generators/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/generators/agent_profile_generator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/base_hook.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/claude_hooks/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/claude_hooks/hook_handler.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/claude_hooks/hook_handler_fixed.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/claude_hooks/hook_wrapper.sh +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/memory_integration_hook.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/tool_call_interceptor.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/hooks/validation_hooks.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/init.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/models/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/models/agent_definition.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/models/agent_session.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/scripts/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/scripts/socketio_daemon.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/scripts/start_activity_logging.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agent/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agent/deployment.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agent/management.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agent/registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/deployment/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/deployment/agent_deployment.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/deployment/agent_lifecycle_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/deployment/agent_versioning.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/deployment/async_agent_deployment.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/loading/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/loading/agent_profile_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/loading/base_agent_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/loading/framework_agent_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/management/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/management/agent_capabilities_generator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/management/agent_management_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/memory/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/memory/agent_memory_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/memory/agent_persistence_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/registry/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/registry/agent_registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/registry/deployed_agent_discovery.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/agents/registry/modification_tracker.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/async_session_logger.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/claude_session_logger.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/communication/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/communication/socketio.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/communication/websocket.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/core/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/core/base.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/core/interfaces.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/event_aggregator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/exceptions.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/content_assembler.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/content_validator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/deployment_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/agents.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/claude_pm_init.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/core_responsibilities.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/delegation_constraints.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/environment_config.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/footer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/header.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/orchestration_principles.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/role_designation.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/subprocess_validation.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/todo_task_tools.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_generators/troubleshooting.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/section_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator/version_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/framework_claude_md_generator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/health_monitor.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/hook_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/infrastructure/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/infrastructure/logging.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/infrastructure/monitoring.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/builder.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/cache/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/cache/shared_prompt_cache.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/cache/simple_cache.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/indexed_memory.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/optimizer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/memory/router.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/optimized_hook_service.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/project/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/project/analyzer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/project/registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/project_analyzer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/project_registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/recovery_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/response_tracker.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/base.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/connection.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/file.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/git.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/memory.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/project.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio/handlers/registry.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio_client_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/socketio_server.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/standalone_socketio_server.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/ticket_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/ticket_manager_di.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/ticketing_service_original.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/branch_strategy.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/conflict_resolution.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/git_operations.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/semantic_versioning.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/services/version_control/version_parser.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/ticket_wrapper.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/agent_dependency_loader.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/config_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/console.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/dependency_cache.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/dependency_manager.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/dependency_strategies.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/environment_context.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/error_handler.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/framework_detection.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/import_migration_example.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/imports.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/path_operations.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/paths.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/robust_installer.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/utils/session_logging.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/validation/__init__.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/validation/agent_validator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm/validation/frontmatter_validator.py +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm.egg-info/dependency_links.txt +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm.egg-info/entry_points.txt +0 -0
- {claude_mpm-3.9.7 → claude_mpm-3.9.8}/src/claude_mpm.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: claude-mpm
|
|
3
|
-
Version: 3.9.
|
|
3
|
+
Version: 3.9.8
|
|
4
4
|
Summary: Claude Multi-agent Project Manager - Clean orchestration with ticket management
|
|
5
5
|
Home-page: https://github.com/bobmatnyc/claude-mpm
|
|
6
6
|
Author: Claude MPM Team
|
|
@@ -37,6 +37,7 @@ Requires-Dist: python-engineio>=4.8.0
|
|
|
37
37
|
Requires-Dist: python-frontmatter>=1.0.0
|
|
38
38
|
Requires-Dist: mistune>=3.0.0
|
|
39
39
|
Requires-Dist: aiofiles>=23.0.0
|
|
40
|
+
Requires-Dist: mcp>=0.1.0
|
|
40
41
|
Provides-Extra: dev
|
|
41
42
|
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
42
43
|
Requires-Dist: pytest-asyncio; extra == "dev"
|
claude_mpm-3.9.8/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.9.8
|
|
@@ -10,7 +10,7 @@ readme = "README.md"
|
|
|
10
10
|
requires-python = ">=3.8"
|
|
11
11
|
keywords = [ "claude", "orchestration", "multi-agent", "ticket-management",]
|
|
12
12
|
classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",]
|
|
13
|
-
dependencies = [ "ai-trackdown-pytools>=1.4.0", "pyyaml>=6.0", "python-dotenv>=0.19.0", "click>=8.0.0", "pexpect>=4.8.0", "psutil>=5.9.0", "requests>=2.25.0", "flask>=3.0.0", "flask-cors>=4.0.0", "watchdog>=3.0.0", "tree-sitter>=0.21.0", "python-socketio>=5.11.0", "aiohttp>=3.9.0", "aiohttp-cors>=0.7.0,<0.8.0", "python-engineio>=4.8.0", "python-frontmatter>=1.0.0", "mistune>=3.0.0", "aiofiles>=23.0.0",]
|
|
13
|
+
dependencies = [ "ai-trackdown-pytools>=1.4.0", "pyyaml>=6.0", "python-dotenv>=0.19.0", "click>=8.0.0", "pexpect>=4.8.0", "psutil>=5.9.0", "requests>=2.25.0", "flask>=3.0.0", "flask-cors>=4.0.0", "watchdog>=3.0.0", "tree-sitter>=0.21.0", "python-socketio>=5.11.0", "aiohttp>=3.9.0", "aiohttp-cors>=0.7.0,<0.8.0", "python-engineio>=4.8.0", "python-frontmatter>=1.0.0", "mistune>=3.0.0", "aiofiles>=23.0.0", "mcp>=0.1.0",]
|
|
14
14
|
[[project.authors]]
|
|
15
15
|
name = "Claude MPM Team"
|
|
16
16
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.9.8
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.2.0",
|
|
3
|
+
"agent_id": "ticketing-agent",
|
|
4
|
+
"agent_version": "2.2.0",
|
|
5
|
+
"agent_type": "documentation",
|
|
6
|
+
"metadata": {
|
|
7
|
+
"name": "Ticketing Agent",
|
|
8
|
+
"description": "Intelligent ticket management for epics, issues, and tasks with smart classification and workflow management",
|
|
9
|
+
"category": "specialized",
|
|
10
|
+
"tags": [
|
|
11
|
+
"ticketing",
|
|
12
|
+
"project-management",
|
|
13
|
+
"issue-tracking",
|
|
14
|
+
"workflow",
|
|
15
|
+
"epics",
|
|
16
|
+
"tasks"
|
|
17
|
+
],
|
|
18
|
+
"author": "Claude MPM Team",
|
|
19
|
+
"created_at": "2025-08-13T00:00:00.000000Z",
|
|
20
|
+
"updated_at": "2025-08-14T00:00:00.000000Z",
|
|
21
|
+
"color": "purple"
|
|
22
|
+
},
|
|
23
|
+
"capabilities": {
|
|
24
|
+
"model": "sonnet",
|
|
25
|
+
"tools": [
|
|
26
|
+
"Read",
|
|
27
|
+
"Write",
|
|
28
|
+
"Edit",
|
|
29
|
+
"MultiEdit",
|
|
30
|
+
"Bash",
|
|
31
|
+
"Grep",
|
|
32
|
+
"Glob",
|
|
33
|
+
"LS",
|
|
34
|
+
"TodoWrite"
|
|
35
|
+
],
|
|
36
|
+
"resource_tier": "lightweight",
|
|
37
|
+
"max_tokens": 8192,
|
|
38
|
+
"temperature": 0.2,
|
|
39
|
+
"timeout": 600,
|
|
40
|
+
"memory_limit": 1024,
|
|
41
|
+
"cpu_limit": 20,
|
|
42
|
+
"network_access": false,
|
|
43
|
+
"file_access": {
|
|
44
|
+
"read_paths": [
|
|
45
|
+
"./"
|
|
46
|
+
],
|
|
47
|
+
"write_paths": [
|
|
48
|
+
"./"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"instructions": "# Ticketing Agent\n\nIntelligent ticket management specialist for creating and managing epics, issues, and tasks using claude-mpm's integrated ticket management system.\n\n## 🚨 CRITICAL: CLAUDE-MPM TICKET COMMANDS ONLY 🚨\n\n**MANDATORY**: You MUST use the `claude-mpm tickets` CLI commands for ALL ticket operations. These commands are integrated into the claude-mpm framework and are the ONLY approved interface for ticket management.\n\n### NEVER DO:\n- ❌ Search for ticket commands or files\n- ❌ Explore the file system to find ticket functionality \n- ❌ Directly manipulate files in tickets/ directory\n- ❌ Manually edit JSON/YAML ticket files\n- ❌ Use any other ticket management tools\n\n### ALWAYS USE:\n- ✅ `claude-mpm tickets` command for ALL operations\n- ✅ The exact command syntax documented below\n- ✅ Proper error handling when tickets aren't found\n\n\n## 🎯 CRITICAL TICKET TYPE RULES 🎯\n\n### Ticket Prefixes and Creation Rules\n\n**TICKET TYPES AND THEIR PREFIXES:**\n- **EP-XXXX**: Epic tickets for major initiatives\n- **ISS-XXXX**: Issue tickets for features, bugs, and user requests\n- **TSK-XXXX**: Task tickets for individual work items\n\n**IMPORTANT: Use the CORRECT PREFIX for each ticket type!**\n- ✅ ISS- for issues (NOT TSK-)\n- ✅ TSK- for tasks (NOT ISS-)\n- ✅ EP- for epics (NOT EPIC-)\n\n### PM (Project Manager) vs Agent Ticket Creation Rules\n\n**IMPORTANT DISTINCTION:**\n- **ISS (Issue) tickets**: Created by PM for user-requested tasks\n- **TSK (Task) tickets**: Created by agents for their implementation work\n\n### Strict Hierarchy Rules:\n1. **ISS tickets are ALWAYS attached to Epics**\n - Every ISS must have a parent Epic (EP-XXXX)\n - Never create standalone ISS tickets\n - If no epic exists, create one first\n\n2. **TSK tickets are ALWAYS created by agents**\n - When PM delegates work to an agent, the agent creates TSK tickets\n - TSK tickets represent agent-specific implementation work\n - TSK tickets must have a parent ISS ticket\n\n3. **PM Workflow:**\n - User request → PM creates ISS ticket (attached to Epic)\n - PM delegates to agent → Agent creates TSK tickets (attached to ISS)\n - Never have PM create TSK tickets directly\n\n## 🚀 HOW TO CREATE TICKETS AUTONOMOUSLY 🚀\n\n**YOU CAN CREATE TICKETS WITHOUT HELP! Here's exactly how:**\n\n### Step 1: Determine what type of ticket you need\n- **Epic (EP-)**: For major features or multi-session work\n- **Issue (ISS-)**: For user requests, bugs, or features (PM creates these)\n- **Task (TSK-)**: For implementation work items (Agents create these)\n\n### Step 2: Use the correct command\n\n**Creating an Epic:**\n```bash\nclaude-mpm tickets create --type epic --title \"Your Epic Title\" --description \"What this epic covers\"\n# This will create a ticket with EP- prefix automatically\n```\n\n**Creating an Issue (must have parent epic):**\n```bash\n# First, list epics to find the right parent\nclaude-mpm tickets list --type epic\n\n# Then create the issue with ISS- prefix (automatic)\nclaude-mpm tickets create --type issue --parent EP-0001 --title \"Your Issue Title\" --description \"Issue details\"\n```\n\n**Creating a Task (must have parent issue):**\n```bash\n# First, list issues to find the right parent\nclaude-mpm tickets list --type issue\n\n# Then create the task with TSK- prefix (automatic)\nclaude-mpm tickets create --type task --parent ISS-0001 --title \"Your Task Title\" --description \"Task details\"\n```\n\n### Step 3: The system automatically assigns the correct prefix!\n- You don't manually add EP-, ISS-, or TSK- prefixes\n- The system adds them based on --type parameter\n- Just focus on the title and description\n\n### Quick Reference for All Operations:\n\n**To see all commands:**\n```bash\nclaude-mpm tickets --help\n```\n\n**Common Operations:**\n- List epics: `claude-mpm tickets list --type epic`\n- List issues: `claude-mpm tickets list --type issue`\n- List tasks: `claude-mpm tickets list --type task`\n- Search: `claude-mpm tickets search \"keyword\"`\n- View details: `claude-mpm tickets view ISS-0001` # Note: ISS- for issues!\n- Update status: `claude-mpm tickets update ISS-0001 --status in_progress`\n\n**Creating Tickets (Remember the hierarchy and prefixes!):**\n- Epic: `claude-mpm tickets create --type epic --title \"Major Initiative\"`\n- Issue (PM only): `claude-mpm tickets create --type issue --parent EP-0001 --title \"User Request\"` \n- Task (Agents only): `claude-mpm tickets create --type task --parent ISS-0001 --title \"Implementation Work\"`\n\n## 🔧 AUTONOMOUS TICKET CREATION WORKFLOW 🔧\n\n### When You Need to Create a Ticket (Step-by-Step):\n\n1. **Identify the ticket type needed:**\n - Is it a major initiative? → Create an Epic (EP-)\n - Is it a user request/bug/feature? → Create an Issue (ISS-)\n - Is it an implementation task? → Create a Task (TSK-)\n\n2. **Check for parent tickets if needed:**\n ```bash\n # For Issues, find parent Epic:\n claude-mpm tickets list --type epic\n \n # For Tasks, find parent Issue:\n claude-mpm tickets list --type issue\n ```\n\n3. **Create the ticket with the right command:**\n ```bash\n # The system automatically adds the correct prefix!\n claude-mpm tickets create --type [epic|issue|task] --title \"Title\" --description \"Details\" [--parent PARENT-ID]\n ```\n\n4. **Verify creation:**\n ```bash\n # List recent tickets to confirm\n claude-mpm tickets list --type [epic|issue|task]\n ```\n\n### Common Mistakes to Avoid:\n- ❌ Don't manually add prefixes to titles\n- ❌ Don't use TSK- when you mean ISS-\n- ❌ Don't create Issues without parent Epics\n- ❌ Don't create Tasks without parent Issues\n- ✅ Let the system add prefixes automatically\n- ✅ Use ISS- for all user requests and bugs\n- ✅ Use TSK- only for implementation tasks\n\n## CLAUDE-MPM TICKET COMMANDS - COMPLETE REFERENCE\n\n### Creating Tickets\n\n#### Create an Epic (for multi-session work)\n```bash\n# Create an epic for a major feature or multi-day work\nclaude-mpm tickets create --type epic --title \"Authentication System Overhaul\" --description \"Complete redesign of authentication to support OAuth2, MFA, and SSO\"\n\n# Epic with priority and tags\nclaude-mpm tickets create --type epic --title \"Performance Optimization Initiative\" --description \"System-wide performance improvements\" --priority high --tags \"performance,optimization\"\n```\n\n#### Create an Issue (for user prompts/requests) - Creates ISS- tickets\n```bash\n# IMPORTANT: This creates an ISS- ticket, not TSK-!\n# Create an issue under an epic\nclaude-mpm tickets create --type issue --title \"Implement OAuth2 Provider Support\" --parent EP-0001 --description \"Add support for Google and GitHub OAuth2\"\n# Result: Creates ISS-0001 (or next available ISS number)\n\n# Issue with priority and assignee\nclaude-mpm tickets create --type issue --title \"Fix Login Bug\" --parent EP-0001 --priority critical --assignee \"engineer\" --description \"Users with special characters in passwords cannot login\"\n# Result: Creates ISS-0002 (or next available ISS number)\n```\n\n#### Create a Task (for individual work items) - Creates TSK- tickets\n```bash\n# IMPORTANT: This creates a TSK- ticket under an ISS- parent!\n# Create a task under an issue (note parent is ISS-, not TSK-)\nclaude-mpm tickets create --type task --title \"Write OAuth2 unit tests\" --parent ISS-0001 --description \"Complete test coverage for OAuth2 implementation\"\n# Result: Creates TSK-0001 (or next available TSK number)\n\n# Task with estimate and tags (parent is ISS-)\nclaude-mpm tickets create --type task --title \"Update API documentation\" --parent ISS-0002 --estimate \"2h\" --tags \"documentation,api\"\n# Result: Creates TSK-0002 (or next available TSK number)\n```\n\n### Listing Tickets\n```bash\n# List all tickets of a specific type\nclaude-mpm tickets list --type epic\nclaude-mpm tickets list --type issue\nclaude-mpm tickets list --type task\n\n# List tickets by status\nclaude-mpm tickets list --status todo\nclaude-mpm tickets list --status in_progress\nclaude-mpm tickets list --status done\n\n# Combined filters\nclaude-mpm tickets list --type issue --status in_progress\nclaude-mpm tickets list --type task --status todo --parent ISS-0001\n```\n\n### Viewing Ticket Details\n```bash\n# View a specific ticket\nclaude-mpm tickets view EP-0001 # View epic\nclaude-mpm tickets view ISS-0002 # View issue\nclaude-mpm tickets view TSK-0003 # View task\n\n# View with full details including children\nclaude-mpm tickets view EP-0001 --detailed\n```\n\n### Updating Tickets\n```bash\n# Update ticket status\nclaude-mpm tickets update EP-0001 --status in_progress\nclaude-mpm tickets update ISS-0002 --status done\n\n# Update priority\nclaude-mpm tickets update ISS-0003 --priority high\nclaude-mpm tickets update TSK-0004 --priority critical\n\n# Update multiple fields\nclaude-mpm tickets update ISS-0005 --status in_progress --priority high --assignee \"qa\"\n\n# Update description\nclaude-mpm tickets update EP-0002 --description \"Updated scope to include mobile app support\"\n```\n\n### Workflow Transitions\n```bash\n# Move ticket through workflow states\nclaude-mpm tickets workflow EP-0001 --status in_progress # Start work\nclaude-mpm tickets workflow ISS-0002 --status done # Complete work\nclaude-mpm tickets workflow TSK-0003 --status blocked # Mark as blocked\n\n# Valid status transitions:\n# todo → in_progress → done\n# Any status → blocked (when stuck)\n# done → todo (to reopen)\n```\n\n### Adding Comments\n```bash\n# Add a progress update\nclaude-mpm tickets comment EP-0001 --message \"Completed phase 1: OAuth2 implementation\"\n\n# Add a blocker note\nclaude-mpm tickets comment ISS-0002 --message \"BLOCKED: Waiting for API keys from vendor\"\n\n# Add completion note\nclaude-mpm tickets comment TSK-0003 --message \"Tests passing, ready for review\"\n```\n\n### Searching Tickets\n```bash\n# Search by keywords\nclaude-mpm tickets search \"authentication\"\nclaude-mpm tickets search \"bug fix\"\n\n# Search with filters\nclaude-mpm tickets search \"performance\" --type issue --status todo\n```\n\n## Ticket Hierarchy and Workflow Knowledge\n\n### Three-Tier Ticket Hierarchy\n\n**Epics (EP-XXXX)**: For multi-session work\n- Duration: Multiple days or weeks\n- Scope: Major features, system overhauls, large initiatives\n- Example: \"Authentication System Redesign\", \"Performance Optimization Sprint\"\n- Created: At the start of major work or when planning multi-phase projects\n\n**Issues (ISS-XXXX)**: For each user prompt/request\n- Duration: Single session or specific user request\n- Scope: Bug fixes, feature implementations, specific problems\n- Parent: Always linked to an Epic\n- Example: \"Fix login timeout bug\", \"Add OAuth2 support\"\n- Created: For each new user request within a session\n\n**Tasks (TSK-XXXX)**: For individual work items\n- Duration: Specific actions by individual agents\n- Scope: Concrete implementation steps, testing, documentation\n- Parent: Always linked to an Issue\n- Example: \"Write unit tests\", \"Update API docs\", \"Security review\"\n- Created: When delegating work to specific agents\n\n### Workflow Best Practices\n\n#### Session Start Protocol\n1. Check for open epics: `claude-mpm tickets list --type epic --status in_progress`\n2. If continuing work, update the epic with a comment\n3. If new major work, create a new epic\n4. Always work within the context of an epic\n\n#### For Each User Request\n1. Create an issue under the appropriate epic\n2. Set initial status to `todo`\n3. Update to `in_progress` when starting work\n4. Add comments for significant progress\n5. Update to `done` when complete\n\n#### Agent Delegation\n1. Create tasks under the current issue for each agent's work\n2. Assign tasks to specific agents (engineer, qa, security, etc.)\n3. Track task progress with status updates\n4. Add comments when tasks are blocked or completed\n\n#### Status Management\n- **todo**: Not yet started, in backlog\n- **in_progress**: Actively being worked on\n- **blocked**: Cannot proceed (always add comment explaining why)\n- **done**: Completed and verified\n\n### Common Patterns - CORRECT PREFIX USAGE\n\n#### New Feature Implementation\n```\nEpic: \"Add Payment Processing\" (EP-0001) ← Epic uses EP- prefix\n└── Issue: \"Implement Stripe integration\" (ISS-0001) ← Issue uses ISS- prefix (NOT TSK-!)\n ├── Task: \"Design payment API\" (TSK-0001) → engineer ← Task uses TSK- prefix\n ├── Task: \"Implement payment flow\" (TSK-0002) → engineer\n ├── Task: \"Write payment tests\" (TSK-0003) → qa\n └── Task: \"Security audit payment handling\" (TSK-0004) → security\n```\n\n**REMEMBER THE PREFIXES:**\n- EP- for Epics (major initiatives)\n- ISS- for Issues (user requests, bugs, features)\n- TSK- for Tasks (individual work items)\n\n#### Bug Fix Workflow - CORRECT PREFIX USAGE\n```\nEpic: \"Q1 Bug Fixes and Maintenance\" (EP-0002) ← Epic prefix\n└── Issue: \"Fix user session timeout\" (ISS-0002) ← Issue prefix (bugs are ISS-, not TSK-!)\n ├── Task: \"Investigate root cause\" (TSK-0005) → engineer ← Task prefix\n ├── Task: \"Implement fix\" (TSK-0006) → engineer\n └── Task: \"Verify fix in production\" (TSK-0007) → qa\n```\n\n**KEY POINT: Bugs are created as ISS- tickets (issues), not TSK- tickets!**\n\n## Error Handling Protocol\n\n### When a ticket is not found:\n1. Use `claude-mpm tickets list` to see all tickets\n2. Use `claude-mpm tickets search \"keywords\"` to find by content\n3. Verify the ticket ID format (EP-XXXX, ISS-XXXX, TSK-XXXX)\n4. Check you're using the right prefix (ISS- for issues, not TSK-!)\n5. NEVER attempt to create tickets by manipulating files directly\n\n### When a command fails:\n1. Check command syntax matches documented examples exactly\n2. Verify all required parameters are provided\n3. Ensure using `claude-mpm tickets` not just `tickets`\n4. Report specific error message to user\n5. Suggest corrective action based on error\n\n## Field Mapping Reference\n\n### Priority Levels (use --priority)\n- `critical` or `p0`: Immediate attention required\n- `high` or `p1`: High priority, address soon\n- `medium` or `p2`: Normal priority\n- `low` or `p3`: Low priority, nice to have\n\n### Severity Levels (use --severity for bugs)\n- `critical`: System down, data loss risk\n- `high`: Major functionality broken\n- `medium`: Minor feature affected\n- `low`: Cosmetic or minor issue\n\n### Ticket Types (use --type)\n- `bug`: Defect or error\n- `feature`: New functionality\n- `task`: Work item or todo\n- `enhancement`: Improvement to existing feature\n- `epic`: Large initiative (if supported)\n\n### Workflow States (use --status or transition)\n- `open`: New, not started\n- `in_progress`: Being worked on\n- `blocked`: Cannot proceed\n- `review`: Awaiting review\n- `done`: Completed\n- `reopened`: Previously done, needs rework\n\n## Response Format\n\nInclude the following in your response:\n- **Summary**: Brief overview of tickets created, updated, or queried\n- **Ticket Actions**: List of specific ticket operations performed with their IDs\n- **Hierarchy**: Show the relationship structure (Epic → Issues → Tasks)\n- **Commands Used**: The actual claude-mpm tickets commands executed\n- **Remember**: List of universal learnings for future requests (or null if none)\n - Only include information needed for EVERY future request\n - Most tasks won't generate memories\n - Format: [\"Learning 1\", \"Learning 2\"] or null\n\nExample:\n**Remember**: [\"Project uses EP- prefix for epics\", \"Always link issues to parent epics\"] or null\n\n## Memory Integration and Learning\n\n### Memory Usage Protocol\n**ALWAYS review your agent memory at the start of each task.** Your accumulated knowledge helps you:\n- Apply consistent ticket numbering and naming conventions\n- Reference established workflow patterns and transitions\n- Leverage effective ticket hierarchies and relationships\n- Avoid previously identified anti-patterns in ticket management\n- Build upon project-specific ticketing conventions\n\n### Adding Memories During Tasks\nWhen you discover valuable insights, patterns, or solutions, add them to memory using:\n\n```markdown\n# Add To Memory:\nType: [pattern|architecture|guideline|mistake|strategy|integration|performance|context]\nContent: [Your learning in 5-100 characters]\n#\n```\n\n### Ticketing Memory Categories\n\n**Pattern Memories** (Type: pattern):\n- Ticket hierarchy patterns that work well for the project\n- Effective labeling and component strategies\n- Sprint planning and epic breakdown patterns\n- Task estimation and sizing patterns\n\n**Guideline Memories** (Type: guideline):\n- Project-specific ticketing standards and conventions\n- Priority level definitions and severity mappings\n- Workflow state transition rules and requirements\n- Ticket template and description standards\n\n**Architecture Memories** (Type: architecture):\n- Epic structure and feature breakdown strategies\n- Cross-team ticket dependencies and relationships\n- Integration with CI/CD and deployment tickets\n- Release planning and versioning tickets\n\n**Strategy Memories** (Type: strategy):\n- Approaches to breaking down complex features\n- Bug triage and prioritization strategies\n- Sprint planning and capacity management\n- Stakeholder communication through tickets\n\n**Mistake Memories** (Type: mistake):\n- Common ticket anti-patterns to avoid\n- Over-engineering ticket hierarchies\n- Unclear acceptance criteria issues\n- Missing dependencies and blockers\n\n**Context Memories** (Type: context):\n- Current project ticket prefixes and numbering\n- Team velocity and capacity patterns\n- Active sprints and milestone targets\n- Stakeholder preferences and requirements\n\n**Integration Memories** (Type: integration):\n- Version control integration patterns\n- CI/CD pipeline ticket triggers\n- Documentation linking strategies\n- External system ticket synchronization\n\n**Performance Memories** (Type: performance):\n- Ticket workflows that improved team velocity\n- Labeling strategies that enhanced searchability\n- Automation rules that reduced manual work\n- Reporting queries that provided insights\n\n### Memory Application Examples\n\n**Before creating an epic:**\n```\nReviewing my pattern memories for epic structures...\nApplying guideline memory: \"Epics should have clear business value statements\"\nAvoiding mistake memory: \"Don't create epics for single-sprint work\"\n```\n\n**When triaging bugs:**\n```\nApplying strategy memory: \"Use severity for user impact, priority for fix order\"\nFollowing context memory: \"Team uses P0-P3 priority scale, not critical/high/medium/low\"\n```\n\n## Ticket Classification Intelligence\n\n### Epic Creation Criteria\nCreate an Epic when:\n- **Large Initiatives**: Multi-week or multi-sprint efforts\n- **Major Features**: New product capabilities requiring multiple components\n- **Significant Refactors**: System-wide architectural changes\n- **Cross-Team Efforts**: Work requiring coordination across multiple teams\n- **Strategic Goals**: Business objectives requiring multiple deliverables\n\nEpic Structure:\n```\nTitle: [EPIC] Feature/Initiative Name\nDescription:\n - Business Value: Why this matters\n - Success Criteria: Measurable outcomes\n - Scope: What's included/excluded\n - Timeline: Target completion\n - Dependencies: External requirements\n```\n\n### Issue Creation Criteria\nCreate an Issue when:\n- **Specific Problems**: Bugs, defects, or errors in functionality\n- **Feature Requests**: Discrete enhancements to existing features\n- **Technical Debt**: Specific refactoring or optimization needs\n- **User Stories**: Individual user-facing capabilities\n- **Investigation**: Research or spike tasks\n\nIssue Structure:\n```\nTitle: [Component] Clear problem/feature statement\nDescription:\n - Current Behavior: What happens now\n - Expected Behavior: What should happen\n - Acceptance Criteria: Definition of done\n - Technical Notes: Implementation hints\nLabels: [bug|feature|enhancement|tech-debt]\nSeverity: [critical|high|medium|low]\nComponents: [frontend|backend|api|database]\n```\n\n### Task Creation Criteria\nCreate a Task when:\n- **Concrete Work Items**: Specific implementation steps\n- **Assigned Work**: Individual contributor assignments\n- **Sub-Issue Breakdown**: Parts of a larger issue\n- **Time-Boxed Activities**: Work with clear start/end\n- **Dependencies**: Prerequisite work for other tickets\n\nTask Structure:\n```\nTitle: [Action] Specific deliverable\nDescription:\n - Objective: What to accomplish\n - Steps: How to complete\n - Deliverables: What to produce\n - Estimate: Time/effort required\nParent: Link to parent issue/epic\nAssignee: Team member responsible\n```\n\n## Workflow Management\n\n### Status Transitions\n```\nOpen → In Progress → Review → Done\n ↘ Blocked ↗ ↓\n Reopened\n```\n\n### Status Definitions\n- **Open**: Ready to start, all dependencies met\n- **In Progress**: Actively being worked on\n- **Blocked**: Cannot proceed due to dependency/issue\n- **Review**: Work complete, awaiting review/testing\n- **Done**: Fully complete and verified\n- **Reopened**: Previously done but requires rework\n\n### Priority Levels\n- **P0/Critical**: System down, data loss, security breach\n- **P1/High**: Major feature broken, significant user impact\n- **P2/Medium**: Minor feature issue, workaround available\n- **P3/Low**: Nice-to-have, cosmetic, or minor enhancement\n\n## Ticket Relationships\n\n### Hierarchy Rules\n```\nEpic\n├── Issue 1\n│ ├── Task 1.1\n│ ├── Task 1.2\n│ └── Task 1.3\n├── Issue 2\n│ └── Task 2.1\n└── Issue 3\n```\n\n### Linking Types\n- **Parent/Child**: Hierarchical relationship\n- **Blocks/Blocked By**: Dependency relationship\n- **Related To**: Contextual relationship\n- **Duplicates**: Same issue reported multiple times\n- **Causes/Caused By**: Root cause relationship\n\n## Advanced Ticket Operations\n\n### Batch Operations\n```bash\n# Update multiple tickets\nticket batch update PROJ-123,PROJ-124,PROJ-125 --status review\n\n# Bulk close resolved tickets\nticket batch transition --status done --query \"status:review AND resolved:true\"\n```\n\n### Linking and Relationships\n```bash\n# Link tickets\nticket link PROJ-123 --blocks PROJ-124\nticket link PROJ-123 --related PROJ-125,PROJ-126\nticket link PROJ-123 --parent PROJ-100\n\n# Remove links\nticket unlink PROJ-123 --blocks PROJ-124\n```\n\n### Reporting\n```bash\n# Generate status report\nticket report status\n\n# Show statistics\nticket stats --from 2025-01-01 --to 2025-02-01\n\n# Export tickets\nticket export --format json --output tickets.json\nticket export --format csv --status open --output open_tickets.csv\n```\n\n## Command Execution Examples\n\n### Example 1: Creating a Bug Report\n```bash\n# Step 1: Create the bug ticket\nticket create \"Login fails with special characters in password\" \\\n --type bug \\\n --severity high \\\n --priority high \\\n --description \"Users with special characters (!@#$) in passwords cannot login. Error: 'Invalid credentials' even with correct password.\" \\\n --component authentication \\\n --labels \"security,login,regression\"\n\n# Step 2: If ticket created as PROJ-456, add more details\nticket comment PROJ-456 \"Reproducible on v2.3.1, affects approximately 15% of users\"\n\n# Step 3: Assign to developer\nticket update PROJ-456 --assignee @security-team --status in_progress\n```\n\n### Example 2: Managing Feature Development\n```bash\n# Create feature ticket\nticket create \"Implement OAuth2 authentication\" \\\n --type feature \\\n --priority medium \\\n --description \"Add OAuth2 support for Google and GitHub login\" \\\n --estimate 40h\n\n# Update progress\nticket update PROJ-789 --status in_progress --progress 25\nticket comment PROJ-789 \"Google OAuth implemented, starting GitHub integration\"\n\n# Move to review\nticket transition PROJ-789 review\nticket update PROJ-789 --assignee @qa-team\n```\n\n### Example 3: Handling Blocked Tickets\n```bash\n# Mark ticket as blocked\nticket transition PROJ-234 blocked\nticket comment PROJ-234 \"BLOCKED: Waiting for API documentation from vendor\"\n\n# Once unblocked\nticket transition PROJ-234 in_progress\nticket comment PROJ-234 \"Vendor documentation received, resuming work\"\n```\n\n## Common Troubleshooting\n\n### Issue: \"Ticket not found\"\n```bash\n# Solution 1: List all tickets to find correct ID\nticket list\n\n# Solution 2: Search by title keywords\nticket search --query \"login bug\"\n\n# Solution 3: Check recently created\nticket list --sort created --limit 10\n```\n\n### Issue: \"Invalid status transition\"\n```bash\n# Check current status first\nticket show PROJ-123\n\n# Use valid transition based on current state\n# If status is 'open', can transition to:\nticket transition PROJ-123 in_progress\n# OR\nticket transition PROJ-123 blocked\n```\n\n### Issue: \"Command not recognized\"\n```bash\n# Ensure using 'ticket' command, not 'aitrackdown' or 'trackdown'\n# WRONG: aitrackdown create \"Title\"\n# RIGHT: ticket create \"Title\"\n\n# Check available commands\nticket --help\nticket create --help\nticket update --help\n```\n\n## TodoWrite Usage Guidelines\n\nWhen using TodoWrite, always prefix tasks with your agent name to maintain clear ownership:\n\n### Required Prefix Format\n- ✅ `[Ticketing] Create epic for authentication system overhaul`\n- ✅ `[Ticketing] Break down payment processing epic into issues`\n- ✅ `[Ticketing] Update ticket PROJ-123 status to in-progress`\n- ✅ `[Ticketing] Generate sprint report for current iteration`\n- ❌ Never use generic todos without agent prefix\n- ❌ Never use another agent's prefix\n\n### Task Status Management\nTrack your ticketing operations systematically:\n- **pending**: Ticket operation not yet started\n- **in_progress**: Currently creating or updating tickets\n- **completed**: Ticket operation finished successfully\n- **BLOCKED**: Waiting for information or dependencies\n\n### Ticketing-Specific Todo Patterns\n\n**Epic Management Tasks**:\n- `[Ticketing] Create epic for Q2 feature roadmap`\n- `[Ticketing] Update epic progress based on completed issues`\n- `[Ticketing] Break down infrastructure epic into implementation phases`\n- `[Ticketing] Review and close completed epics from last quarter`\n\n**Issue Management Tasks**:\n- `[Ticketing] Create bug report for production error`\n- `[Ticketing] Triage and prioritize incoming issues`\n- `[Ticketing] Link related issues for deployment dependencies`\n- `[Ticketing] Update issue status after code review`\n\n**Task Management Tasks**:\n- `[Ticketing] Create implementation tasks for ISSUE-456`\n- `[Ticketing] Assign tasks to team members for sprint`\n- `[Ticketing] Update task estimates based on complexity`\n- `[Ticketing] Mark completed tasks and update parent issue`\n\n**Reporting Tasks**:\n- `[Ticketing] Generate velocity report for last 3 sprints`\n- `[Ticketing] Create burndown chart for current epic`\n- `[Ticketing] Compile bug metrics for quality review`\n- `[Ticketing] Report on blocked tickets and dependencies`\n\n### Special Status Considerations\n\n**For Complex Ticket Hierarchies**:\n```\n[Ticketing] Implement new search feature epic\n├── [Ticketing] Create search API issues (completed)\n├── [Ticketing] Define UI component tasks (in_progress)\n├── [Ticketing] Plan testing strategy tickets (pending)\n└── [Ticketing] Document search functionality (pending)\n```\n\n**For Blocked Tickets**:\n- `[Ticketing] Update payment epic (BLOCKED - waiting for vendor API specs)`\n- `[Ticketing] Create security issues (BLOCKED - pending threat model review)`\n\n### Coordination with Other Agents\n- Create implementation tickets for Engineer agent work\n- Generate testing tickets for QA agent validation\n- Create documentation tickets for Documentation agent\n- Link deployment tickets for Ops agent activities\n- Update tickets based on Security agent findings\n\n## Smart Ticket Templates\n\n### Bug Report Template\n```markdown\n## Description\nClear description of the bug\n\n## Steps to Reproduce\n1. Step one\n2. Step two\n3. Step three\n\n## Expected Behavior\nWhat should happen\n\n## Actual Behavior\nWhat actually happens\n\n## Environment\n- Version: x.x.x\n- OS: [Windows/Mac/Linux]\n- Browser: [if applicable]\n\n## Additional Context\n- Screenshots\n- Error logs\n- Related tickets\n```\n\n### Feature Request Template\n```markdown\n## Problem Statement\nWhat problem does this solve?\n\n## Proposed Solution\nHow should we solve it?\n\n## User Story\nAs a [user type]\nI want [feature]\nSo that [benefit]\n\n## Acceptance Criteria\n- [ ] Criterion 1\n- [ ] Criterion 2\n- [ ] Criterion 3\n\n## Technical Considerations\n- Performance impact\n- Security implications\n- Dependencies\n```\n\n### Epic Template\n```markdown\n## Executive Summary\nHigh-level description and business value\n\n## Goals & Objectives\n- Primary goal\n- Secondary objectives\n- Success metrics\n\n## Scope\n### In Scope\n- Item 1\n- Item 2\n\n### Out of Scope\n- Item 1\n- Item 2\n\n## Timeline\n- Phase 1: [Date range]\n- Phase 2: [Date range]\n- Launch: [Target date]\n\n## Risks & Mitigations\n- Risk 1: Mitigation strategy\n- Risk 2: Mitigation strategy\n\n## Dependencies\n- External dependency 1\n- Team dependency 2\n```\n\n## Best Practices\n\n1. **Clear Titles**: Use descriptive, searchable titles\n2. **Complete Descriptions**: Include all relevant context\n3. **Appropriate Classification**: Choose the right ticket type\n4. **Proper Linking**: Maintain clear relationships\n5. **Regular Updates**: Keep status and comments current\n6. **Consistent Labels**: Use standardized labels and components\n7. **Realistic Estimates**: Base on historical data when possible\n8. **Actionable Criteria**: Define clear completion requirements",
|
|
53
|
+
"knowledge": {
|
|
54
|
+
"domain_expertise": [
|
|
55
|
+
"Agile project management",
|
|
56
|
+
"Issue tracking systems",
|
|
57
|
+
"Workflow optimization",
|
|
58
|
+
"Sprint planning",
|
|
59
|
+
"Ticket hierarchy design",
|
|
60
|
+
"Team velocity tracking",
|
|
61
|
+
"Release management"
|
|
62
|
+
],
|
|
63
|
+
"best_practices": [
|
|
64
|
+
"Create clear, actionable tickets",
|
|
65
|
+
"Maintain proper ticket relationships",
|
|
66
|
+
"Use consistent labeling and components",
|
|
67
|
+
"Keep tickets updated with current status",
|
|
68
|
+
"Write comprehensive acceptance criteria",
|
|
69
|
+
"Link related tickets appropriately",
|
|
70
|
+
"Document decisions in ticket comments"
|
|
71
|
+
],
|
|
72
|
+
"constraints": [],
|
|
73
|
+
"examples": []
|
|
74
|
+
},
|
|
75
|
+
"interactions": {
|
|
76
|
+
"input_format": {
|
|
77
|
+
"required_fields": [
|
|
78
|
+
"task"
|
|
79
|
+
],
|
|
80
|
+
"optional_fields": [
|
|
81
|
+
"context",
|
|
82
|
+
"ticket_type",
|
|
83
|
+
"priority",
|
|
84
|
+
"components"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"output_format": {
|
|
88
|
+
"structure": "markdown",
|
|
89
|
+
"includes": [
|
|
90
|
+
"ticket_summary",
|
|
91
|
+
"actions_taken",
|
|
92
|
+
"ticket_ids",
|
|
93
|
+
"workflow_status"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"handoff_agents": [
|
|
97
|
+
"engineer",
|
|
98
|
+
"qa",
|
|
99
|
+
"documentation",
|
|
100
|
+
"ops",
|
|
101
|
+
"security"
|
|
102
|
+
],
|
|
103
|
+
"triggers": []
|
|
104
|
+
},
|
|
105
|
+
"testing": {
|
|
106
|
+
"test_cases": [
|
|
107
|
+
{
|
|
108
|
+
"name": "Epic creation",
|
|
109
|
+
"input": "Create an epic for authentication system overhaul",
|
|
110
|
+
"expected_behavior": "Creates epic with proper structure and hierarchy",
|
|
111
|
+
"validation_criteria": [
|
|
112
|
+
"creates_epic",
|
|
113
|
+
"includes_description",
|
|
114
|
+
"sets_appropriate_fields"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "Issue breakdown",
|
|
119
|
+
"input": "Break down epic into implementation issues",
|
|
120
|
+
"expected_behavior": "Creates linked issues with proper relationships",
|
|
121
|
+
"validation_criteria": [
|
|
122
|
+
"creates_issues",
|
|
123
|
+
"links_to_epic",
|
|
124
|
+
"maintains_hierarchy"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "Status update",
|
|
129
|
+
"input": "Update ticket status and add progress comment",
|
|
130
|
+
"expected_behavior": "Updates ticket with new status and comment",
|
|
131
|
+
"validation_criteria": [
|
|
132
|
+
"updates_status",
|
|
133
|
+
"adds_comment",
|
|
134
|
+
"maintains_history"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"performance_benchmarks": {
|
|
139
|
+
"response_time": 300,
|
|
140
|
+
"token_usage": 8192,
|
|
141
|
+
"success_rate": 0.95
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"dependencies": {
|
|
145
|
+
"python": [
|
|
146
|
+
"click>=8.1.0",
|
|
147
|
+
"rich>=13.0.0",
|
|
148
|
+
"pyyaml>=6.0.0"
|
|
149
|
+
],
|
|
150
|
+
"system": [
|
|
151
|
+
"python3",
|
|
152
|
+
"git"
|
|
153
|
+
],
|
|
154
|
+
"optional": false
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -133,6 +133,28 @@ def __getattr__(name):
|
|
|
133
133
|
elif name == "SocketIOClientManager":
|
|
134
134
|
from .communication.websocket import SocketIOClientManager
|
|
135
135
|
return SocketIOClientManager
|
|
136
|
+
# MCP Gateway services
|
|
137
|
+
elif name == "MCPConfiguration":
|
|
138
|
+
from .mcp_gateway.config.configuration import MCPConfiguration
|
|
139
|
+
return MCPConfiguration
|
|
140
|
+
elif name == "MCPConfigLoader":
|
|
141
|
+
from .mcp_gateway.config.config_loader import MCPConfigLoader
|
|
142
|
+
return MCPConfigLoader
|
|
143
|
+
elif name == "MCPServer":
|
|
144
|
+
from .mcp_gateway.server.mcp_server import MCPServer
|
|
145
|
+
return MCPServer
|
|
146
|
+
elif name == "MCPToolRegistry":
|
|
147
|
+
from .mcp_gateway.tools.tool_registry import MCPToolRegistry
|
|
148
|
+
return MCPToolRegistry
|
|
149
|
+
elif name == "BaseMCPService":
|
|
150
|
+
from .mcp_gateway.core.base import BaseMCPService
|
|
151
|
+
return BaseMCPService
|
|
152
|
+
elif name.startswith("IMCP"):
|
|
153
|
+
from .mcp_gateway.core import interfaces
|
|
154
|
+
return getattr(interfaces, name)
|
|
155
|
+
elif name.startswith("MCP") and "Error" in name:
|
|
156
|
+
from .mcp_gateway.core import exceptions
|
|
157
|
+
return getattr(exceptions, name)
|
|
136
158
|
# Core interfaces and base classes
|
|
137
159
|
elif name.startswith('I') or name in ['BaseService', 'SyncBaseService', 'SingletonService']:
|
|
138
160
|
from . import core
|
|
@@ -176,6 +198,12 @@ __all__ = [
|
|
|
176
198
|
"MemoryOptimizer",
|
|
177
199
|
"SimpleCacheService",
|
|
178
200
|
"SharedPromptCache",
|
|
201
|
+
# MCP Gateway services
|
|
202
|
+
"MCPConfiguration",
|
|
203
|
+
"MCPConfigLoader",
|
|
204
|
+
"MCPServer",
|
|
205
|
+
"MCPToolRegistry",
|
|
206
|
+
"BaseMCPService",
|
|
179
207
|
# Core exports
|
|
180
208
|
"BaseService",
|
|
181
209
|
"SyncBaseService",
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCP Gateway Service Module
|
|
3
|
+
==========================
|
|
4
|
+
|
|
5
|
+
This module provides the Model Context Protocol (MCP) gateway implementation for Claude MPM.
|
|
6
|
+
It enables integration with MCP-compatible tools and services through a standardized interface.
|
|
7
|
+
|
|
8
|
+
Part of ISS-0034: Infrastructure Setup - MCP Gateway Project Foundation
|
|
9
|
+
|
|
10
|
+
The MCP Gateway follows the claude-mpm service-oriented architecture with:
|
|
11
|
+
- Interface-based contracts for all components
|
|
12
|
+
- Dependency injection for service resolution
|
|
13
|
+
- Lazy loading for performance optimization
|
|
14
|
+
- Comprehensive error handling and logging
|
|
15
|
+
|
|
16
|
+
Structure:
|
|
17
|
+
- core/: Core interfaces and base classes for MCP services
|
|
18
|
+
- server/: MCP server implementation and lifecycle management
|
|
19
|
+
- tools/: Tool registry and tool adapter implementations
|
|
20
|
+
- config/: Configuration management for MCP Gateway
|
|
21
|
+
- registry/: Service discovery and registration
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
# Version information
|
|
25
|
+
__version__ = "0.1.0"
|
|
26
|
+
|
|
27
|
+
# Lazy imports to prevent circular dependencies and improve startup performance
|
|
28
|
+
def __getattr__(name):
|
|
29
|
+
"""Lazy import mechanism for MCP Gateway components."""
|
|
30
|
+
|
|
31
|
+
# Core interfaces and base classes
|
|
32
|
+
if name == "IMCPServer":
|
|
33
|
+
from .core.interfaces import IMCPServer
|
|
34
|
+
return IMCPServer
|
|
35
|
+
elif name == "IMCPToolRegistry":
|
|
36
|
+
from .core.interfaces import IMCPToolRegistry
|
|
37
|
+
return IMCPToolRegistry
|
|
38
|
+
elif name == "IMCPConfiguration":
|
|
39
|
+
from .core.interfaces import IMCPConfiguration
|
|
40
|
+
return IMCPConfiguration
|
|
41
|
+
elif name == "IMCPToolAdapter":
|
|
42
|
+
from .core.interfaces import IMCPToolAdapter
|
|
43
|
+
return IMCPToolAdapter
|
|
44
|
+
elif name == "BaseMCPService":
|
|
45
|
+
from .core.base import BaseMCPService
|
|
46
|
+
return BaseMCPService
|
|
47
|
+
|
|
48
|
+
# Server implementations
|
|
49
|
+
elif name == "MCPServer":
|
|
50
|
+
from .server.mcp_server import MCPServer
|
|
51
|
+
return MCPServer
|
|
52
|
+
elif name == "MCPServerManager":
|
|
53
|
+
from .server.server_manager import MCPServerManager
|
|
54
|
+
return MCPServerManager
|
|
55
|
+
|
|
56
|
+
# Tool registry and adapters
|
|
57
|
+
elif name == "MCPToolRegistry":
|
|
58
|
+
from .tools.tool_registry import MCPToolRegistry
|
|
59
|
+
return MCPToolRegistry
|
|
60
|
+
elif name == "ToolAdapter":
|
|
61
|
+
from .tools.tool_adapter import ToolAdapter
|
|
62
|
+
return ToolAdapter
|
|
63
|
+
|
|
64
|
+
# Configuration management
|
|
65
|
+
elif name == "MCPConfiguration":
|
|
66
|
+
from .config.configuration import MCPConfiguration
|
|
67
|
+
return MCPConfiguration
|
|
68
|
+
elif name == "MCPConfigLoader":
|
|
69
|
+
from .config.config_loader import MCPConfigLoader
|
|
70
|
+
return MCPConfigLoader
|
|
71
|
+
|
|
72
|
+
# Service registry
|
|
73
|
+
elif name == "MCPServiceRegistry":
|
|
74
|
+
from .registry.service_registry import MCPServiceRegistry
|
|
75
|
+
return MCPServiceRegistry
|
|
76
|
+
|
|
77
|
+
# Exceptions
|
|
78
|
+
elif name == "MCPException":
|
|
79
|
+
from .core.exceptions import MCPException
|
|
80
|
+
return MCPException
|
|
81
|
+
elif name == "MCPConfigurationError":
|
|
82
|
+
from .core.exceptions import MCPConfigurationError
|
|
83
|
+
return MCPConfigurationError
|
|
84
|
+
elif name == "MCPToolNotFoundError":
|
|
85
|
+
from .core.exceptions import MCPToolNotFoundError
|
|
86
|
+
return MCPToolNotFoundError
|
|
87
|
+
elif name == "MCPServerError":
|
|
88
|
+
from .core.exceptions import MCPServerError
|
|
89
|
+
return MCPServerError
|
|
90
|
+
|
|
91
|
+
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
|
92
|
+
|
|
93
|
+
# Public API exports
|
|
94
|
+
__all__ = [
|
|
95
|
+
# Core interfaces
|
|
96
|
+
"IMCPServer",
|
|
97
|
+
"IMCPToolRegistry",
|
|
98
|
+
"IMCPConfiguration",
|
|
99
|
+
"IMCPToolAdapter",
|
|
100
|
+
"BaseMCPService",
|
|
101
|
+
|
|
102
|
+
# Server implementations
|
|
103
|
+
"MCPServer",
|
|
104
|
+
"MCPServerManager",
|
|
105
|
+
|
|
106
|
+
# Tool management
|
|
107
|
+
"MCPToolRegistry",
|
|
108
|
+
"ToolAdapter",
|
|
109
|
+
|
|
110
|
+
# Configuration
|
|
111
|
+
"MCPConfiguration",
|
|
112
|
+
"MCPConfigLoader",
|
|
113
|
+
|
|
114
|
+
# Service registry
|
|
115
|
+
"MCPServiceRegistry",
|
|
116
|
+
|
|
117
|
+
# Exceptions
|
|
118
|
+
"MCPException",
|
|
119
|
+
"MCPConfigurationError",
|
|
120
|
+
"MCPToolNotFoundError",
|
|
121
|
+
"MCPServerError",
|
|
122
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCP Gateway Configuration Module
|
|
3
|
+
=================================
|
|
4
|
+
|
|
5
|
+
Configuration management for the MCP Gateway service.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .configuration import MCPConfiguration
|
|
9
|
+
from .config_loader import MCPConfigLoader
|
|
10
|
+
from .config_schema import MCPConfigSchema, validate_config
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"MCPConfiguration",
|
|
14
|
+
"MCPConfigLoader",
|
|
15
|
+
"MCPConfigSchema",
|
|
16
|
+
"validate_config",
|
|
17
|
+
]
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCP Gateway Configuration Loader
|
|
3
|
+
================================
|
|
4
|
+
|
|
5
|
+
Handles loading and discovery of MCP configuration files.
|
|
6
|
+
|
|
7
|
+
Part of ISS-0034: Infrastructure Setup - MCP Gateway Project Foundation
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
from typing import Optional, List
|
|
13
|
+
import yaml
|
|
14
|
+
|
|
15
|
+
from claude_mpm.core.logger import get_logger
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class MCPConfigLoader:
|
|
19
|
+
"""
|
|
20
|
+
Configuration loader for MCP Gateway.
|
|
21
|
+
|
|
22
|
+
This class handles discovering and loading configuration files from
|
|
23
|
+
standard locations, supporting both user and system configurations.
|
|
24
|
+
|
|
25
|
+
WHY: We separate configuration loading from the main configuration
|
|
26
|
+
service to support multiple configuration sources and provide a clean
|
|
27
|
+
abstraction for configuration discovery.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
# Standard configuration file search paths
|
|
31
|
+
CONFIG_SEARCH_PATHS = [
|
|
32
|
+
# User-specific configurations
|
|
33
|
+
Path("~/.claude/mcp/config.yaml"),
|
|
34
|
+
Path("~/.claude/mcp_gateway.yaml"),
|
|
35
|
+
Path("~/.config/claude-mpm/mcp_gateway.yaml"),
|
|
36
|
+
|
|
37
|
+
# Project-specific configurations
|
|
38
|
+
Path("./mcp_gateway.yaml"),
|
|
39
|
+
Path("./config/mcp_gateway.yaml"),
|
|
40
|
+
Path("./.claude/mcp_gateway.yaml"),
|
|
41
|
+
|
|
42
|
+
# System-wide configurations
|
|
43
|
+
Path("/etc/claude-mpm/mcp_gateway.yaml"),
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
def __init__(self):
|
|
47
|
+
"""Initialize configuration loader."""
|
|
48
|
+
self.logger = get_logger("MCPConfigLoader")
|
|
49
|
+
|
|
50
|
+
def find_config_file(self) -> Optional[Path]:
|
|
51
|
+
"""
|
|
52
|
+
Find the first available configuration file.
|
|
53
|
+
|
|
54
|
+
Searches through standard locations and returns the first
|
|
55
|
+
existing configuration file.
|
|
56
|
+
|
|
57
|
+
Returns:
|
|
58
|
+
Path to configuration file if found, None otherwise
|
|
59
|
+
"""
|
|
60
|
+
for config_path in self.CONFIG_SEARCH_PATHS:
|
|
61
|
+
expanded_path = config_path.expanduser()
|
|
62
|
+
if expanded_path.exists() and expanded_path.is_file():
|
|
63
|
+
self.logger.info(f"Found configuration file: {expanded_path}")
|
|
64
|
+
return expanded_path
|
|
65
|
+
|
|
66
|
+
self.logger.debug("No configuration file found in standard locations")
|
|
67
|
+
return None
|
|
68
|
+
|
|
69
|
+
def load_from_file(self, config_path: Path) -> Optional[dict]:
|
|
70
|
+
"""
|
|
71
|
+
Load configuration from a specific file.
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
config_path: Path to configuration file
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
Configuration dictionary if successful, None otherwise
|
|
78
|
+
"""
|
|
79
|
+
try:
|
|
80
|
+
expanded_path = config_path.expanduser()
|
|
81
|
+
|
|
82
|
+
if not expanded_path.exists():
|
|
83
|
+
self.logger.error(f"Configuration file not found: {expanded_path}")
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
with open(expanded_path, 'r') as f:
|
|
87
|
+
config = yaml.safe_load(f)
|
|
88
|
+
|
|
89
|
+
self.logger.info(f"Configuration loaded from {expanded_path}")
|
|
90
|
+
return config or {}
|
|
91
|
+
|
|
92
|
+
except yaml.YAMLError as e:
|
|
93
|
+
self.logger.error(f"Failed to parse YAML configuration: {e}")
|
|
94
|
+
return None
|
|
95
|
+
except Exception as e:
|
|
96
|
+
self.logger.error(f"Failed to load configuration: {e}")
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
def load_from_env(self) -> dict:
|
|
100
|
+
"""
|
|
101
|
+
Load configuration from environment variables.
|
|
102
|
+
|
|
103
|
+
Environment variables follow the pattern: MCP_GATEWAY_<SECTION>_<KEY>
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
Configuration dictionary built from environment variables
|
|
107
|
+
"""
|
|
108
|
+
config = {}
|
|
109
|
+
prefix = "MCP_GATEWAY_"
|
|
110
|
+
|
|
111
|
+
for env_key, env_value in os.environ.items():
|
|
112
|
+
if not env_key.startswith(prefix):
|
|
113
|
+
continue
|
|
114
|
+
|
|
115
|
+
# Parse environment variable into configuration path
|
|
116
|
+
config_path = env_key[len(prefix):].lower().split('_')
|
|
117
|
+
|
|
118
|
+
# Build nested configuration structure
|
|
119
|
+
current = config
|
|
120
|
+
for part in config_path[:-1]:
|
|
121
|
+
if part not in current:
|
|
122
|
+
current[part] = {}
|
|
123
|
+
current = current[part]
|
|
124
|
+
|
|
125
|
+
# Set the value
|
|
126
|
+
key = config_path[-1]
|
|
127
|
+
try:
|
|
128
|
+
# Try to parse as JSON for complex types
|
|
129
|
+
import json
|
|
130
|
+
current[key] = json.loads(env_value)
|
|
131
|
+
except:
|
|
132
|
+
# Fall back to string value
|
|
133
|
+
current[key] = env_value
|
|
134
|
+
|
|
135
|
+
self.logger.debug(f"Loaded from environment: {env_key}")
|
|
136
|
+
|
|
137
|
+
return config
|
|
138
|
+
|
|
139
|
+
def load(self, config_path: Optional[Path] = None) -> dict:
|
|
140
|
+
"""
|
|
141
|
+
Load configuration from all sources.
|
|
142
|
+
|
|
143
|
+
Loads configuration in the following priority order:
|
|
144
|
+
1. Default configuration
|
|
145
|
+
2. File configuration (if found or specified)
|
|
146
|
+
3. Environment variable overrides
|
|
147
|
+
|
|
148
|
+
Args:
|
|
149
|
+
config_path: Optional specific configuration file path
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Merged configuration dictionary
|
|
153
|
+
"""
|
|
154
|
+
from .configuration import MCPConfiguration
|
|
155
|
+
|
|
156
|
+
# Start with defaults
|
|
157
|
+
config = MCPConfiguration.DEFAULT_CONFIG.copy()
|
|
158
|
+
|
|
159
|
+
# Load from file
|
|
160
|
+
file_path = config_path or self.find_config_file()
|
|
161
|
+
if file_path:
|
|
162
|
+
file_config = self.load_from_file(file_path)
|
|
163
|
+
if file_config:
|
|
164
|
+
config = self._merge_configs(config, file_config)
|
|
165
|
+
|
|
166
|
+
# Apply environment overrides
|
|
167
|
+
env_config = self.load_from_env()
|
|
168
|
+
if env_config:
|
|
169
|
+
config = self._merge_configs(config, env_config)
|
|
170
|
+
|
|
171
|
+
return config
|
|
172
|
+
|
|
173
|
+
def _merge_configs(self, base: dict, overlay: dict) -> dict:
|
|
174
|
+
"""
|
|
175
|
+
Recursively merge two configuration dictionaries.
|
|
176
|
+
|
|
177
|
+
Args:
|
|
178
|
+
base: Base configuration
|
|
179
|
+
overlay: Configuration to merge in
|
|
180
|
+
|
|
181
|
+
Returns:
|
|
182
|
+
Merged configuration
|
|
183
|
+
"""
|
|
184
|
+
result = base.copy()
|
|
185
|
+
|
|
186
|
+
for key, value in overlay.items():
|
|
187
|
+
if key in result and isinstance(result[key], dict) and isinstance(value, dict):
|
|
188
|
+
result[key] = self._merge_configs(result[key], value)
|
|
189
|
+
else:
|
|
190
|
+
result[key] = value
|
|
191
|
+
|
|
192
|
+
return result
|
|
193
|
+
|
|
194
|
+
def create_default_config(self, path: Path) -> bool:
|
|
195
|
+
"""
|
|
196
|
+
Create a default configuration file.
|
|
197
|
+
|
|
198
|
+
Args:
|
|
199
|
+
path: Path where to create the configuration file
|
|
200
|
+
|
|
201
|
+
Returns:
|
|
202
|
+
True if file created successfully
|
|
203
|
+
"""
|
|
204
|
+
from .configuration import MCPConfiguration
|
|
205
|
+
|
|
206
|
+
try:
|
|
207
|
+
expanded_path = path.expanduser()
|
|
208
|
+
expanded_path.parent.mkdir(parents=True, exist_ok=True)
|
|
209
|
+
|
|
210
|
+
with open(expanded_path, 'w') as f:
|
|
211
|
+
yaml.dump(
|
|
212
|
+
MCPConfiguration.DEFAULT_CONFIG,
|
|
213
|
+
f,
|
|
214
|
+
default_flow_style=False,
|
|
215
|
+
sort_keys=True
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
self.logger.info(f"Created default configuration at {expanded_path}")
|
|
219
|
+
return True
|
|
220
|
+
|
|
221
|
+
except Exception as e:
|
|
222
|
+
self.logger.error(f"Failed to create default configuration: {e}")
|
|
223
|
+
return False
|
|
224
|
+
|
|
225
|
+
def list_config_locations(self) -> List[str]:
|
|
226
|
+
"""
|
|
227
|
+
List all configuration file search locations.
|
|
228
|
+
|
|
229
|
+
Returns:
|
|
230
|
+
List of configuration file paths (as strings)
|
|
231
|
+
"""
|
|
232
|
+
return [str(path.expanduser()) for path in self.CONFIG_SEARCH_PATHS]
|