Commit e30100e
authored
MCP server, canonical report tightening, and MPL-2.0 relicensing (#18)
This PR prepares `codeclone` `2.0.0b3`.
The beta line now lands as a coherent platform release:
- optional read-only MCP server for agent workflows
- canonical-report-first tightening across MCP and report projections
- changed-scope review and CI-oriented delivery surfaces
- MPL-2.0 relicensing for code, with docs kept under MIT
## Highlights
- add optional `codeclone[mcp]` with `codeclone-mcp` launcher (`stdio` and `streamable-http`)
- ship `20` MCP tools, `7` fixed resources, and `3` run-scoped URI templates
- make MCP budget-aware and triage-first: compact first-pass workflow, bounded drill-down, and explicit guidance for low-cost agent usage
- slim MCP payloads without changing canonical report truth
- harden MCP safety semantics: absolute `root` required for analysis tools, honest `compare_runs`, session-local review state only
- move threshold-aware design findings fully into the canonical report and record effective thresholds in `meta.analysis_thresholds.design_findings`
- add canonical `derived.overview.directory_hotspots` and render `Hotspots by Directory` in Overview
- bump report schema to `2.2` and cache schema to `2.3`
- fix stale cache reuse after semantic analysis changes
- fix AST normalization side effects that corrupted downstream cohesion metrics
- refresh baseline/health after analysis fixes (`85 (B)` on the repo)
- polish HTML report navigation, badges, overview rhythm, and hotspot presentation
- relicense repository code to `MPL-2.0` while keeping documentation under `MIT`
## Contracts and compatibility
- baseline schema remains `2.0`
- fingerprint version remains `1`
- report schema is now `2.2`
- cache schema is now `2.3`
- MCP remains read-only with respect to repo state and persisted artifacts1 parent b5059ab commit e30100e
File tree
188 files changed
+17632
-1194
lines changed- .github
- actions/codeclone
- workflows
- benchmarks
- codeclone
- _html_report
- _sections
- domain
- metrics
- report
- docs
- book
- appendix
- scripts
- tests
- fixtures
- golden_project
- golden_v2
- clone_metrics_cycle/pkg
- pyproject_defaults
- pkg
- test_only_usage/pkg
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
188 files changed
+17632
-1194
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
6 | 31 | | |
7 | 32 | | |
8 | | - | |
| 33 | + | |
9 | 34 | | |
10 | | - | |
11 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
0 commit comments