ai-cli-mcp 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/publish.yml +49 -0
- package/.github/workflows/test.yml +13 -36
- package/.mcp.json +10 -0
- package/.releaserc.json +18 -0
- package/CHANGELOG.md +158 -1
- package/CONTRIBUTING.md +71 -0
- package/README.ja.md +227 -0
- package/README.md +81 -105
- package/dist/__tests__/e2e.test.js +4 -0
- package/dist/__tests__/edge-cases.test.js +4 -1
- package/dist/__tests__/server.test.js +72 -0
- package/dist/__tests__/utils/mcp-client.js +1 -1
- package/dist/__tests__/utils/persistent-mock.js +5 -2
- package/dist/__tests__/validation.test.js +35 -0
- package/dist/parsers.js +14 -3
- package/dist/server.js +57 -22
- package/docs/RELEASE_CHECKLIST.md +59 -20
- package/package.json +4 -1
- package/src/__tests__/e2e.test.ts +5 -1
- package/src/__tests__/edge-cases.test.ts +7 -3
- package/src/__tests__/server.test.ts +100 -0
- package/src/__tests__/utils/mcp-client.ts +2 -2
- package/src/__tests__/utils/persistent-mock.ts +7 -3
- package/src/__tests__/validation.test.ts +44 -1
- package/src/parsers.ts +12 -4
- package/src/server.ts +70 -24
- package/.claude/settings.local.json +0 -22
- package/docs/local_install.md +0 -111
- package/scripts/check-version-log.sh +0 -34
- package/scripts/publish-release.sh +0 -95
- package/scripts/restore-config.sh +0 -28
- package/scripts/test-release.sh +0 -69
package/.github/workflows/ci.yml
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- develop
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
release:
|
|
13
|
+
name: Release
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write # to create release and push changelog
|
|
17
|
+
issues: write # to comment on released issues
|
|
18
|
+
pull-requests: write # to comment on released PRs
|
|
19
|
+
id-token: write # for OIDC trusted publishing
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
fetch-tags: true
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
|
|
28
|
+
- name: Setup Node.js
|
|
29
|
+
uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: '24'
|
|
32
|
+
registry-url: 'https://registry.npmjs.org'
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: npm clean-install
|
|
36
|
+
|
|
37
|
+
- name: Build
|
|
38
|
+
run: npm run build
|
|
39
|
+
|
|
40
|
+
- name: Run tests
|
|
41
|
+
run: npm test
|
|
42
|
+
|
|
43
|
+
- name: Verify provenance attestations
|
|
44
|
+
run: npm audit signatures
|
|
45
|
+
|
|
46
|
+
- name: Release
|
|
47
|
+
env:
|
|
48
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
+
run: npx semantic-release
|
|
@@ -1,43 +1,20 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: test
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main ]
|
|
6
4
|
pull_request:
|
|
7
|
-
branches: [ main ]
|
|
8
5
|
|
|
9
6
|
jobs:
|
|
10
7
|
test:
|
|
11
|
-
runs-on:
|
|
12
|
-
strategy:
|
|
13
|
-
matrix:
|
|
14
|
-
node-version: [20.x, 22.x]
|
|
15
|
-
|
|
8
|
+
runs-on: ubuntu-latest
|
|
16
9
|
steps:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
run: npm run build
|
|
29
|
-
|
|
30
|
-
- name: Run unit tests only
|
|
31
|
-
run: npm run test:unit
|
|
32
|
-
|
|
33
|
-
- name: Run all tests with coverage
|
|
34
|
-
run: npm run test:coverage
|
|
35
|
-
|
|
36
|
-
- name: Upload coverage to Codecov
|
|
37
|
-
uses: codecov/codecov-action@v4
|
|
38
|
-
if: matrix.node-version == '20.x'
|
|
39
|
-
with:
|
|
40
|
-
token: ${{ secrets.CODECOV_TOKEN }}
|
|
41
|
-
file: ./coverage/coverage-final.json
|
|
42
|
-
flags: unittests
|
|
43
|
-
name: codecov-umbrella
|
|
10
|
+
- name: Checkout
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
- name: Setup Node
|
|
13
|
+
uses: actions/setup-node@v4
|
|
14
|
+
with:
|
|
15
|
+
node-version: '20'
|
|
16
|
+
cache: 'npm'
|
|
17
|
+
- name: Install
|
|
18
|
+
run: npm ci
|
|
19
|
+
- name: Test
|
|
20
|
+
run: npm test
|
package/.mcp.json
ADDED
package/.releaserc.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": ["develop"],
|
|
3
|
+
"plugins": [
|
|
4
|
+
"@semantic-release/commit-analyzer",
|
|
5
|
+
"@semantic-release/release-notes-generator",
|
|
6
|
+
["@semantic-release/changelog", {
|
|
7
|
+
"changelogFile": "CHANGELOG.md"
|
|
8
|
+
}],
|
|
9
|
+
"@semantic-release/npm",
|
|
10
|
+
["@semantic-release/github", {
|
|
11
|
+
"assets": []
|
|
12
|
+
}],
|
|
13
|
+
["@semantic-release/git", {
|
|
14
|
+
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"],
|
|
15
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
16
|
+
}]
|
|
17
|
+
]
|
|
18
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,160 @@
|
|
|
1
|
+
# [2.4.0](https://github.com/mkXultra/claude-code-mcp/compare/v2.3.3...v2.4.0) (2026-01-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add model aliases and auto-reasoning for Codex ([16bbd7c](https://github.com/mkXultra/claude-code-mcp/commit/16bbd7cef934cbe2c652e7e48c8dd289f1a64eda))
|
|
7
|
+
* add support for gemini-3-flash-preview ([b51a2d1](https://github.com/mkXultra/claude-code-mcp/commit/b51a2d1789455f3366dfc8f6397cf7ffc39f930d))
|
|
8
|
+
|
|
9
|
+
## [2.3.3](https://github.com/mkXultra/claude-code-mcp/compare/v2.3.2...v2.3.3) (2026-01-20)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* trigger release with correct version ([a0af8cf](https://github.com/mkXultra/claude-code-mcp/commit/a0af8cf25c8d3a1fd3ca7ef26d22f85981cc6f2f))
|
|
15
|
+
|
|
16
|
+
# 1.0.0 (2026-01-20)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* add fetch-tags to checkout for semantic-release ([33b8650](https://github.com/mkXultra/claude-code-mcp/commit/33b8650bbeb77169c083256f82534ded14f6ecd2))
|
|
22
|
+
* Apply npm pkg fix for bin path ([e47140d](https://github.com/mkXultra/claude-code-mcp/commit/e47140d6beebacc60ca1cf55903608f9f207ff94))
|
|
23
|
+
* Remove commented-out debug logs from server.ts ([1ef44bb](https://github.com/mkXultra/claude-code-mcp/commit/1ef44bb280fea68dc874fb0d978fea682ddbb681))
|
|
24
|
+
* retry release after tag cleanup ([825838b](https://github.com/mkXultra/claude-code-mcp/commit/825838b05b7e6a10ae01d7bc7bb9179a8d6095bc))
|
|
25
|
+
* rm not use param ([ad9670c](https://github.com/mkXultra/claude-code-mcp/commit/ad9670cfe04507e40abab2427702b680b00353db))
|
|
26
|
+
* trigger release for semantic-release setup ([5e117ee](https://github.com/mkXultra/claude-code-mcp/commit/5e117ee31583ccef2e49c820c815c19716abe392))
|
|
27
|
+
* update tests to match current implementation ([2aa7758](https://github.com/mkXultra/claude-code-mcp/commit/2aa775813678d0a9da7150411fd9a1429ff7736f))
|
|
28
|
+
* use VITEST env check for test detection and add createTestClient helper ([84fa153](https://github.com/mkXultra/claude-code-mcp/commit/84fa1535aa2c50acf9d5a9650bf881df7ff8d470))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* Add CHANGELOG and finalize server ([c50a6bb](https://github.com/mkXultra/claude-code-mcp/commit/c50a6bbb5d7dd8d849b1877e19e97a5aedd63493))
|
|
34
|
+
* add CWD to code prompt and bump version to 1.1.0 ([b62c9c2](https://github.com/mkXultra/claude-code-mcp/commit/b62c9c2c802f84d0d4eb80e970d08ef25a1a9c40))
|
|
35
|
+
* add Gemini CLI support to MCP server ([a9942bc](https://github.com/mkXultra/claude-code-mcp/commit/a9942bc3b0410f5cb45e99108d1b13c252cc5655))
|
|
36
|
+
* Add GitHub Actions CI workflow for build checks ([#2](https://github.com/mkXultra/claude-code-mcp/issues/2)) ([613c0cb](https://github.com/mkXultra/claude-code-mcp/commit/613c0cb855b408d83c661a2317db328548dc72e8))
|
|
37
|
+
* add process cleanup tool and simplify list output ([cc03323](https://github.com/mkXultra/claude-code-mcp/commit/cc03323df9a24be3c4dcbb6fa1f41d2056b942e4))
|
|
38
|
+
* add semantic-release with npm trusted publishing ([ffdf7c8](https://github.com/mkXultra/claude-code-mcp/commit/ffdf7c876060c96cfaf58a74573bda462552fd83))
|
|
39
|
+
* add wait tool ,support gemini 3.9 and continue conversation gemini ([5d249ca](https://github.com/mkXultra/claude-code-mcp/commit/5d249ca7c36a6ea2eea26fd15b4796b2721d19f3))
|
|
40
|
+
* Codex セッション再開機能とMCP設定ファイルの追加 ([d02b329](https://github.com/mkXultra/claude-code-mcp/commit/d02b329a69df0fcfef65e16609cbb78dc582f1ff))
|
|
41
|
+
* Finalize server with dynamic path finding and JSON output ([6c3c410](https://github.com/mkXultra/claude-code-mcp/commit/6c3c4106f4c5f6fdc5cc8e25bb3b0ea142d7e015))
|
|
42
|
+
* Integrate CWD parsing from prompt, fix lint errors ([5113edb](https://github.com/mkXultra/claude-code-mcp/commit/5113edba01a905637075a34fe771d0df66aef6e1))
|
|
43
|
+
* Organize screenshots, enhance CI, and clean up Git tracking ([7bbc42d](https://github.com/mkXultra/claude-code-mcp/commit/7bbc42d8df204ff6cb1a704ab812d97ff55a2bda))
|
|
44
|
+
* Refine server, JSON parsing, docs, and metadata ([4ab9a7f](https://github.com/mkXultra/claude-code-mcp/commit/4ab9a7f8ee0d84d730e3f0faba6fed302be23736))
|
|
45
|
+
* Resolve npm link, ESM import, and MCP config issues ([7b0cc83](https://github.com/mkXultra/claude-code-mcp/commit/7b0cc8395eddf25f53835a79d156efee6363bc2a))
|
|
46
|
+
* **server:** Prepend system instruction to Claude prompts for broader file access context ([08b9f2d](https://github.com/mkXultra/claude-code-mcp/commit/08b9f2d0cfb0294758cb05cdfc63ec9e5a414b53))
|
|
47
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([4382617](https://github.com/mkXultra/claude-code-mcp/commit/4382617bf90924e7df66c807240f928fa3b45507))
|
|
48
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([855be94](https://github.com/mkXultra/claude-code-mcp/commit/855be9478cdd2772ff03ea26b2541561422e8599))
|
|
49
|
+
* support codex for gpt5 ([e3111d8](https://github.com/mkXultra/claude-code-mcp/commit/e3111d822c33fd58e6c18adbf8ecd4e31919cf9f))
|
|
50
|
+
* Unify tools into agentic 'code' tool (v1.4.0) ([87c6704](https://github.com/mkXultra/claude-code-mcp/commit/87c6704ea0bed49140e271d56a50cf268dc510e2))
|
|
51
|
+
* update 'code' tool description in server.ts for clarity and power ([dfd2327](https://github.com/mkXultra/claude-code-mcp/commit/dfd2327abff2123fc9b3cccb8d5f6e2cdfc01d1d))
|
|
52
|
+
|
|
53
|
+
# 1.0.0 (2026-01-20)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* Apply npm pkg fix for bin path ([e47140d](https://github.com/mkXultra/claude-code-mcp/commit/e47140d6beebacc60ca1cf55903608f9f207ff94))
|
|
59
|
+
* Remove commented-out debug logs from server.ts ([1ef44bb](https://github.com/mkXultra/claude-code-mcp/commit/1ef44bb280fea68dc874fb0d978fea682ddbb681))
|
|
60
|
+
* retry release after tag cleanup ([825838b](https://github.com/mkXultra/claude-code-mcp/commit/825838b05b7e6a10ae01d7bc7bb9179a8d6095bc))
|
|
61
|
+
* rm not use param ([ad9670c](https://github.com/mkXultra/claude-code-mcp/commit/ad9670cfe04507e40abab2427702b680b00353db))
|
|
62
|
+
* trigger release for semantic-release setup ([5e117ee](https://github.com/mkXultra/claude-code-mcp/commit/5e117ee31583ccef2e49c820c815c19716abe392))
|
|
63
|
+
* update tests to match current implementation ([2aa7758](https://github.com/mkXultra/claude-code-mcp/commit/2aa775813678d0a9da7150411fd9a1429ff7736f))
|
|
64
|
+
* use VITEST env check for test detection and add createTestClient helper ([84fa153](https://github.com/mkXultra/claude-code-mcp/commit/84fa1535aa2c50acf9d5a9650bf881df7ff8d470))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
|
|
69
|
+
* Add CHANGELOG and finalize server ([c50a6bb](https://github.com/mkXultra/claude-code-mcp/commit/c50a6bbb5d7dd8d849b1877e19e97a5aedd63493))
|
|
70
|
+
* add CWD to code prompt and bump version to 1.1.0 ([b62c9c2](https://github.com/mkXultra/claude-code-mcp/commit/b62c9c2c802f84d0d4eb80e970d08ef25a1a9c40))
|
|
71
|
+
* add Gemini CLI support to MCP server ([a9942bc](https://github.com/mkXultra/claude-code-mcp/commit/a9942bc3b0410f5cb45e99108d1b13c252cc5655))
|
|
72
|
+
* Add GitHub Actions CI workflow for build checks ([#2](https://github.com/mkXultra/claude-code-mcp/issues/2)) ([613c0cb](https://github.com/mkXultra/claude-code-mcp/commit/613c0cb855b408d83c661a2317db328548dc72e8))
|
|
73
|
+
* add process cleanup tool and simplify list output ([cc03323](https://github.com/mkXultra/claude-code-mcp/commit/cc03323df9a24be3c4dcbb6fa1f41d2056b942e4))
|
|
74
|
+
* add semantic-release with npm trusted publishing ([ffdf7c8](https://github.com/mkXultra/claude-code-mcp/commit/ffdf7c876060c96cfaf58a74573bda462552fd83))
|
|
75
|
+
* add wait tool ,support gemini 3.9 and continue conversation gemini ([5d249ca](https://github.com/mkXultra/claude-code-mcp/commit/5d249ca7c36a6ea2eea26fd15b4796b2721d19f3))
|
|
76
|
+
* Codex セッション再開機能とMCP設定ファイルの追加 ([d02b329](https://github.com/mkXultra/claude-code-mcp/commit/d02b329a69df0fcfef65e16609cbb78dc582f1ff))
|
|
77
|
+
* Finalize server with dynamic path finding and JSON output ([6c3c410](https://github.com/mkXultra/claude-code-mcp/commit/6c3c4106f4c5f6fdc5cc8e25bb3b0ea142d7e015))
|
|
78
|
+
* Integrate CWD parsing from prompt, fix lint errors ([5113edb](https://github.com/mkXultra/claude-code-mcp/commit/5113edba01a905637075a34fe771d0df66aef6e1))
|
|
79
|
+
* Organize screenshots, enhance CI, and clean up Git tracking ([7bbc42d](https://github.com/mkXultra/claude-code-mcp/commit/7bbc42d8df204ff6cb1a704ab812d97ff55a2bda))
|
|
80
|
+
* Refine server, JSON parsing, docs, and metadata ([4ab9a7f](https://github.com/mkXultra/claude-code-mcp/commit/4ab9a7f8ee0d84d730e3f0faba6fed302be23736))
|
|
81
|
+
* Resolve npm link, ESM import, and MCP config issues ([7b0cc83](https://github.com/mkXultra/claude-code-mcp/commit/7b0cc8395eddf25f53835a79d156efee6363bc2a))
|
|
82
|
+
* **server:** Prepend system instruction to Claude prompts for broader file access context ([08b9f2d](https://github.com/mkXultra/claude-code-mcp/commit/08b9f2d0cfb0294758cb05cdfc63ec9e5a414b53))
|
|
83
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([4382617](https://github.com/mkXultra/claude-code-mcp/commit/4382617bf90924e7df66c807240f928fa3b45507))
|
|
84
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([855be94](https://github.com/mkXultra/claude-code-mcp/commit/855be9478cdd2772ff03ea26b2541561422e8599))
|
|
85
|
+
* support codex for gpt5 ([e3111d8](https://github.com/mkXultra/claude-code-mcp/commit/e3111d822c33fd58e6c18adbf8ecd4e31919cf9f))
|
|
86
|
+
* Unify tools into agentic 'code' tool (v1.4.0) ([87c6704](https://github.com/mkXultra/claude-code-mcp/commit/87c6704ea0bed49140e271d56a50cf268dc510e2))
|
|
87
|
+
* update 'code' tool description in server.ts for clarity and power ([dfd2327](https://github.com/mkXultra/claude-code-mcp/commit/dfd2327abff2123fc9b3cccb8d5f6e2cdfc01d1d))
|
|
88
|
+
|
|
89
|
+
# 1.0.0 (2026-01-20)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* Apply npm pkg fix for bin path ([e47140d](https://github.com/mkXultra/claude-code-mcp/commit/e47140d6beebacc60ca1cf55903608f9f207ff94))
|
|
95
|
+
* Remove commented-out debug logs from server.ts ([1ef44bb](https://github.com/mkXultra/claude-code-mcp/commit/1ef44bb280fea68dc874fb0d978fea682ddbb681))
|
|
96
|
+
* rm not use param ([ad9670c](https://github.com/mkXultra/claude-code-mcp/commit/ad9670cfe04507e40abab2427702b680b00353db))
|
|
97
|
+
* trigger release for semantic-release setup ([5e117ee](https://github.com/mkXultra/claude-code-mcp/commit/5e117ee31583ccef2e49c820c815c19716abe392))
|
|
98
|
+
* update tests to match current implementation ([2aa7758](https://github.com/mkXultra/claude-code-mcp/commit/2aa775813678d0a9da7150411fd9a1429ff7736f))
|
|
99
|
+
* use VITEST env check for test detection and add createTestClient helper ([84fa153](https://github.com/mkXultra/claude-code-mcp/commit/84fa1535aa2c50acf9d5a9650bf881df7ff8d470))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Features
|
|
103
|
+
|
|
104
|
+
* Add CHANGELOG and finalize server ([c50a6bb](https://github.com/mkXultra/claude-code-mcp/commit/c50a6bbb5d7dd8d849b1877e19e97a5aedd63493))
|
|
105
|
+
* add CWD to code prompt and bump version to 1.1.0 ([b62c9c2](https://github.com/mkXultra/claude-code-mcp/commit/b62c9c2c802f84d0d4eb80e970d08ef25a1a9c40))
|
|
106
|
+
* add Gemini CLI support to MCP server ([a9942bc](https://github.com/mkXultra/claude-code-mcp/commit/a9942bc3b0410f5cb45e99108d1b13c252cc5655))
|
|
107
|
+
* Add GitHub Actions CI workflow for build checks ([#2](https://github.com/mkXultra/claude-code-mcp/issues/2)) ([613c0cb](https://github.com/mkXultra/claude-code-mcp/commit/613c0cb855b408d83c661a2317db328548dc72e8))
|
|
108
|
+
* add process cleanup tool and simplify list output ([cc03323](https://github.com/mkXultra/claude-code-mcp/commit/cc03323df9a24be3c4dcbb6fa1f41d2056b942e4))
|
|
109
|
+
* add semantic-release with npm trusted publishing ([ffdf7c8](https://github.com/mkXultra/claude-code-mcp/commit/ffdf7c876060c96cfaf58a74573bda462552fd83))
|
|
110
|
+
* add wait tool ,support gemini 3.9 and continue conversation gemini ([5d249ca](https://github.com/mkXultra/claude-code-mcp/commit/5d249ca7c36a6ea2eea26fd15b4796b2721d19f3))
|
|
111
|
+
* Codex セッション再開機能とMCP設定ファイルの追加 ([d02b329](https://github.com/mkXultra/claude-code-mcp/commit/d02b329a69df0fcfef65e16609cbb78dc582f1ff))
|
|
112
|
+
* Finalize server with dynamic path finding and JSON output ([6c3c410](https://github.com/mkXultra/claude-code-mcp/commit/6c3c4106f4c5f6fdc5cc8e25bb3b0ea142d7e015))
|
|
113
|
+
* Integrate CWD parsing from prompt, fix lint errors ([5113edb](https://github.com/mkXultra/claude-code-mcp/commit/5113edba01a905637075a34fe771d0df66aef6e1))
|
|
114
|
+
* Organize screenshots, enhance CI, and clean up Git tracking ([7bbc42d](https://github.com/mkXultra/claude-code-mcp/commit/7bbc42d8df204ff6cb1a704ab812d97ff55a2bda))
|
|
115
|
+
* Refine server, JSON parsing, docs, and metadata ([4ab9a7f](https://github.com/mkXultra/claude-code-mcp/commit/4ab9a7f8ee0d84d730e3f0faba6fed302be23736))
|
|
116
|
+
* Resolve npm link, ESM import, and MCP config issues ([7b0cc83](https://github.com/mkXultra/claude-code-mcp/commit/7b0cc8395eddf25f53835a79d156efee6363bc2a))
|
|
117
|
+
* **server:** Prepend system instruction to Claude prompts for broader file access context ([08b9f2d](https://github.com/mkXultra/claude-code-mcp/commit/08b9f2d0cfb0294758cb05cdfc63ec9e5a414b53))
|
|
118
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([4382617](https://github.com/mkXultra/claude-code-mcp/commit/4382617bf90924e7df66c807240f928fa3b45507))
|
|
119
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([855be94](https://github.com/mkXultra/claude-code-mcp/commit/855be9478cdd2772ff03ea26b2541561422e8599))
|
|
120
|
+
* support codex for gpt5 ([e3111d8](https://github.com/mkXultra/claude-code-mcp/commit/e3111d822c33fd58e6c18adbf8ecd4e31919cf9f))
|
|
121
|
+
* Unify tools into agentic 'code' tool (v1.4.0) ([87c6704](https://github.com/mkXultra/claude-code-mcp/commit/87c6704ea0bed49140e271d56a50cf268dc510e2))
|
|
122
|
+
* update 'code' tool description in server.ts for clarity and power ([dfd2327](https://github.com/mkXultra/claude-code-mcp/commit/dfd2327abff2123fc9b3cccb8d5f6e2cdfc01d1d))
|
|
123
|
+
|
|
124
|
+
# 1.0.0 (2026-01-20)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
* Apply npm pkg fix for bin path ([e47140d](https://github.com/mkXultra/claude-code-mcp/commit/e47140d6beebacc60ca1cf55903608f9f207ff94))
|
|
130
|
+
* Remove commented-out debug logs from server.ts ([1ef44bb](https://github.com/mkXultra/claude-code-mcp/commit/1ef44bb280fea68dc874fb0d978fea682ddbb681))
|
|
131
|
+
* rm not use param ([ad9670c](https://github.com/mkXultra/claude-code-mcp/commit/ad9670cfe04507e40abab2427702b680b00353db))
|
|
132
|
+
* update tests to match current implementation ([2aa7758](https://github.com/mkXultra/claude-code-mcp/commit/2aa775813678d0a9da7150411fd9a1429ff7736f))
|
|
133
|
+
* use VITEST env check for test detection and add createTestClient helper ([84fa153](https://github.com/mkXultra/claude-code-mcp/commit/84fa1535aa2c50acf9d5a9650bf881df7ff8d470))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Features
|
|
137
|
+
|
|
138
|
+
* Add CHANGELOG and finalize server ([c50a6bb](https://github.com/mkXultra/claude-code-mcp/commit/c50a6bbb5d7dd8d849b1877e19e97a5aedd63493))
|
|
139
|
+
* add CWD to code prompt and bump version to 1.1.0 ([b62c9c2](https://github.com/mkXultra/claude-code-mcp/commit/b62c9c2c802f84d0d4eb80e970d08ef25a1a9c40))
|
|
140
|
+
* add Gemini CLI support to MCP server ([a9942bc](https://github.com/mkXultra/claude-code-mcp/commit/a9942bc3b0410f5cb45e99108d1b13c252cc5655))
|
|
141
|
+
* Add GitHub Actions CI workflow for build checks ([#2](https://github.com/mkXultra/claude-code-mcp/issues/2)) ([613c0cb](https://github.com/mkXultra/claude-code-mcp/commit/613c0cb855b408d83c661a2317db328548dc72e8))
|
|
142
|
+
* add process cleanup tool and simplify list output ([cc03323](https://github.com/mkXultra/claude-code-mcp/commit/cc03323df9a24be3c4dcbb6fa1f41d2056b942e4))
|
|
143
|
+
* add semantic-release with npm trusted publishing ([ffdf7c8](https://github.com/mkXultra/claude-code-mcp/commit/ffdf7c876060c96cfaf58a74573bda462552fd83))
|
|
144
|
+
* add wait tool ,support gemini 3.9 and continue conversation gemini ([5d249ca](https://github.com/mkXultra/claude-code-mcp/commit/5d249ca7c36a6ea2eea26fd15b4796b2721d19f3))
|
|
145
|
+
* Codex セッション再開機能とMCP設定ファイルの追加 ([d02b329](https://github.com/mkXultra/claude-code-mcp/commit/d02b329a69df0fcfef65e16609cbb78dc582f1ff))
|
|
146
|
+
* Finalize server with dynamic path finding and JSON output ([6c3c410](https://github.com/mkXultra/claude-code-mcp/commit/6c3c4106f4c5f6fdc5cc8e25bb3b0ea142d7e015))
|
|
147
|
+
* Integrate CWD parsing from prompt, fix lint errors ([5113edb](https://github.com/mkXultra/claude-code-mcp/commit/5113edba01a905637075a34fe771d0df66aef6e1))
|
|
148
|
+
* Organize screenshots, enhance CI, and clean up Git tracking ([7bbc42d](https://github.com/mkXultra/claude-code-mcp/commit/7bbc42d8df204ff6cb1a704ab812d97ff55a2bda))
|
|
149
|
+
* Refine server, JSON parsing, docs, and metadata ([4ab9a7f](https://github.com/mkXultra/claude-code-mcp/commit/4ab9a7f8ee0d84d730e3f0faba6fed302be23736))
|
|
150
|
+
* Resolve npm link, ESM import, and MCP config issues ([7b0cc83](https://github.com/mkXultra/claude-code-mcp/commit/7b0cc8395eddf25f53835a79d156efee6363bc2a))
|
|
151
|
+
* **server:** Prepend system instruction to Claude prompts for broader file access context ([08b9f2d](https://github.com/mkXultra/claude-code-mcp/commit/08b9f2d0cfb0294758cb05cdfc63ec9e5a414b53))
|
|
152
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([4382617](https://github.com/mkXultra/claude-code-mcp/commit/4382617bf90924e7df66c807240f928fa3b45507))
|
|
153
|
+
* **server:** Release v1.6.0 - Updates timeout, changelog, error handling, and description ([855be94](https://github.com/mkXultra/claude-code-mcp/commit/855be9478cdd2772ff03ea26b2541561422e8599))
|
|
154
|
+
* support codex for gpt5 ([e3111d8](https://github.com/mkXultra/claude-code-mcp/commit/e3111d822c33fd58e6c18adbf8ecd4e31919cf9f))
|
|
155
|
+
* Unify tools into agentic 'code' tool (v1.4.0) ([87c6704](https://github.com/mkXultra/claude-code-mcp/commit/87c6704ea0bed49140e271d56a50cf268dc510e2))
|
|
156
|
+
* update 'code' tool description in server.ts for clarity and power ([dfd2327](https://github.com/mkXultra/claude-code-mcp/commit/dfd2327abff2123fc9b3cccb8d5f6e2cdfc01d1d))
|
|
157
|
+
|
|
1
158
|
# Changelog
|
|
2
159
|
|
|
3
160
|
All notable changes to this project will be documented in this file.
|
|
@@ -123,4 +280,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
123
280
|
- Set default execution timeout for `claude-code-cli` to 5 minutes (300,000 ms).
|
|
124
281
|
|
|
125
282
|
---
|
|
126
|
-
*Older versions might not have detailed changelog entries.*
|
|
283
|
+
*Older versions might not have detailed changelog entries.*
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Development Setup
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
git clone https://github.com/mkXultra/claude-code-mcp.git
|
|
7
|
+
cd claude-code-mcp
|
|
8
|
+
npm install
|
|
9
|
+
npm run build
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Testing
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Run all tests
|
|
16
|
+
npm test
|
|
17
|
+
|
|
18
|
+
# Unit tests only
|
|
19
|
+
npm run test:unit
|
|
20
|
+
|
|
21
|
+
# E2E tests (with mocks)
|
|
22
|
+
npm run test:e2e
|
|
23
|
+
|
|
24
|
+
# E2E tests locally (requires Claude CLI)
|
|
25
|
+
npm run test:e2e:local
|
|
26
|
+
|
|
27
|
+
# Watch mode
|
|
28
|
+
npm run test:watch
|
|
29
|
+
|
|
30
|
+
# Coverage
|
|
31
|
+
npm run test:coverage
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Manual Testing with MCP Inspector
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm run build
|
|
38
|
+
npx @modelcontextprotocol/inspector node dist/server.js
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Local Development with npm link
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm install
|
|
45
|
+
npm run build
|
|
46
|
+
npm link
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then use `ai-cli-mcp` command globally.
|
|
50
|
+
|
|
51
|
+
## Environment Variables
|
|
52
|
+
|
|
53
|
+
| Variable | Description |
|
|
54
|
+
|----------|-------------|
|
|
55
|
+
| `CLAUDE_CLI_NAME` | Claude CLI binary name or absolute path |
|
|
56
|
+
| `CODEX_CLI_NAME` | Codex CLI binary name or absolute path |
|
|
57
|
+
| `GEMINI_CLI_NAME` | Gemini CLI binary name or absolute path |
|
|
58
|
+
| `MCP_CLAUDE_DEBUG` | Enable debug logging (`true`/`false`) |
|
|
59
|
+
|
|
60
|
+
## Release Process
|
|
61
|
+
|
|
62
|
+
See [docs/RELEASE_CHECKLIST.md](docs/RELEASE_CHECKLIST.md) for release instructions.
|
|
63
|
+
|
|
64
|
+
Uses semantic-release with Conventional Commits:
|
|
65
|
+
- `fix:` → patch release
|
|
66
|
+
- `feat:` → minor release
|
|
67
|
+
- `feat!:` or `BREAKING CHANGE:` → major release
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
MIT
|
package/README.ja.md
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# AI CLI MCP Server
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/ai-cli-mcp)
|
|
4
|
+
[](/CHANGELOG.md)
|
|
5
|
+
|
|
6
|
+
> **📦 パッケージ移行のお知らせ**: 本パッケージは旧名 `@mkxultra/claude-code-mcp` から `ai-cli-mcp` に名称変更されました。これは、複数のAI CLIツールのサポート拡大を反映したものです。
|
|
7
|
+
|
|
8
|
+
AI CLIツール(Claude, Codex, Gemini)をバックグラウンドプロセスとして実行し、権限処理を自動化するMCP(Model Context Protocol)サーバーです。
|
|
9
|
+
|
|
10
|
+
Cursorなどのエディタが、複雑な手順を伴う編集や操作に苦戦していることに気づいたことはありませんか?このサーバーは、強力な統合 `run` ツールを提供し、複数のAIエージェントを活用してコーディングタスクをより効果的に処理できるようにします。
|
|
11
|
+
|
|
12
|
+
<img src="assets/screenshot.png" width="300" alt="Screenshot">
|
|
13
|
+
|
|
14
|
+
## 概要
|
|
15
|
+
|
|
16
|
+
このMCPサーバーは、LLMがAI CLIツールと対話するためのツールを提供します。MCPクライアントと統合することで、LLMは以下のことが可能になります:
|
|
17
|
+
|
|
18
|
+
- すべての権限確認をスキップしてClaude CLIを実行(`--dangerously-skip-permissions` を使用)
|
|
19
|
+
- 自動承認モードでCodex CLIを実行(`--full-auto` を使用)
|
|
20
|
+
- 自動承認モードでGemini CLIを実行(`-y` を使用)
|
|
21
|
+
- 複数のAIモデルのサポート:
|
|
22
|
+
- Claude (sonnet, opus, haiku)
|
|
23
|
+
- Codex (gpt-5.2-codex, gpt-5.1-codex-mini, gpt-5.1-codex-max, など)
|
|
24
|
+
- Gemini (gemini-2.5-pro, gemini-2.5-flash, gemini-3-pro-preview, gemini-3-flash-preview)
|
|
25
|
+
- PID追跡によるバックグラウンドプロセスの管理
|
|
26
|
+
- ツールからの構造化された出力の解析と返却
|
|
27
|
+
|
|
28
|
+
### 使用例(高度な並行処理)
|
|
29
|
+
|
|
30
|
+
メインのエージェントに以下のように指示することで、複数のタスクを並行して実行させることができます。
|
|
31
|
+
|
|
32
|
+
> 以下の3つのタスクをacm mcp runでエージェントを起動して:
|
|
33
|
+
> 1. `sonnet` で `src/backend` のコードをリファクタリング
|
|
34
|
+
> 2. `gpt-5.2-codex` で `src/frontend` のユニットテストを作成
|
|
35
|
+
> 3. `gemini-2.5-pro` で `docs/` のドキュメントを更新
|
|
36
|
+
>
|
|
37
|
+
> 実行中はあなたはTODOリストを更新する作業を行ってください。それが終わったら `wait` ツールを使ってすべての完了を待機し、結果をまとめて報告してください。
|
|
38
|
+
|
|
39
|
+
### 使用例(コンテキストキャッシュの共有)
|
|
40
|
+
|
|
41
|
+
一度読み込んだ重いコンテキスト(大規模なコードベースやドキュメント)をセッションIDを使って再利用することで、コストを抑えながら複数のタスクを実行できます。
|
|
42
|
+
|
|
43
|
+
> 1. まず `acm mcp run` を使い、`opus` で `src/` 以下の全ファイルを読み込み、プロジェクトの構造を理解させてください。
|
|
44
|
+
> 2. `wait` ツールでこの処理の完了を待ち、結果から `session_id` を取得してください。
|
|
45
|
+
> 3. その `session_id` を使い、以下の2つのタスクを `acm mcp run` で並行して実行してください:
|
|
46
|
+
> - `sonnet` で `src/utils` のリファクタリング案を作成
|
|
47
|
+
> - `gpt-5.2-codex` で `README.md` にアーキテクチャの解説を追記
|
|
48
|
+
> 4. 最後に再び `wait` して、両方の結果をまとめてください。
|
|
49
|
+
|
|
50
|
+
## メリット
|
|
51
|
+
|
|
52
|
+
- **真の非同期マルチタスク**: エージェントの実行はバックグラウンドで行われ、即座に制御が戻ります。呼び出し元のAIは実行完了を待つことなく、並行して次のタスクの実行や別のエージェントの呼び出しを行うことができます。
|
|
53
|
+
- **CLI in CLI (Agent in Agent) の実現**: MCPをサポートするあらゆるIDEやCLIから、Claude CodeやCodexといった強力なCLIツールを直接呼び出せます。ホスト環境の制限を超えた、より広範で複雑なシステム操作や自動化が可能になります。
|
|
54
|
+
- **モデル・プロバイダの制約からの解放**: 特定のエコシステムに縛られることなく、Claude、Codex (GPT)、Geminiの中から、タスクに最適な「最強のモデル」や「コスト効率の良いモデル」を自由に選択・組み合わせて利用できます。
|
|
55
|
+
|
|
56
|
+
## 前提条件
|
|
57
|
+
|
|
58
|
+
利用したいAI CLIツールがローカル環境にインストールされ、正しく設定されていることが唯一の前提条件です。
|
|
59
|
+
|
|
60
|
+
- **Claude Code**: `claude doctor` が通り、`--dangerously-skip-permissions` での実行が承認済み(一度手動で実行してログイン・承認済み)であること。
|
|
61
|
+
- **Codex CLI**(オプション): インストール済みで、ログインなどの初期設定が完了していること。
|
|
62
|
+
- **Gemini CLI**(オプション): インストール済みで、ログインなどの初期設定が完了していること。
|
|
63
|
+
|
|
64
|
+
## インストールと使い方
|
|
65
|
+
|
|
66
|
+
推奨される使用方法は、`npx` を使用してインストールすることです。
|
|
67
|
+
|
|
68
|
+
### MCP設定ファイルでnpxを使用する場合:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
"ai-cli-mcp": {
|
|
72
|
+
"command": "npx",
|
|
73
|
+
"args": [
|
|
74
|
+
"-y",
|
|
75
|
+
"ai-cli-mcp@latest"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Claude CLI mcp add コマンドを使用する場合:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
claude mcp add ai-cli '{"name":"ai-cli","command":"npx","args":["-y","ai-cli-mcp@latest"]}'
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## 重要な初回セットアップ
|
|
87
|
+
|
|
88
|
+
### Claude CLIの場合:
|
|
89
|
+
|
|
90
|
+
**MCPサーバーがClaudeを使用する前に、一度手動で `--dangerously-skip-permissions` フラグを付けてClaude CLIを実行し、ログインして利用規約に同意する必要があります。**
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm install -g @anthropic-ai/claude-code
|
|
94
|
+
claude --dangerously-skip-permissions
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
プロンプトに従って同意してください。これが完了すると、MCPサーバーはこのフラグを使って非対話的に実行できるようになります。
|
|
98
|
+
|
|
99
|
+
### Codex CLIの場合:
|
|
100
|
+
|
|
101
|
+
**Codexの場合、ログインして必要な規約に同意していることを確認してください:**
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
codex login
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Gemini CLIの場合:
|
|
108
|
+
|
|
109
|
+
**Geminiの場合、ログインして認証情報を設定していることを確認してください:**
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
gemini auth login
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
macOSでは、これらのツールを初めて実行する際にフォルダへのアクセス許可を求められる場合があります。最初の実行が失敗しても、2回目以降は動作するはずです。
|
|
116
|
+
|
|
117
|
+
## MCPクライアントへの接続
|
|
118
|
+
|
|
119
|
+
サーバーのセットアップ後、MCPクライアント(CursorやWindsurfなど)の設定ファイル(`mcp.json` や `mcp_config.json`)に設定を追加してください。
|
|
120
|
+
|
|
121
|
+
ファイルが存在しない場合は作成し、`ai-cli-mcp` の設定を追加してください。
|
|
122
|
+
|
|
123
|
+
## 提供されるツール
|
|
124
|
+
|
|
125
|
+
このサーバーは以下のツールを公開しています:
|
|
126
|
+
|
|
127
|
+
### `run`
|
|
128
|
+
|
|
129
|
+
Claude CLI、Codex CLI、またはGemini CLIを使用してプロンプトを実行します。モデル名に基づいて適切なCLIが自動的に選択されます。
|
|
130
|
+
|
|
131
|
+
**引数:**
|
|
132
|
+
- `prompt` (string, 任意): AIエージェントに送信するプロンプト。`prompt` または `prompt_file` のいずれかが必須です。
|
|
133
|
+
- `prompt_file` (string, 任意): プロンプトを含むファイルへのパス。`prompt` または `prompt_file` のいずれかが必須です。絶対パス、または `workFolder` からの相対パスが指定可能です。
|
|
134
|
+
- `workFolder` (string, 必須): CLIを実行する作業ディレクトリ。絶対パスである必要があります。
|
|
135
|
+
- **モデル (Models):**
|
|
136
|
+
- **Ultra エイリアス:** `claude-ultra`, `codex-ultra` (自動的に high-reasoning に設定), `gemini-ultra`
|
|
137
|
+
- Claude: `sonnet`, `opus`, `haiku`
|
|
138
|
+
- Codex: `gpt-5.2-codex`, `gpt-5.1-codex-mini`, `gpt-5.1-codex-max`, `gpt-5.2`, `gpt-5.1`, `gpt-5`
|
|
139
|
+
- Gemini: `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-3-pro-preview`, `gemini-3-flash-preview`
|
|
140
|
+
- `reasoning_effort` (string, 任意): Codex専用。`model_reasoning_effort` を設定します(許容値: "low", "medium", "high")。
|
|
141
|
+
- `session_id` (string, 任意): 以前のセッションを再開するためのセッションID。対応モデル: haiku, sonnet, opus, gemini-2.5-pro, gemini-2.5-flash, gemini-3-pro-preview, gemini-3-flash-preview。
|
|
142
|
+
|
|
143
|
+
### `wait`
|
|
144
|
+
|
|
145
|
+
複数のAIエージェントプロセスの完了を待機し、結果をまとめて返します。指定されたすべてのPIDが終了するか、タイムアウトになるまでブロックします。
|
|
146
|
+
|
|
147
|
+
**引数:**
|
|
148
|
+
- `pids` (array of numbers, 必須): 待機するプロセスIDのリスト(`run` ツールから返されたもの)。
|
|
149
|
+
- `timeout` (number, 任意): 最大待機時間(秒)。デフォルトは180秒(3分)です。
|
|
150
|
+
|
|
151
|
+
### `list_processes`
|
|
152
|
+
|
|
153
|
+
実行中および完了したすべてのAIエージェントプロセスを、ステータス、PID、基本情報とともにリストアップします。
|
|
154
|
+
|
|
155
|
+
### `get_result`
|
|
156
|
+
|
|
157
|
+
PIDを指定して、AIエージェントプロセスの現在の出力とステータスを取得します。
|
|
158
|
+
|
|
159
|
+
**引数:**
|
|
160
|
+
- `pid` (number, 必須): `run` ツールによって返されたプロセスID。
|
|
161
|
+
|
|
162
|
+
### `kill_process`
|
|
163
|
+
|
|
164
|
+
PIDを指定して、実行中のAIエージェントプロセスを終了します。
|
|
165
|
+
|
|
166
|
+
**引数:**
|
|
167
|
+
- `pid` (number, 必須): 終了させるプロセスID。
|
|
168
|
+
|
|
169
|
+
## トラブルシューティング
|
|
170
|
+
|
|
171
|
+
- **"Command not found" (claude-code-mcp):** グローバルにインストールした場合、npmのグローバルbinディレクトリがシステムのPATHに含まれているか確認してください。`npx` を使用している場合、`npx` 自体が機能しているか確認してください。
|
|
172
|
+
- **"Command not found" (claude または ~/.claude/local/claude):** Claude CLIが正しくインストールされていることを確認してください。`claude/doctor` を実行するか、公式ドキュメントを確認してください。
|
|
173
|
+
- **権限の問題:** 「重要な初回セットアップ」の手順を実行したか確認してください。
|
|
174
|
+
- **サーバーからのJSONエラー:** `MCP_CLAUDE_DEBUG` が `true` の場合、エラーメッセージやログがMCPのJSON解析を妨げる可能性があります。通常動作時は `false` に設定してください。
|
|
175
|
+
|
|
176
|
+
## 開発者向け: ローカルセットアップと貢献
|
|
177
|
+
|
|
178
|
+
このサーバーを開発・貢献したい場合、またはクローンしたリポジトリから実行してテストしたい場合は、[Local Installation & Development Setup Guide](./docs/local_install.md) を参照してください。
|
|
179
|
+
|
|
180
|
+
## テスト
|
|
181
|
+
|
|
182
|
+
プロジェクトには包括的なテストスイートが含まれています:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# 全テストの実行
|
|
186
|
+
npm test
|
|
187
|
+
|
|
188
|
+
# ユニットテストのみ実行
|
|
189
|
+
npm run test:unit
|
|
190
|
+
|
|
191
|
+
# E2Eテストの実行(モック使用)
|
|
192
|
+
npm run test:e2e
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## 高度な設定(オプション)
|
|
196
|
+
|
|
197
|
+
通常の利用では設定不要ですが、CLIツールのパスをカスタマイズしたい場合やデバッグが必要な場合に使用できる環境変数です。
|
|
198
|
+
|
|
199
|
+
- `CLAUDE_CLI_NAME`: Claude CLIのバイナリ名または絶対パスを上書き(デフォルト: `claude`)
|
|
200
|
+
- `CODEX_CLI_NAME`: Codex CLIのバイナリ名または絶対パスを上書き(デフォルト: `codex`)
|
|
201
|
+
- `GEMINI_CLI_NAME`: Gemini CLIのバイナリ名または絶対パスを上書き(デフォルト: `gemini`)
|
|
202
|
+
- `MCP_CLAUDE_DEBUG`: デバッグログを有効化(`true` に設定すると詳細な出力が表示されます)
|
|
203
|
+
|
|
204
|
+
**CLI名の指定方法:**
|
|
205
|
+
- コマンド名のみ: `CLAUDE_CLI_NAME=claude-custom`
|
|
206
|
+
- 絶対パス: `CLAUDE_CLI_NAME=/path/to/custom/claude`
|
|
207
|
+
※ 相対パスは使用できません。
|
|
208
|
+
|
|
209
|
+
### カスタムCLIバイナリを使用する場合の設定例:
|
|
210
|
+
|
|
211
|
+
```json
|
|
212
|
+
"ai-cli-mcp": {
|
|
213
|
+
"command": "npx",
|
|
214
|
+
"args": [
|
|
215
|
+
"-y",
|
|
216
|
+
"ai-cli-mcp@latest"
|
|
217
|
+
],
|
|
218
|
+
"env": {
|
|
219
|
+
"CLAUDE_CLI_NAME": "claude-custom",
|
|
220
|
+
"CODEX_CLI_NAME": "codex-custom"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## ライセンス
|
|
226
|
+
|
|
227
|
+
MIT
|