Commit Graph

10 Commits

Author SHA1 Message Date
Kazuki Yamada cd2b7de4b9 test(skill,mcp): improve test coverage for writeSkillOutput and fileSystemReadFileTool
Add comprehensive tests to increase code coverage from 89.81% to 90.28%:

writeSkillOutput.ts (63.88% → 100%):
- Add test for techStack file writing
- Add tests for EPERM/EACCES error handling
- Add test for generic error handling
- Add test for non-Error object handling

fileSystemReadFileTool.ts (62.5% → 100%):
- Add test for directory path error
- Add test for successful file reading
- Add test for security check failure
- Add test for general errors during file reading
- Add test for non-Error object handling
2025-12-14 22:10:56 +09:00
Kazuki Yamada 0d02663bb4 fix(mcp): add documentation and clean up commented code
Add comment explaining why structuredContent is omitted from error responses
to prevent schema validation issues. Remove commented-out code from tests
for better maintainability as suggested in PR review.
2025-09-14 14:45:13 +09:00
Tran Quoc Huy b288701be6 fix(mcp): update test 2025-09-14 14:39:14 +09:00
Kazuki Yamada b7fe6f25c5 fix(lint): resolve all oxlint warnings for code quality
- Remove unused imports across 67 files (RepomixConfigMerged, QueryCapture, etc.)
- Fix unused parameters by prefixing with underscore (_context, _index, etc.)
- Remove unused catch parameters using modern JavaScript syntax
- Fix require-yield warnings in generator functions
- Remove unused variables and interface declarations
- Add oxlint configuration to ignore integration test fixtures

Resolves 144 linting warnings while preserving all functionality.
All 743 tests continue to pass. Code quality significantly improved.
2025-08-24 18:25:08 +09:00
Kazuki Yamada 8cb6850e8f feat: migrate MCP tools to registerTool() API for SDK v1.15.0
- Update all 7 MCP tool files from tool() to registerTool() API
- Add structured outputSchema with Zod schemas for type safety
- Reorganize tool configuration with inputSchema and annotations
- Update test mocks to use registerTool instead of deprecated tool()
- Maintain backward compatibility with result field in pack tools
- Add comprehensive output schemas for better LLM integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 00:07:18 +09:00
Kazuki Yamada 01e7a4ca7e refactor: improve MCP response field naming for clarity
- Change buildMcpToolSuccessResponse: message → description
- Change buildMcpToolErrorResponse: message → errorMessage
- Update convertErrorToJson to return errorMessage field
- Update all tool implementations to use new field names
- Update all test expectations to match new response format

This provides better semantic clarity:
- description: explanatory text for successful operations
- errorMessage: specific error information for failures

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 00:07:17 +09:00
Kazuki Yamada 3eb8833369 feat: update MCP tools to structured output format
- Upgrade @modelcontextprotocol/sdk from 1.11.0 to 1.15.0
- Add structured content support to all MCP tool responses
- Update error handling to use convertErrorToJson utility
- Rename formatToolResponse to formatPackToolResponse for clarity
- Fix property naming consistency (contents → content)
- Update all tests to expect new JSON response format
- Replace 'any' types with proper TypeScript types for better type safety

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 00:07:17 +09:00
Kazuki Yamada e62ce0caed refactor(mcp): Enhance tool descriptions for clarity and detail 2025-05-25 12:18:58 +09:00
Devin AI 2161dbc1c8 feat(mcp): Add support for MCP tool annotations
Co-Authored-By: Kazuki Yamada <koukun0120@gmail.com>
2025-05-10 19:50:50 +09:00
Kazuki Yamada 4dbd17a4d3 test: improved coverage of MCP-related tests 2025-03-16 15:44:13 +09:00