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.
@@ -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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codepage-bridge-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.6",
4
4
  "description": "Encoding-transparent MCP file tools for legacy codepages in Claude Code",
5
5
  "license": "MIT",
6
6
  "type": "module",