Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

  • removed examples parsing for skills JSON until we can make it bullet-proof
  • handle both prod and test builds
  • add more logging
  • add more robust error handling
  • smartly use --output option for temp files and stdout based on command class

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the MCP (Model Context Protocol) infrastructure to improve robustness and handle both production and test builds properly. The key changes include:

  • Removed examples parsing from skills JSON generation until it can be made bullet-proof
  • Added smart handling of build paths for both production (dist/) and test (dist/src/) builds
  • Implemented intelligent temp file management based on command classification
  • Enhanced error handling and logging throughout the MCP server
  • Updated all skill definitions from version 12.0.0 to 13.0.0

Reviewed changes

Copilot reviewed 81 out of 101 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/bin/qsv-skill-gen.rs Removed examples parsing, added argument ordering preservation, improved robust argument extraction
.claude/skills/src/version.ts Added production vs test build path detection for package.json
.claude/skills/src/loader.ts Added production vs test build path detection for qsv directory
.claude/skills/src/mcp-tools.ts Added smart temp file handling based on command class, MCP response size limits, and detailed logging
.claude/skills/src/mcp-server.ts Added comprehensive logging for tool handler registration
.claude/skills/src/mcp-filesystem.ts Updated comments from "CSV" to "tabular data"
.claude/skills/qsv/*.json Removed examples/examples_ref fields, updated version to 13.0.0, preserved argument order
.claude/skills/tests/*.{js,d.ts,map} Removed compiled test files (now in dist/ only)
.claude/skills/package.json Added separate build:test script, updated version
.claude/skills/.gitignore Added patterns to ignore compiled test files outside dist/
.claude/skills/README.md Updated documentation links to new paths
Files not reviewed (1)
  • .claude/skills/package-lock.json: Language not supported

@jqnatividad jqnatividad merged commit 8143d71 into master Jan 7, 2026
23 checks passed
@jqnatividad jqnatividad deleted the mcp-refactor-more-robust branch January 7, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants