codepage-bridge-mcp 0.1.0 → 0.1.6
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +2 -10
- package/README.md +81 -764
- package/README_CN.md +161 -584
- package/dist/src/core.d.ts +3 -2
- package/dist/src/core.js +46 -18
- package/dist/src/core.js.map +1 -1
- package/dist/src/filesystem/cache.d.ts +1 -2
- package/dist/src/filesystem/cache.js +9 -17
- package/dist/src/filesystem/cache.js.map +1 -1
- package/dist/src/limits.d.ts +2 -0
- package/dist/src/limits.js +17 -0
- package/dist/src/limits.js.map +1 -0
- package/dist/src/tools/grep.js +81 -28
- package/dist/src/tools/grep.js.map +1 -1
- package/dist/src/tools/read.js +5 -0
- package/dist/src/tools/read.js.map +1 -1
- package/dist/src/tools/write.js +1 -1
- package/dist/src/tools/write.js.map +1 -1
- package/install/install-unix.sh +29 -0
- package/install/install-windows.ps1 +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
param(
|
|
2
|
+
[string]$ServerName = 'codepage-bridge',
|
|
3
|
+
[string]$Scope = 'user'
|
|
4
|
+
)
|
|
5
|
+
|
|
6
|
+
$ErrorActionPreference = 'Stop'
|
|
7
|
+
|
|
8
|
+
function Require-Command($name) {
|
|
9
|
+
if (-not (Get-Command $name -ErrorAction SilentlyContinue)) {
|
|
10
|
+
throw "Required command not found: $name"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
Require-Command node
|
|
15
|
+
Require-Command claude
|
|
16
|
+
|
|
17
|
+
Write-Host "[1/2] Registering Codepage Bridge from npm..."
|
|
18
|
+
try { claude mcp remove $ServerName --scope $Scope | Out-Null } catch {}
|
|
19
|
+
claude mcp add --scope $Scope $ServerName -- npx -y codepage-bridge-mcp
|
|
20
|
+
|
|
21
|
+
Write-Host "[2/2] Verifying MCP connection..."
|
|
22
|
+
claude mcp get $ServerName
|
|
23
|
+
|
|
24
|
+
Write-Host ""
|
|
25
|
+
Write-Host "Next required steps:" -ForegroundColor Yellow
|
|
26
|
+
Write-Host "1. Merge examples/claude-config/settings.fragment.json into ~/.claude/settings.json"
|
|
27
|
+
Write-Host "2. Add examples/minimal-project/CLAUDE.md to your project or ~/.claude/CLAUDE.md"
|
|
28
|
+
Write-Host "3. Add a .encoding-rules file to each legacy-encoded project"
|
|
29
|
+
Write-Host "4. Start a new Claude Code session and verify it uses mcp__codepage-bridge__Read/Grep/Edit/Write"
|