feat: build CLI core framework with Commander.js

Add CLI entry point with Commander.js, config management (~/.mcpctl/config.json
with Zod validation), output formatters (table/json/yaml), config and status
commands with dependency injection for testing. Fix sanitizeString regex ordering.
67 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-02-21 04:17:31 +00:00
parent 981585a943
commit 1b66e235fc
21 changed files with 922 additions and 72 deletions

View File

@@ -475,7 +475,7 @@
"dependencies": [
"1"
],
"status": "pending",
"status": "done",
"subtasks": [
{
"id": 1,
@@ -499,7 +499,8 @@
"testStrategy": "TDD tests for config loading, saving, validation, and credential encryption.",
"parentId": "undefined"
}
]
],
"updatedAt": "2026-02-21T04:17:17.744Z"
},
{
"id": "8",
@@ -729,9 +730,9 @@
],
"metadata": {
"version": "1.0.0",
"lastModified": "2026-02-21T04:10:25.433Z",
"lastModified": "2026-02-21T04:17:17.744Z",
"taskCount": 24,
"completedCount": 2,
"completedCount": 3,
"tags": [
"master"
]