html2pptx-local-mcp 1.1.17 → 1.1.18

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.
@@ -186,7 +186,7 @@ npx skills add https://html2pptx.app --list
186
186
  npx skills add https://html2pptx.app
187
187
 
188
188
  # Install remote MCP and local MCP for edit-slide
189
- npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
189
+ npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
190
190
 
191
191
  const SKILL_INSTALL_COMMAND_JA = `# 使うエージェントのコマンドを選択
192
192
  # Claude Code
@@ -208,7 +208,7 @@ npx skills add https://html2pptx.app --list
208
208
  npx skills add https://html2pptx.app
209
209
 
210
210
  # Remote MCP と edit-slide 用 Local MCP をまとめて追加
211
- npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
211
+ npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
212
212
 
213
213
  const SKILL_INVOCATION_EXAMPLE = `# 例: Claude Code でスライド作成 → PPTX出力
214
214
 
@@ -244,7 +244,7 @@ const SKILL_AVAILABLE_LIST = [
244
244
  ];
245
245
 
246
246
  const MCP_INSTALL_EXAMPLE = `# Remote MCP と edit-slide 用 Local MCP をまとめて追加
247
- npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
247
+ npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`;
248
248
 
249
249
  const MCP_CONFIG_EXAMPLE = `// 方法2: 設定ファイルに手動追加
250
250
 
@@ -769,7 +769,7 @@ export const DOCS_COPY = {
769
769
  html2pptx_open_local_slide_editor({ "filePath": "html2pptx/slides.html" })
770
770
 
771
771
  # Claude Code local MCP setup
772
- npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
772
+ npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
773
773
  skillsLocalEditorFlowTitle: 'How the local editor flow works',
774
774
  skillsLocalEditorFlow: [
775
775
  { label: '1. Choose remote or local MCP', detail: 'Use remote MCP for normal PPTX export and catalog/docs tools. Use local stdio MCP or `html2pptx edit <file>` when the agent must open or edit a local `.html` / `.htm` file through edit-slide. If local MCP is missing, use direct CLI when the local editor app is running or ask before installing it.' },
@@ -793,7 +793,7 @@ npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
793
793
  ],
794
794
  skillsLocalEditorTroubleshootingTitle: 'Common issues',
795
795
  skillsLocalEditorTroubleshooting: [
796
- { issue: 'The local editor tool is not available', fix: 'Ask before adding local MCP with `npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`.' },
796
+ { issue: 'The local editor tool is not available', fix: 'Ask before adding local MCP with `npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`.' },
797
797
  { issue: '`html2pptx edit` cannot find the local editor', fix: 'Start `node scripts/dev-studio.mjs` first, or pass the active loopback URL with `--base-url http://localhost:<port>`. Hosted edit-slide is never used.' },
798
798
  { issue: 'The editor opens but the deck does not load', fix: 'Confirm the path is relative to the directory where the command was run and the file extension is `.html` or `.htm`.' },
799
799
  { issue: 'Changes do not save', fix: 'Keep the local MCP session running. Stopping it stops the localhost bridge.' },
@@ -853,7 +853,7 @@ echo 'HTML2PPTX_API_KEY=sk_live_xxxx' >> .env`,
853
853
  steps: [
854
854
  { title: 'Set up the remote server (recommended)', body: 'Run the following command in your terminal.', code: `claude mcp add --transport http html2pptx https://html2pptx.app/mcp` },
855
855
  { title: 'Manual setup for Claude Code', body: 'If the command above does not work, run the following to add the MCP server manually.', code: `claude mcp add html2pptx --transport http https://html2pptx.app/mcp` },
856
- { title: 'One-command remote + local setup', body: 'Installs the remote MCP for exports/docs/templates and the local MCP for edit-slide. It runs from the published package, so no repository checkout is required. The local MCP is registered through a stable launcher for reliable Claude Code startup.', code: `npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude` },
856
+ { title: 'One-command remote + local setup', body: 'Installs the remote MCP for exports/docs/templates and the local MCP for edit-slide. It runs from the published package, so no repository checkout is required. The local MCP is registered through a stable launcher for reliable Claude Code startup.', code: `npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude` },
857
857
  ],
858
858
  tip: 'To make the MCP server available across all projects, install it with the --scope user flag:\nclaude mcp add --scope user --transport http html2pptx https://html2pptx.app/mcp',
859
859
  },
@@ -863,7 +863,7 @@ echo 'HTML2PPTX_API_KEY=sk_live_xxxx' >> .env`,
863
863
  icon: 'https://cdn.jsdelivr.net/gh/glincker/thesvg@main/public/icons/openai/light.svg',
864
864
  steps: [
865
865
  { title: 'Run the CLI command (recommended)', body: 'Run the following command in your terminal. OAuth authentication will start automatically.', code: `codex mcp add html2pptx --url https://html2pptx.app/mcp` },
866
- { title: 'Optional local stdio MCP for edit-slide', body: 'Use this when Codex needs to launch local edit-slide for a `.html` file. It runs from the published package, so no repository checkout is required. The editor app and localhost bridge use free ports. Codex should ask before adding it because it modifies the local MCP configuration.', code: `codex mcp add html2pptx-local -- npx -y html2pptx-local-mcp@latest html2pptx-mcp` },
866
+ { title: 'Optional local stdio MCP for edit-slide', body: 'Use this when Codex needs to launch local edit-slide for a `.html` file. It runs from the published package, so no repository checkout is required. The editor app and localhost bridge use free ports. Codex should ask before adding it because it modifies the local MCP configuration.', code: `codex mcp add html2pptx-local -- npx -y -p html2pptx-local-mcp@latest html2pptx-mcp` },
867
867
  { title: 'Manual setup via codex.json', body: 'Alternatively, create or edit codex.json in your project root.', code: `{\n "mcpServers": {\n "html2pptx": {\n "type": "url",\n "url": "https://html2pptx.app/mcp"\n }\n }\n}` },
868
868
  ],
869
869
  },
@@ -1605,7 +1605,7 @@ echo 'HTML2PPTX_API_KEY=sk_live_xxxx' >> .env`,
1605
1605
  html2pptx_open_local_slide_editor({ "filePath": "html2pptx/slides.html" })
1606
1606
 
1607
1607
  # Claude Code local MCP setup
1608
- npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
1608
+ npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
1609
1609
  skillsLocalEditorFlowTitle: 'ローカル編集の仕組み',
1610
1610
  skillsLocalEditorFlow: [
1611
1611
  { label: '1. remote / local MCP を選ぶ', detail: '通常のPPTX出力、docs、template、usage 取得は remote MCP を使えます。ローカル `.html` / `.htm` を edit-slide で開いて編集する場合は local stdio MCP または `html2pptx edit <file>` を使います。local MCP が未設定なら、直接CLIを使うか、追加前にユーザーへ確認します。' },
@@ -1629,7 +1629,7 @@ npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude`,
1629
1629
  ],
1630
1630
  skillsLocalEditorTroubleshootingTitle: 'よくあるつまずき',
1631
1631
  skillsLocalEditorTroubleshooting: [
1632
- { issue: 'local editor tool が使えない', fix: '`npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude` で local MCP を追加してよいか、先にユーザーへ確認してください。' },
1632
+ { issue: 'local editor tool が使えない', fix: '`npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude` で local MCP を追加してよいか、先にユーザーへ確認してください。' },
1633
1633
  { issue: '`html2pptx edit` が local editor を見つけられない', fix: '`node scripts/dev-studio.mjs` を先に起動するか、`--base-url http://localhost:<port>` で loopback URL を渡してください。hosted edit-slide は使いません。' },
1634
1634
  { issue: '画面は開くがスライドが読み込まれない', fix: 'コマンドを実行したディレクトリからの相対パスになっているか、拡張子が `.html` / `.htm` かを確認してください。' },
1635
1635
  { issue: '編集内容が保存されない', fix: 'local MCP セッションを終了しないでください。bridge が止まると保存できません。' },
@@ -1689,7 +1689,7 @@ echo 'HTML2PPTX_API_KEY=sk_live_xxxx' >> .env`,
1689
1689
  steps: [
1690
1690
  { title: 'リモートサーバーをセットアップ(推奨)', body: 'ターミナルで以下のコマンドを実行してください。', code: `claude mcp add --transport http html2pptx https://html2pptx.app/mcp` },
1691
1691
  { title: '手動セットアップ', body: 'コマンドが使えない場合は、以下を実行してMCPサーバーを手動で追加してください。', code: `claude mcp add html2pptx --transport http https://html2pptx.app/mcp` },
1692
- { title: 'Remote + Local を1コマンドで追加', body: 'PPTX出力・docs・templates 用の remote MCP と、edit-slide 用の local MCP をまとめて追加します。公開パッケージから導入するため、リポジトリの checkout は不要です。local MCP は Claude Code が安定して起動できるよう stable launcher として登録されます。', code: `npx -y html2pptx-local-mcp@latest html2pptx-install-mcp claude` },
1692
+ { title: 'Remote + Local を1コマンドで追加', body: 'PPTX出力・docs・templates 用の remote MCP と、edit-slide 用の local MCP をまとめて追加します。公開パッケージから導入するため、リポジトリの checkout は不要です。local MCP は Claude Code が安定して起動できるよう stable launcher として登録されます。', code: `npx -y -p html2pptx-local-mcp@latest html2pptx-install-mcp claude` },
1693
1693
  ],
1694
1694
  tip: 'すべてのプロジェクトでMCPサーバーを使用するには --scope user フラグを追加してください:\nclaude mcp add --scope user --transport http html2pptx https://html2pptx.app/mcp',
1695
1695
  },
@@ -1699,7 +1699,7 @@ echo 'HTML2PPTX_API_KEY=sk_live_xxxx' >> .env`,
1699
1699
  icon: 'https://cdn.jsdelivr.net/gh/glincker/thesvg@main/public/icons/openai/light.svg',
1700
1700
  steps: [
1701
1701
  { title: 'CLIコマンドで追加(推奨)', body: 'ターミナルで以下のコマンドを実行してください。OAuth認証が自動的に開始されます。', code: `codex mcp add html2pptx --url https://html2pptx.app/mcp` },
1702
- { title: 'edit-slide 用 local stdio MCP(任意)', body: 'Codex がローカル `.html` を edit-slide で開く必要がある場合だけ追加します。公開パッケージから起動するため、リポジトリのcheckoutは不要です。エディタ本体と localhost bridge は空きポートを使います。MCP設定を変更するため、Codex は実行前にユーザー確認を取ってください。', code: `codex mcp add html2pptx-local -- npx -y html2pptx-local-mcp@latest html2pptx-mcp` },
1702
+ { title: 'edit-slide 用 local stdio MCP(任意)', body: 'Codex がローカル `.html` を edit-slide で開く必要がある場合だけ追加します。公開パッケージから起動するため、リポジトリのcheckoutは不要です。エディタ本体と localhost bridge は空きポートを使います。MCP設定を変更するため、Codex は実行前にユーザー確認を取ってください。', code: `codex mcp add html2pptx-local -- npx -y -p html2pptx-local-mcp@latest html2pptx-mcp` },
1703
1703
  { title: 'codex.json で手動セットアップ', body: 'コマンドが使えない場合は、プロジェクトルートの codex.json に以下を追加してください。', code: `{\n "mcpServers": {\n "html2pptx": {\n "type": "url",\n "url": "https://html2pptx.app/mcp"\n }\n }\n}` },
1704
1704
  ],
1705
1705
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html2pptx-local-mcp",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "type": "module",
5
5
  "description": "Local stdio MCP server for opening html2pptx slide HTML in the local edit-slide editor.",
6
6
  "bin": {
@@ -22,9 +22,7 @@ const INSTALL_ROOT = join(homedir(), '.html2pptx', 'local-mcp', VERSION);
22
22
  const LOCAL_PACKAGE_ROOT = join(INSTALL_ROOT, 'node_modules', 'html2pptx-local-mcp');
23
23
  const LOCAL_SERVER_ENTRY = join(LOCAL_PACKAGE_ROOT, 'mcp', 'pptx-studio-mcp-server.mjs');
24
24
 
25
- if (isMain()) {
26
- main();
27
- }
25
+ main();
28
26
 
29
27
  function main() {
30
28
  const target = process.argv[2] || 'claude';
@@ -46,10 +44,6 @@ function main() {
46
44
  console.log('Restart Claude Code if it was already running.');
47
45
  }
48
46
 
49
- function isMain() {
50
- return import.meta.url === new URL(process.argv[1], 'file:').href;
51
- }
52
-
53
47
  function installClaude() {
54
48
  runClaudeRemoteAdd();
55
49
  installLocalPackage();