Skip to content

Commit 6d18c3d

Browse files
fix(mcp): fix cli argument parsing logic
1 parent 475202b commit 6d18c3d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/jest.config.ts":"1","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/jest.config.ts":"2","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/code-tool-types.ts":"3","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/code-tool-worker.ts":"4","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/code-tool.ts":"5","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/compat.ts":"6","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/docs-search-tool.ts":"7","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/filtering.ts":"8","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/dynamic-tools.ts":"9","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/headers.ts":"10","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/http.ts":"11","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/options.ts":"12","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/index.ts":"13","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/server.ts":"14","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/stdio.ts":"15","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/cas-generator/generate-cas-cas-generator.ts":"16","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/cas-parser/cams-kfintech-cas-parser.ts":"17","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/cas-parser/cdsl-cas-parser.ts":"18","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/cas-parser/nsdl-cas-parser.ts":"19","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/cas-parser/smart-parse-cas-parser.ts":"20","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools.ts":"21","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/compat.test.ts":"22","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/types.ts":"23","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools/index.ts":"24","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/dynamic-tools.test.ts":"25","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/options.test.ts":"26","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/tools.test.ts":"27","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/scripts/publish-packages.ts":"28","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/api-promise.ts":"29","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/client.ts":"30","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/api-promise.ts":"31","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/error.ts":"32","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/resource.ts":"33","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/uploads.ts":"34","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/error.ts":"35","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/index.ts":"36","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/builtin-types.ts":"37","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/detect-platform.ts":"38","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/errors.ts":"39","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/headers.ts":"40","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/parse.ts":"41","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/request-options.ts":"42","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/shim-types.ts":"43","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/shims.ts":"44","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/to-file.ts":"45","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/types.ts":"46","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/uploads.ts":"47","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/base64.ts":"48","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/bytes.ts":"49","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/env.ts":"50","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/log.ts":"51","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/path.ts":"52","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/sleep.ts":"53","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/uuid.ts":"54","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/values.ts":"55","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils.ts":"56","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resource.ts":"57","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resources/cas-generator.ts":"58","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resources/cas-parser.ts":"59","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resources/index.ts":"60","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resources.ts":"61","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/uploads.ts":"62","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/version.ts":"63","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/api-resources/cas-generator.test.ts":"64","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/api-resources/cas-parser.test.ts":"65","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/base64.test.ts":"66","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/buildHeaders.test.ts":"67","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/form.test.ts":"68","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/index.test.ts":"69","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/path.test.ts":"70","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/stringifyQuery.test.ts":"71","/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/uploads.test.ts":"72"},{"size":610,"mtime":1758940428842,"results":"73","hashOfConfig":"74"},{"size":505,"mtime":1758940446082},{"size":369,"mtime":1758940446082},{"size":1183,"mtime":1758940429082,"results":"75","hashOfConfig":"76"},{"size":5772,"mtime":1758940446082},{"size":12713,"mtime":1758940428986,"results":"77","hashOfConfig":"76"},{"size":1464,"mtime":1758940446082},{"size":368,"mtime":1758940428986,"results":"78","hashOfConfig":"76"},{"size":5599,"mtime":1758940428986,"results":"79","hashOfConfig":"76"},{"size":396,"mtime":1758940446082},{"size":3400,"mtime":1758940446082},{"size":17071,"mtime":1758940429078,"results":"80","hashOfConfig":"76"},{"size":2884,"mtime":1758940428986,"results":"81","hashOfConfig":"76"},{"size":6410,"mtime":1758940446082},{"size":465,"mtime":1758940446082},{"size":2867,"mtime":1758940446082},{"size":1379,"mtime":1758940446082},{"size":1324,"mtime":1758940446082},{"size":1324,"mtime":1758940446082},{"size":1408,"mtime":1758940446082},{"size":31,"mtime":1758940428986,"results":"82","hashOfConfig":"76"},{"size":29411,"mtime":1758940428990,"results":"83","hashOfConfig":"76"},{"size":2193,"mtime":1758940446082},{"size":2656,"mtime":1758940446082},{"size":6851,"mtime":1758940428990,"results":"84","hashOfConfig":"76"},{"size":16226,"mtime":1758940428994,"results":"85","hashOfConfig":"76"},{"size":6594,"mtime":1758940428994,"results":"86","hashOfConfig":"76"},{"size":3689,"mtime":1758940428846,"results":"87","hashOfConfig":"74"},{"size":92,"mtime":1758940446082},{"size":26425,"mtime":1758940446082},{"size":3132,"mtime":1758940446082},{"size":3981,"mtime":1758940446082},{"size":270,"mtime":1758940429070,"results":"88","hashOfConfig":"74"},{"size":119,"mtime":1758940428854,"results":"89","hashOfConfig":"74"},{"size":80,"mtime":1758940446082},{"size":580,"mtime":1758940446082},{"size":2917,"mtime":1758940446082},{"size":6407,"mtime":1758940446082},{"size":1187,"mtime":1758940446082},{"size":3026,"mtime":1758940446082},{"size":1504,"mtime":1758940446082},{"size":2473,"mtime":1758940446082},{"size":929,"mtime":1758940446082},{"size":3527,"mtime":1758940446086},{"size":5211,"mtime":1758940446086},{"size":6352,"mtime":1758940446086},{"size":6751,"mtime":1758940428858,"results":"90","hashOfConfig":"74"},{"size":1278,"mtime":1758940429062,"results":"91","hashOfConfig":"74"},{"size":831,"mtime":1758940428858,"results":"92","hashOfConfig":"74"},{"size":612,"mtime":1758940429066,"results":"93","hashOfConfig":"74"},{"size":3151,"mtime":1758940446086},{"size":3213,"mtime":1758940428862,"results":"94","hashOfConfig":"74"},{"size":182,"mtime":1758940429066,"results":"95","hashOfConfig":"74"},{"size":601,"mtime":1758940446086},{"size":3146,"mtime":1758940429062,"results":"96","hashOfConfig":"74"},{"size":271,"mtime":1758940429062,"results":"97","hashOfConfig":"74"},{"size":86,"mtime":1758940446086},{"size":1968,"mtime":1758940446086},{"size":17811,"mtime":1758940446086},{"size":402,"mtime":1758940446086},{"size":35,"mtime":1758940428862,"results":"98","hashOfConfig":"74"},{"size":84,"mtime":1758940446086},{"size":59,"mtime":1758940446086},{"size":1278,"mtime":1758940446086},{"size":2347,"mtime":1758940446086},{"size":2069,"mtime":1758940428862,"results":"99","hashOfConfig":"76"},{"size":2189,"mtime":1758940428862,"results":"100","hashOfConfig":"76"},{"size":1902,"mtime":1758940428862,"results":"101","hashOfConfig":"76"},{"size":22979,"mtime":1758940446086},{"size":17597,"mtime":1758940428866,"results":"102","hashOfConfig":"76"},{"size":930,"mtime":1758940446086},{"size":3495,"mtime":1758940428866,"results":"103","hashOfConfig":"76"},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1cg5263",{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"g8e85j",{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/jest.config.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/code-tool-worker.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/compat.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/filtering.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/dynamic-tools.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/options.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/index.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/tools.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/compat.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/dynamic-tools.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/options.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/tests/tools.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/scripts/publish-packages.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/resource.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/core/uploads.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/uploads.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/base64.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/bytes.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/env.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/path.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/sleep.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils/values.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/internal/utils.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/src/resources.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/base64.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/buildHeaders.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/form.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/path.test.ts",[],[],"/home/tempuser-x04hvr/run/codegen-output/cas-parser/cas-parser-typescript/tests/uploads.test.ts",[],[]]
1+
[{"/home/tempuser-9fbby9/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/options.ts":"1"},{"size":17015,"mtime":1759199066312,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"g8e85j","/home/tempuser-9fbby9/run/codegen-output/cas-parser/cas-parser-typescript/packages/mcp-server/src/options.ts",[],[]]

0 commit comments

Comments
 (0)