Conversation
…committee-reports Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance committee reports with missing MCP tools
feat(committee-reports): implement search_voteringar, search_anforanden, get_propositioner enrichment
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
generateCommitteeReports()was calling onlyget_betankanden, leavingREQUIRED_TOOLSartificially reduced to 1 tool and articles devoid of voting context, debate highlights, or government bill linkage.Implementation
scripts/news-types/committee-reports.tsREQUIRED_TOOLSto the full 4-tool specget_betankandencall; each is individually fault-tolerant via.catch(() => [])— no enrichment failure can abort article generation{ reports, votes, speeches, propositions }togenerateArticleContentand updatesgenerateSources/crossReferences.sourcesaccordinglyscripts/data-transformers/types.tsvotes?: unknown[]andspeeches?: unknown[]toArticleContentDatascripts/data-transformers/content-generators.tsgenerateCommitteeContentwith three optional sections rendered only when data is non-empty: Voting Results, Committee Debate, Government Bill Linkage (up to 3 linked proposition titles)Tests (
tests/news-types/committee-reports.test.ts)fetchVotingRecords,searchSpeeches,fetchPropositionsREQUIRED_TOOLSassertion updated to the full 4-tool listmcpCallscrossReferences.sourcesOriginal prompt
This section details on the original issue you should resolve
<issue_title>Improve Committee Reports: Add voting patterns, debate context, and proposition linkage</issue_title>
<issue_description>## 📋 Issue Type
Enhancement — Implement missing MCP tools for committee reports: voting patterns, debate context, and proposition linkage
🎯 Objective
Implement the three TODO MCP tools in
scripts/news-types/committee-reports.ts:search_voteringar(committee voting patterns),search_anforanden(committee member statements and debate), andget_propositioner(linkage to originating government proposals). These tools will transform committee report articles from basic report listings into comprehensive legislative intelligence.📊 Current State
scripts/news-types/committee-reports.ts(425 lines)get_betankanden✅ (only tool)search_voteringar❌,search_anforanden❌,get_propositioner❌get_betankanden) — reduced from original 4 to avoid validation failures🚀 Desired State
🔧 Implementation Approach
1. Add
search_voteringarintegration (~80 lines)2. Add
search_anforandenintegration (~70 lines)3. Add
get_propositionerintegration (~50 lines)4. Update REQUIRED_TOOLS
Restore full 4-tool list:
get_betankanden,search_voteringar,search_anforanden,get_propositioner5. Enhanced article templates
🤖 Recommended Agent
code-quality-engineer— TypeScript implementation matching existing MCP integration patterns✅ Acceptance Criteria
search_voteringarintegrated for committee voting pattern analysissearch_anforandenintegrated for committee debate contextget_propositionerintegrated for government bill linkage📚 References
scripts/news-types/committee-reports.ts:78-81(TODO comments)scripts/news-types/committee-reports.ts:187-196(REQUIRED_TOOLS update comment)search_voteringar,search_anforanden,get_propositionerscripts/data-transformers/content-generators.ts💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.