mcp-ticketer 0.1.14__tar.gz → 0.1.16__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.
Potentially problematic release.
This version of mcp-ticketer might be problematic. Click here for more details.
- mcp_ticketer-0.1.16/CONFIG_RESOLUTION_FIX.md +223 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/PKG-INFO +1 -1
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/pyproject.toml +1 -1
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/__version__.py +1 -1
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/main.py +74 -6
- mcp_ticketer-0.1.16/src/mcp_ticketer/cli/mcp_configure.py +285 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/utils.py +27 -3
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/PKG-INFO +1 -1
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/SOURCES.txt +4 -0
- mcp_ticketer-0.1.16/test_config_resolution.py +187 -0
- mcp_ticketer-0.1.16/test_serve_config.py +153 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/.dependency_cache +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/.mpm_deployment_state +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/agent-manager.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/agentic-coder-optimizer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/api_qa.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/clerk-ops.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/code_analyzer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/content-agent.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/dart_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/data_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/documentation.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/gcp_ops_agent.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/golang_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/imagemagick.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/java_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/local_ops_agent.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/memory_manager.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/nextjs_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/ops.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/php-engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/product_owner.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/project_organizer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/prompt-engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/python_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/qa.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/react_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/refactoring_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/research.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/ruby-engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/rust_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/security.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/ticketing.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/typescript_engineer.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/vercel_ops_agent.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/version_control.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/web_qa.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude/agents/web_ui.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/config/project.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/mcp_auto_config_preference.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/README.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/agentic_coder_optimizer_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/documentation_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/engineer_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/ops_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/project_knowledge.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/qa_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/research_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/version-control_memories.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude-mpm/memories/workflows.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.claude.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.coveragerc +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.env.example +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.github/workflows/docs.yml +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.github/workflows/publish.yml +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.github/workflows/test.yml +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.mcp/config.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.pre-commit-config.yaml +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.python-version +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/.readthedocs.yaml +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/CHANGELOG.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/CLAUDE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/CLAUDE_DESKTOP_SETUP.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/CODE_STRUCTURE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/CONTRIBUTING.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/ENV_DISCOVERY_COMPLETE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/HIERARCHY_IMPLEMENTATION_SUMMARY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/IMPLEMENTATION_SUMMARY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/JIRA_SETUP.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/LICENSE +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/LINEAR_SETUP.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/MANIFEST.in +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/Makefile +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/OPTIMIZATION_SUMMARY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/PROJECT_INITIALIZATION_SUMMARY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/QUEUE_SYSTEM.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/QUICK_START.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/README.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/RELEASE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/RELEASING.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/TEST_COVERAGE_REPORT.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/TEST_REPORT.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/TEST_RESULTS_SUMMARY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/claude-desktop-config.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/debug_search.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/debug_test.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/ADAPTERS.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/API_REFERENCE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/CONFIGURATION.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/CONFIG_RESOLUTION_FLOW.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/DEVELOPER_GUIDE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/ENV_DISCOVERY.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/MCP_INTEGRATION.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/MIGRATION_GUIDE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/PROJECT_CONFIG.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/PR_INTEGRATION.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/QUICK_START_ENV.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/USER_GUIDE.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_archive/README.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/ADAPTERS.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/API_REFERENCE.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/CONFIGURATION.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/DEVELOPER_GUIDE.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/MCP_INTEGRATION.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/MIGRATION_GUIDE.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/USER_GUIDE.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/adapters/github.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/adapters.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/api.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/cli.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/development.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/examples.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/index.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/installation.rst.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/_build/_sources/prd/mcp-ticketer-prd.md.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/adapters/github.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/adapters.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/api.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/cli.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/conf.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/development.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/examples.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/index.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/installation.rst +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/prd/mcp-ticketer-prd.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/docs/requirements.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/install.sh +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/mcp-ticketer +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/mcp-ticketer-server +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/mcp_server.sh +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/pytest.ini +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/requirements-dev.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/requirements.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/scripts/README.md +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/scripts/manage_version.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/setup.cfg +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/setup.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/aitrackdown.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/github.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/hybrid.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/jira.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/adapters/linear.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cache/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cache/memory.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/configure.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/discover.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/migrate_config.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/cli/queue_commands.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/adapter.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/config.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/env_discovery.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/http_client.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/mappers.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/models.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/project_config.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/core/registry.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/mcp/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/mcp/server.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/py.typed +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/__main__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/manager.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/queue.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/run_worker.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer/queue/worker.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/dependency_links.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/entry_points.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/not-zip-safe +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/requires.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/src/mcp_ticketer.egg-info/top_level.txt +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test-tickets/tickets/task-20250924002724.json +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_all_adapters.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_api_usage.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_basic.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_comprehensive.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_error_handling.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_github.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_github_token.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_jira.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_linear.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_linear_native.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_linear_teams.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_mcp_server_qa.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_optimizations.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_performance.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_pr_functionality.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_queue_system.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/test_set_command.sh +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/adapters/__init__.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/adapters/test_aitrackdown.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/conftest.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/core/test_env_discovery.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/test_base_adapter.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/test_models.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tests/test_queue.py +0 -0
- {mcp_ticketer-0.1.14 → mcp_ticketer-0.1.16}/tox.ini +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Configuration Resolution Fix for `serve` Command
|
|
2
|
+
|
|
3
|
+
## Problem Summary
|
|
4
|
+
|
|
5
|
+
The `serve` command was not respecting project-specific configuration. It always read from the global config (`~/.mcp-ticketer/config.json`) instead of checking for project-specific config (`.mcp-ticketer/config.json` in the current working directory) first.
|
|
6
|
+
|
|
7
|
+
### Impact
|
|
8
|
+
|
|
9
|
+
When the MCP server starts via Claude Code/Desktop:
|
|
10
|
+
- The server's working directory is set based on the `cwd` field in `.mcp/config.json`
|
|
11
|
+
- Despite running in the project directory, the server would use global config
|
|
12
|
+
- This meant project-specific adapter configurations were ignored
|
|
13
|
+
|
|
14
|
+
## Solution
|
|
15
|
+
|
|
16
|
+
Updated the `load_config()` function to follow the correct configuration resolution order:
|
|
17
|
+
|
|
18
|
+
1. **Project-specific config** (`.mcp-ticketer/config.json` in current working directory)
|
|
19
|
+
2. **Global config** (`~/.mcp-ticketer/config.json`)
|
|
20
|
+
3. **Default fallback** (aitrackdown adapter with `.aitrackdown` base path)
|
|
21
|
+
|
|
22
|
+
## Files Modified
|
|
23
|
+
|
|
24
|
+
### 1. `src/mcp_ticketer/cli/main.py`
|
|
25
|
+
|
|
26
|
+
**Before:**
|
|
27
|
+
```python
|
|
28
|
+
def load_config() -> dict:
|
|
29
|
+
"""Load configuration from file."""
|
|
30
|
+
if CONFIG_FILE.exists():
|
|
31
|
+
with open(CONFIG_FILE, "r") as f:
|
|
32
|
+
return json.load(f)
|
|
33
|
+
return {"adapter": "aitrackdown", "config": {"base_path": ".aitrackdown"}}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**After:**
|
|
37
|
+
```python
|
|
38
|
+
def load_config() -> dict:
|
|
39
|
+
"""Load configuration from file.
|
|
40
|
+
|
|
41
|
+
Resolution order:
|
|
42
|
+
1. Project-specific config (.mcp-ticketer/config.json in cwd)
|
|
43
|
+
2. Global config (~/.mcp-ticketer/config.json)
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
Configuration dictionary
|
|
47
|
+
"""
|
|
48
|
+
# Check project-specific config first
|
|
49
|
+
project_config = Path.cwd() / ".mcp-ticketer" / "config.json"
|
|
50
|
+
if project_config.exists():
|
|
51
|
+
try:
|
|
52
|
+
with open(project_config, "r") as f:
|
|
53
|
+
return json.load(f)
|
|
54
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
55
|
+
console.print(f"[yellow]Warning: Could not load project config: {e}[/yellow]")
|
|
56
|
+
# Fall through to global config
|
|
57
|
+
|
|
58
|
+
# Fall back to global config
|
|
59
|
+
if CONFIG_FILE.exists():
|
|
60
|
+
try:
|
|
61
|
+
with open(CONFIG_FILE, "r") as f:
|
|
62
|
+
return json.load(f)
|
|
63
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
64
|
+
console.print(f"[yellow]Warning: Could not load global config: {e}[/yellow]")
|
|
65
|
+
|
|
66
|
+
# Default fallback
|
|
67
|
+
return {"adapter": "aitrackdown", "config": {"base_path": ".aitrackdown"}}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2. `src/mcp_ticketer/cli/utils.py`
|
|
71
|
+
|
|
72
|
+
Updated `CommonPatterns.load_config()` with identical changes to maintain consistency across the codebase.
|
|
73
|
+
|
|
74
|
+
### 3. `src/mcp_ticketer/cli/main.py` - `serve` command documentation
|
|
75
|
+
|
|
76
|
+
Added comprehensive documentation to the `serve` command explaining the configuration resolution process:
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
"""Start MCP server for JSON-RPC communication over stdio.
|
|
80
|
+
|
|
81
|
+
This command is used by Claude Code/Desktop when connecting to the MCP server.
|
|
82
|
+
You typically don't need to run this manually - use 'mcp-ticketer mcp' to configure.
|
|
83
|
+
|
|
84
|
+
Configuration Resolution:
|
|
85
|
+
- When MCP server starts, it uses the current working directory (cwd)
|
|
86
|
+
- The cwd is set by Claude Code/Desktop from the 'cwd' field in .mcp/config.json
|
|
87
|
+
- Configuration is loaded with this priority:
|
|
88
|
+
1. Project-specific: .mcp-ticketer/config.json in cwd
|
|
89
|
+
2. Global: ~/.mcp-ticketer/config.json
|
|
90
|
+
3. Default: aitrackdown adapter with .aitrackdown base path
|
|
91
|
+
"""
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Backward Compatibility
|
|
95
|
+
|
|
96
|
+
✅ **Fully backward compatible**
|
|
97
|
+
|
|
98
|
+
- Existing global configs continue to work
|
|
99
|
+
- Existing commands that use `load_config()` work unchanged
|
|
100
|
+
- New behavior only activates when project-specific config exists
|
|
101
|
+
- Graceful error handling with fallback to next priority level
|
|
102
|
+
|
|
103
|
+
## Testing
|
|
104
|
+
|
|
105
|
+
Created comprehensive test suite to verify the fix:
|
|
106
|
+
|
|
107
|
+
### Test 1: Project-specific config takes precedence
|
|
108
|
+
- Creates both project and global configs
|
|
109
|
+
- Verifies project config is loaded when both exist
|
|
110
|
+
|
|
111
|
+
### Test 2: Global config fallback
|
|
112
|
+
- Creates only global config
|
|
113
|
+
- Verifies global config is used when project config doesn't exist
|
|
114
|
+
|
|
115
|
+
### Test 3: Default fallback
|
|
116
|
+
- Removes all configs
|
|
117
|
+
- Verifies default config is used
|
|
118
|
+
|
|
119
|
+
### Test 4: MCP server cwd scenario
|
|
120
|
+
- Simulates real-world MCP server startup
|
|
121
|
+
- Verifies correct config is loaded based on working directory
|
|
122
|
+
|
|
123
|
+
**All tests pass:** ✓
|
|
124
|
+
|
|
125
|
+
## Usage Examples
|
|
126
|
+
|
|
127
|
+
### Scenario 1: Project with specific config
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# In project directory
|
|
131
|
+
$ ls -la .mcp-ticketer/
|
|
132
|
+
total 8
|
|
133
|
+
drwxr-xr-x 3 user staff 96 Oct 22 12:00 .
|
|
134
|
+
drwxr-xr-x 8 user staff 256 Oct 22 12:00 ..
|
|
135
|
+
-rw-r--r-- 1 user staff 150 Oct 22 12:00 config.json
|
|
136
|
+
|
|
137
|
+
# When MCP server starts in this directory, it will use .mcp-ticketer/config.json
|
|
138
|
+
$ mcp-ticketer serve
|
|
139
|
+
Starting MCP server with linear adapter
|
|
140
|
+
# Uses project-specific Linear configuration
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Scenario 2: No project config, using global
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# In project without .mcp-ticketer/config.json
|
|
147
|
+
$ ls -la .mcp-ticketer/
|
|
148
|
+
ls: .mcp-ticketer/: No such file or directory
|
|
149
|
+
|
|
150
|
+
# Falls back to ~/.mcp-ticketer/config.json
|
|
151
|
+
$ mcp-ticketer serve
|
|
152
|
+
Starting MCP server with github adapter
|
|
153
|
+
# Uses global GitHub configuration
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Scenario 3: MCP server via Claude Code
|
|
157
|
+
|
|
158
|
+
When Claude Code/Desktop starts the MCP server:
|
|
159
|
+
|
|
160
|
+
1. Reads `.mcp/config.json` in your project
|
|
161
|
+
2. Finds `"cwd": "/path/to/your/project"`
|
|
162
|
+
3. Starts MCP server with that working directory
|
|
163
|
+
4. Server's `load_config()` checks `/path/to/your/project/.mcp-ticketer/config.json` first
|
|
164
|
+
5. Uses project-specific config if it exists, otherwise falls back to global
|
|
165
|
+
|
|
166
|
+
## Implementation Details
|
|
167
|
+
|
|
168
|
+
### Error Handling
|
|
169
|
+
|
|
170
|
+
The implementation includes robust error handling:
|
|
171
|
+
|
|
172
|
+
- **JSON decode errors**: Catches malformed JSON files and falls back to next priority level
|
|
173
|
+
- **IO errors**: Handles file permission issues gracefully
|
|
174
|
+
- **Warning messages**: Prints user-friendly warnings when config loading fails
|
|
175
|
+
- **Graceful degradation**: Always provides a working default config
|
|
176
|
+
|
|
177
|
+
### Path Resolution
|
|
178
|
+
|
|
179
|
+
- Uses `Path.cwd()` to get current working directory (respects MCP server's cwd)
|
|
180
|
+
- Uses `Path.home()` for global config location
|
|
181
|
+
- All path operations use `pathlib.Path` for cross-platform compatibility
|
|
182
|
+
|
|
183
|
+
### Performance
|
|
184
|
+
|
|
185
|
+
- No performance impact: Same number of file system calls as before
|
|
186
|
+
- Early return when project config exists (most common case)
|
|
187
|
+
- No caching issues: Always reads fresh config on server start
|
|
188
|
+
|
|
189
|
+
## Verification
|
|
190
|
+
|
|
191
|
+
To verify the fix is working:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Run the test suite
|
|
195
|
+
./venv/bin/python test_config_resolution.py
|
|
196
|
+
./venv/bin/python test_serve_config.py
|
|
197
|
+
|
|
198
|
+
# Manual verification
|
|
199
|
+
# 1. Create project config
|
|
200
|
+
mkdir -p .mcp-ticketer
|
|
201
|
+
echo '{"default_adapter": "aitrackdown", "adapters": {"aitrackdown": {"base_path": ".aitrackdown-test"}}}' > .mcp-ticketer/config.json
|
|
202
|
+
|
|
203
|
+
# 2. Start serve command
|
|
204
|
+
mcp-ticketer serve
|
|
205
|
+
# Should use .aitrackdown-test base path, not global config
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Related Issues
|
|
209
|
+
|
|
210
|
+
This fix resolves:
|
|
211
|
+
- MCP server ignoring project-specific configuration
|
|
212
|
+
- Configuration precedence not documented
|
|
213
|
+
- Unexpected behavior when running in project directories
|
|
214
|
+
- Need for better configuration isolation between projects
|
|
215
|
+
|
|
216
|
+
## Future Improvements
|
|
217
|
+
|
|
218
|
+
Potential enhancements (not part of this fix):
|
|
219
|
+
|
|
220
|
+
- Add `--config` flag to explicitly specify config file path
|
|
221
|
+
- Add verbose logging to show which config file was loaded
|
|
222
|
+
- Create config file watcher for hot-reloading during development
|
|
223
|
+
- Add config validation and helpful error messages for common mistakes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-ticketer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.16
|
|
4
4
|
Summary: Universal ticket management interface for AI agents with MCP support
|
|
5
5
|
Author-email: MCP Ticketer Team <support@mcp-ticketer.io>
|
|
6
6
|
Maintainer-email: MCP Ticketer Team <support@mcp-ticketer.io>
|
|
@@ -71,10 +71,34 @@ class AdapterType(str, Enum):
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
def load_config() -> dict:
|
|
74
|
-
"""Load configuration from file.
|
|
74
|
+
"""Load configuration from file.
|
|
75
|
+
|
|
76
|
+
Resolution order:
|
|
77
|
+
1. Project-specific config (.mcp-ticketer/config.json in cwd)
|
|
78
|
+
2. Global config (~/.mcp-ticketer/config.json)
|
|
79
|
+
|
|
80
|
+
Returns:
|
|
81
|
+
Configuration dictionary
|
|
82
|
+
"""
|
|
83
|
+
# Check project-specific config first
|
|
84
|
+
project_config = Path.cwd() / ".mcp-ticketer" / "config.json"
|
|
85
|
+
if project_config.exists():
|
|
86
|
+
try:
|
|
87
|
+
with open(project_config, "r") as f:
|
|
88
|
+
return json.load(f)
|
|
89
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
90
|
+
console.print(f"[yellow]Warning: Could not load project config: {e}[/yellow]")
|
|
91
|
+
# Fall through to global config
|
|
92
|
+
|
|
93
|
+
# Fall back to global config
|
|
75
94
|
if CONFIG_FILE.exists():
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
try:
|
|
96
|
+
with open(CONFIG_FILE, "r") as f:
|
|
97
|
+
return json.load(f)
|
|
98
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
99
|
+
console.print(f"[yellow]Warning: Could not load global config: {e}[/yellow]")
|
|
100
|
+
|
|
101
|
+
# Default fallback
|
|
78
102
|
return {"adapter": "aitrackdown", "config": {"base_path": ".aitrackdown"}}
|
|
79
103
|
|
|
80
104
|
|
|
@@ -1135,7 +1159,7 @@ def check(
|
|
|
1135
1159
|
|
|
1136
1160
|
|
|
1137
1161
|
@app.command()
|
|
1138
|
-
def
|
|
1162
|
+
def serve(
|
|
1139
1163
|
adapter: Optional[AdapterType] = typer.Option(
|
|
1140
1164
|
None,
|
|
1141
1165
|
"--adapter",
|
|
@@ -1148,10 +1172,22 @@ def mcp(
|
|
|
1148
1172
|
help="Base path for AITrackdown adapter"
|
|
1149
1173
|
),
|
|
1150
1174
|
):
|
|
1151
|
-
"""Start MCP server for JSON-RPC communication over stdio.
|
|
1175
|
+
"""Start MCP server for JSON-RPC communication over stdio.
|
|
1176
|
+
|
|
1177
|
+
This command is used by Claude Code/Desktop when connecting to the MCP server.
|
|
1178
|
+
You typically don't need to run this manually - use 'mcp-ticketer mcp' to configure.
|
|
1179
|
+
|
|
1180
|
+
Configuration Resolution:
|
|
1181
|
+
- When MCP server starts, it uses the current working directory (cwd)
|
|
1182
|
+
- The cwd is set by Claude Code/Desktop from the 'cwd' field in .mcp/config.json
|
|
1183
|
+
- Configuration is loaded with this priority:
|
|
1184
|
+
1. Project-specific: .mcp-ticketer/config.json in cwd
|
|
1185
|
+
2. Global: ~/.mcp-ticketer/config.json
|
|
1186
|
+
3. Default: aitrackdown adapter with .aitrackdown base path
|
|
1187
|
+
"""
|
|
1152
1188
|
from ..mcp.server import MCPTicketServer
|
|
1153
1189
|
|
|
1154
|
-
# Load configuration
|
|
1190
|
+
# Load configuration (respects project-specific config in cwd)
|
|
1155
1191
|
config = load_config()
|
|
1156
1192
|
|
|
1157
1193
|
# Determine adapter type
|
|
@@ -1194,6 +1230,38 @@ def mcp(
|
|
|
1194
1230
|
sys.exit(1)
|
|
1195
1231
|
|
|
1196
1232
|
|
|
1233
|
+
@app.command()
|
|
1234
|
+
def mcp(
|
|
1235
|
+
global_config: bool = typer.Option(
|
|
1236
|
+
False,
|
|
1237
|
+
"--global",
|
|
1238
|
+
"-g",
|
|
1239
|
+
help="Configure Claude Desktop instead of project-level"
|
|
1240
|
+
),
|
|
1241
|
+
force: bool = typer.Option(
|
|
1242
|
+
False,
|
|
1243
|
+
"--force",
|
|
1244
|
+
"-f",
|
|
1245
|
+
help="Overwrite existing configuration"
|
|
1246
|
+
),
|
|
1247
|
+
):
|
|
1248
|
+
"""Configure Claude Code to use mcp-ticketer MCP server.
|
|
1249
|
+
|
|
1250
|
+
Reads configuration from .mcp-ticketer/config.json and updates
|
|
1251
|
+
Claude Code's MCP settings accordingly.
|
|
1252
|
+
|
|
1253
|
+
By default, configures project-level (.mcp/config.json).
|
|
1254
|
+
Use --global to configure Claude Desktop instead.
|
|
1255
|
+
"""
|
|
1256
|
+
from ..cli.mcp_configure import configure_claude_mcp
|
|
1257
|
+
|
|
1258
|
+
try:
|
|
1259
|
+
configure_claude_mcp(global_config=global_config, force=force)
|
|
1260
|
+
except Exception as e:
|
|
1261
|
+
console.print(f"[red]✗ Configuration failed:[/red] {e}")
|
|
1262
|
+
raise typer.Exit(1)
|
|
1263
|
+
|
|
1264
|
+
|
|
1197
1265
|
def main():
|
|
1198
1266
|
"""Main entry point."""
|
|
1199
1267
|
app()
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"""MCP configuration for Claude Code integration."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
import shutil
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Optional
|
|
9
|
+
|
|
10
|
+
from rich.console import Console
|
|
11
|
+
|
|
12
|
+
console = Console()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def find_mcp_ticketer_binary() -> str:
|
|
16
|
+
"""Find the mcp-ticketer binary path.
|
|
17
|
+
|
|
18
|
+
Returns:
|
|
19
|
+
Path to mcp-ticketer binary
|
|
20
|
+
|
|
21
|
+
Raises:
|
|
22
|
+
FileNotFoundError: If binary not found
|
|
23
|
+
"""
|
|
24
|
+
# Check if running from development environment
|
|
25
|
+
import mcp_ticketer
|
|
26
|
+
package_path = Path(mcp_ticketer.__file__).parent.parent.parent
|
|
27
|
+
|
|
28
|
+
# Check for virtual environment bin
|
|
29
|
+
possible_paths = [
|
|
30
|
+
# Development paths
|
|
31
|
+
package_path / "venv" / "bin" / "mcp-ticketer",
|
|
32
|
+
package_path / ".venv" / "bin" / "mcp-ticketer",
|
|
33
|
+
package_path / "test_venv" / "bin" / "mcp-ticketer",
|
|
34
|
+
# System installation
|
|
35
|
+
Path.home() / ".local" / "bin" / "mcp-ticketer",
|
|
36
|
+
# pipx installation
|
|
37
|
+
Path.home() / ".local" / "pipx" / "venvs" / "mcp-ticketer" / "bin" / "mcp-ticketer",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
# Check PATH
|
|
41
|
+
which_result = shutil.which("mcp-ticketer")
|
|
42
|
+
if which_result:
|
|
43
|
+
return which_result
|
|
44
|
+
|
|
45
|
+
# Check possible paths
|
|
46
|
+
for path in possible_paths:
|
|
47
|
+
if path.exists():
|
|
48
|
+
return str(path.resolve())
|
|
49
|
+
|
|
50
|
+
raise FileNotFoundError(
|
|
51
|
+
"Could not find mcp-ticketer binary. Please ensure mcp-ticketer is installed.\n"
|
|
52
|
+
"Install with: pip install mcp-ticketer"
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def load_project_config() -> dict:
|
|
57
|
+
"""Load mcp-ticketer project configuration.
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
Project configuration dict
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
FileNotFoundError: If config not found
|
|
64
|
+
ValueError: If config is invalid
|
|
65
|
+
"""
|
|
66
|
+
# Check for project-specific config first
|
|
67
|
+
project_config_path = Path.cwd() / ".mcp-ticketer" / "config.json"
|
|
68
|
+
|
|
69
|
+
if not project_config_path.exists():
|
|
70
|
+
# Check global config
|
|
71
|
+
global_config_path = Path.home() / ".mcp-ticketer" / "config.json"
|
|
72
|
+
if global_config_path.exists():
|
|
73
|
+
project_config_path = global_config_path
|
|
74
|
+
else:
|
|
75
|
+
raise FileNotFoundError(
|
|
76
|
+
"No mcp-ticketer configuration found.\n"
|
|
77
|
+
"Run 'mcp-ticketer init' to create configuration."
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
with open(project_config_path, "r") as f:
|
|
81
|
+
config = json.load(f)
|
|
82
|
+
|
|
83
|
+
# Validate config
|
|
84
|
+
if "default_adapter" not in config:
|
|
85
|
+
raise ValueError("Invalid config: missing 'default_adapter'")
|
|
86
|
+
|
|
87
|
+
return config
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def find_claude_mcp_config(global_config: bool = False) -> Path:
|
|
91
|
+
"""Find or create Claude Code MCP configuration file.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
global_config: If True, use Claude Desktop config instead of project-level
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
Path to MCP configuration file
|
|
98
|
+
"""
|
|
99
|
+
if global_config:
|
|
100
|
+
# Claude Desktop configuration
|
|
101
|
+
if sys.platform == "darwin": # macOS
|
|
102
|
+
config_path = Path.home() / "Library" / "Application Support" / "Claude" / "claude_desktop_config.json"
|
|
103
|
+
elif sys.platform == "win32": # Windows
|
|
104
|
+
config_path = Path(os.environ.get("APPDATA", "")) / "Claude" / "claude_desktop_config.json"
|
|
105
|
+
else: # Linux
|
|
106
|
+
config_path = Path.home() / ".config" / "Claude" / "claude_desktop_config.json"
|
|
107
|
+
else:
|
|
108
|
+
# Project-level configuration
|
|
109
|
+
config_path = Path.cwd() / ".mcp" / "config.json"
|
|
110
|
+
|
|
111
|
+
return config_path
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def load_claude_mcp_config(config_path: Path) -> dict:
|
|
115
|
+
"""Load existing Claude MCP configuration or return empty structure.
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
config_path: Path to MCP config file
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
MCP configuration dict
|
|
122
|
+
"""
|
|
123
|
+
if config_path.exists():
|
|
124
|
+
with open(config_path, "r") as f:
|
|
125
|
+
return json.load(f)
|
|
126
|
+
|
|
127
|
+
# Return empty structure
|
|
128
|
+
return {"mcpServers": {}}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def save_claude_mcp_config(config_path: Path, config: dict) -> None:
|
|
132
|
+
"""Save Claude MCP configuration to file.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
config_path: Path to MCP config file
|
|
136
|
+
config: Configuration to save
|
|
137
|
+
"""
|
|
138
|
+
# Ensure directory exists
|
|
139
|
+
config_path.parent.mkdir(parents=True, exist_ok=True)
|
|
140
|
+
|
|
141
|
+
# Write with formatting
|
|
142
|
+
with open(config_path, "w") as f:
|
|
143
|
+
json.dump(config, f, indent=2)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def create_mcp_server_config(
|
|
147
|
+
binary_path: str,
|
|
148
|
+
project_config: dict,
|
|
149
|
+
cwd: Optional[str] = None
|
|
150
|
+
) -> dict:
|
|
151
|
+
"""Create MCP server configuration for mcp-ticketer.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
binary_path: Path to mcp-ticketer binary
|
|
155
|
+
project_config: Project configuration from .mcp-ticketer/config.json
|
|
156
|
+
cwd: Working directory for server (optional)
|
|
157
|
+
|
|
158
|
+
Returns:
|
|
159
|
+
MCP server configuration dict
|
|
160
|
+
"""
|
|
161
|
+
config = {
|
|
162
|
+
"command": binary_path,
|
|
163
|
+
"args": ["serve"], # Use 'serve' command to start MCP server
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
# Add working directory if provided
|
|
167
|
+
if cwd:
|
|
168
|
+
config["cwd"] = cwd
|
|
169
|
+
|
|
170
|
+
# Add environment variables based on adapter
|
|
171
|
+
adapter = project_config.get("default_adapter", "aitrackdown")
|
|
172
|
+
adapters_config = project_config.get("adapters", {})
|
|
173
|
+
adapter_config = adapters_config.get(adapter, {})
|
|
174
|
+
|
|
175
|
+
env_vars = {}
|
|
176
|
+
|
|
177
|
+
# Add adapter-specific environment variables
|
|
178
|
+
if adapter == "linear" and "api_key" in adapter_config:
|
|
179
|
+
env_vars["LINEAR_API_KEY"] = adapter_config["api_key"]
|
|
180
|
+
elif adapter == "github" and "token" in adapter_config:
|
|
181
|
+
env_vars["GITHUB_TOKEN"] = adapter_config["token"]
|
|
182
|
+
elif adapter == "jira":
|
|
183
|
+
if "api_token" in adapter_config:
|
|
184
|
+
env_vars["JIRA_API_TOKEN"] = adapter_config["api_token"]
|
|
185
|
+
if "email" in adapter_config:
|
|
186
|
+
env_vars["JIRA_EMAIL"] = adapter_config["email"]
|
|
187
|
+
|
|
188
|
+
if env_vars:
|
|
189
|
+
config["env"] = env_vars
|
|
190
|
+
|
|
191
|
+
return config
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def configure_claude_mcp(global_config: bool = False, force: bool = False) -> None:
|
|
195
|
+
"""Configure Claude Code to use mcp-ticketer.
|
|
196
|
+
|
|
197
|
+
Args:
|
|
198
|
+
global_config: Configure Claude Desktop instead of project-level
|
|
199
|
+
force: Overwrite existing configuration
|
|
200
|
+
|
|
201
|
+
Raises:
|
|
202
|
+
FileNotFoundError: If binary or project config not found
|
|
203
|
+
ValueError: If configuration is invalid
|
|
204
|
+
"""
|
|
205
|
+
# Step 1: Find mcp-ticketer binary
|
|
206
|
+
console.print("[cyan]🔍 Finding mcp-ticketer binary...[/cyan]")
|
|
207
|
+
try:
|
|
208
|
+
binary_path = find_mcp_ticketer_binary()
|
|
209
|
+
console.print(f"[green]✓[/green] Found: {binary_path}")
|
|
210
|
+
except FileNotFoundError as e:
|
|
211
|
+
console.print(f"[red]✗[/red] {e}")
|
|
212
|
+
raise
|
|
213
|
+
|
|
214
|
+
# Step 2: Load project configuration
|
|
215
|
+
console.print("\n[cyan]📖 Reading project configuration...[/cyan]")
|
|
216
|
+
try:
|
|
217
|
+
project_config = load_project_config()
|
|
218
|
+
adapter = project_config.get("default_adapter", "aitrackdown")
|
|
219
|
+
console.print(f"[green]✓[/green] Adapter: {adapter}")
|
|
220
|
+
except (FileNotFoundError, ValueError) as e:
|
|
221
|
+
console.print(f"[red]✗[/red] {e}")
|
|
222
|
+
raise
|
|
223
|
+
|
|
224
|
+
# Step 3: Find Claude MCP config location
|
|
225
|
+
config_type = "Claude Desktop" if global_config else "project-level"
|
|
226
|
+
console.print(f"\n[cyan]🔧 Configuring {config_type} MCP...[/cyan]")
|
|
227
|
+
|
|
228
|
+
mcp_config_path = find_claude_mcp_config(global_config)
|
|
229
|
+
console.print(f"[dim]Config location: {mcp_config_path}[/dim]")
|
|
230
|
+
|
|
231
|
+
# Step 4: Load existing MCP configuration
|
|
232
|
+
mcp_config = load_claude_mcp_config(mcp_config_path)
|
|
233
|
+
|
|
234
|
+
# Step 5: Check if mcp-ticketer already configured
|
|
235
|
+
if "mcp-ticketer" in mcp_config.get("mcpServers", {}):
|
|
236
|
+
if not force:
|
|
237
|
+
console.print("[yellow]⚠ mcp-ticketer is already configured[/yellow]")
|
|
238
|
+
console.print("[dim]Use --force to overwrite existing configuration[/dim]")
|
|
239
|
+
return
|
|
240
|
+
else:
|
|
241
|
+
console.print("[yellow]⚠ Overwriting existing configuration[/yellow]")
|
|
242
|
+
|
|
243
|
+
# Step 6: Create mcp-ticketer server config
|
|
244
|
+
cwd = str(Path.cwd()) if not global_config else None
|
|
245
|
+
server_config = create_mcp_server_config(
|
|
246
|
+
binary_path=binary_path,
|
|
247
|
+
project_config=project_config,
|
|
248
|
+
cwd=cwd
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
# Step 7: Update MCP configuration
|
|
252
|
+
if "mcpServers" not in mcp_config:
|
|
253
|
+
mcp_config["mcpServers"] = {}
|
|
254
|
+
|
|
255
|
+
mcp_config["mcpServers"]["mcp-ticketer"] = server_config
|
|
256
|
+
|
|
257
|
+
# Step 8: Save configuration
|
|
258
|
+
try:
|
|
259
|
+
save_claude_mcp_config(mcp_config_path, mcp_config)
|
|
260
|
+
console.print(f"\n[green]✓ Successfully configured mcp-ticketer[/green]")
|
|
261
|
+
console.print(f"[dim]Configuration saved to: {mcp_config_path}[/dim]")
|
|
262
|
+
|
|
263
|
+
# Print configuration details
|
|
264
|
+
console.print("\n[bold]Configuration Details:[/bold]")
|
|
265
|
+
console.print(f" Server name: mcp-ticketer")
|
|
266
|
+
console.print(f" Adapter: {adapter}")
|
|
267
|
+
console.print(f" Binary: {binary_path}")
|
|
268
|
+
if cwd:
|
|
269
|
+
console.print(f" Working directory: {cwd}")
|
|
270
|
+
if "env" in server_config:
|
|
271
|
+
console.print(f" Environment variables: {list(server_config['env'].keys())}")
|
|
272
|
+
|
|
273
|
+
# Next steps
|
|
274
|
+
console.print("\n[bold cyan]Next Steps:[/bold cyan]")
|
|
275
|
+
if global_config:
|
|
276
|
+
console.print("1. Restart Claude Desktop")
|
|
277
|
+
console.print("2. Open a conversation")
|
|
278
|
+
else:
|
|
279
|
+
console.print("1. Restart Claude Code")
|
|
280
|
+
console.print("2. Open this project in Claude Code")
|
|
281
|
+
console.print("3. mcp-ticketer tools will be available in the MCP menu")
|
|
282
|
+
|
|
283
|
+
except Exception as e:
|
|
284
|
+
console.print(f"\n[red]✗ Failed to save configuration:[/red] {e}")
|
|
285
|
+
raise
|
|
@@ -31,10 +31,34 @@ class CommonPatterns:
|
|
|
31
31
|
|
|
32
32
|
@staticmethod
|
|
33
33
|
def load_config() -> dict:
|
|
34
|
-
"""Load configuration from file.
|
|
34
|
+
"""Load configuration from file.
|
|
35
|
+
|
|
36
|
+
Resolution order:
|
|
37
|
+
1. Project-specific config (.mcp-ticketer/config.json in cwd)
|
|
38
|
+
2. Global config (~/.mcp-ticketer/config.json)
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
Configuration dictionary
|
|
42
|
+
"""
|
|
43
|
+
# Check project-specific config first
|
|
44
|
+
project_config = Path.cwd() / ".mcp-ticketer" / "config.json"
|
|
45
|
+
if project_config.exists():
|
|
46
|
+
try:
|
|
47
|
+
with open(project_config, "r") as f:
|
|
48
|
+
return json.load(f)
|
|
49
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
50
|
+
console.print(f"[yellow]Warning: Could not load project config: {e}[/yellow]")
|
|
51
|
+
# Fall through to global config
|
|
52
|
+
|
|
53
|
+
# Fall back to global config
|
|
35
54
|
if CommonPatterns.CONFIG_FILE.exists():
|
|
36
|
-
|
|
37
|
-
|
|
55
|
+
try:
|
|
56
|
+
with open(CommonPatterns.CONFIG_FILE, "r") as f:
|
|
57
|
+
return json.load(f)
|
|
58
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
59
|
+
console.print(f"[yellow]Warning: Could not load global config: {e}[/yellow]")
|
|
60
|
+
|
|
61
|
+
# Default fallback
|
|
38
62
|
return {"adapter": "aitrackdown", "config": {"base_path": ".aitrackdown"}}
|
|
39
63
|
|
|
40
64
|
@staticmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-ticketer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.16
|
|
4
4
|
Summary: Universal ticket management interface for AI agents with MCP support
|
|
5
5
|
Author-email: MCP Ticketer Team <support@mcp-ticketer.io>
|
|
6
6
|
Maintainer-email: MCP Ticketer Team <support@mcp-ticketer.io>
|