|
Ran
|
Jobs
1
|
Files
50
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix(debugging): link docs once per issue in get_issues (#610) ## What kind of change does this PR introduce? Bug fix (response size). Follow-up to #546, as @barryroodt asked on #574 ([comment](https://github.com/supabase/mcp/pull/574#issuecomment-7163435493)). Refs #124. ## What is the current behavior? Every finding in `get_issues` repeats its issue's `docs_url`. In splinter, each lint has one fixed remediation link, so these copies add no data for splinter lints. On a project the size of the Mockamaster capture in #546 (547 findings in 11 issues), the copies are about 22% of the default response. ## What is the new behavior? Findings no longer carry `docs_url`. The issue keeps its `docs_url`, so every finding still reaches the link through its issue. Nothing else in the output changes. | Call | Before | After | Saved (chars / tokens) | |---|---:|---:|---:| | default | 62,296 chars, 15,225 tokens | 48,243 chars, 11,614 tokens | 22.6% / 23.7% | | `severity: warning` | 43,789 chars, 10,533 tokens | 34,836 chars, 8,252 tokens | 20.4% / 21.7% | I ran the real splinter SQL in PGlite on the supabase/evals#552 seed and fed the lints to the real `get_issues` on `main`. Splinter also flags 41 unused indexes there, because a fresh database has no index scans. I left those out to match 547 findings in 11 issues. With them, the default call goes from 69,279 to 53,346 chars (23.0%). Tokens are OpenAI `o200k_base`; I did not count Claude tokens. In every call I ran, each removed link was equal to its issue's link, and the rest of the output is byte-identical. There is exactly one way this change can lose data: two findings of the same lint with different docs links, where the second link is now gone. I checked splinter at [`cc529aa9`](https://github.com/supabase/splinter/blob/cc529aa9d/splinter.sql): each of its 31 lints has one constant remediation, so this can't happen there. I can't see the platform-only and health lints,... (continued)
1430 of 1480 branches covered (96.62%)
Branch coverage included in aggregate %.
6636 of 6717 relevant lines covered (98.79%)
2338.57 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 45786624310.1 | 50 |
98.4
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|