friday-mcp-v2 3.0.6 → 3.0.7

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.
@@ -2056,7 +2056,7 @@ const tools = [
2056
2056
  },
2057
2057
  {
2058
2058
  name: "select_block",
2059
- description: "Select block(s). Index is 0-based flattened.",
2059
+ description: "Select block(s) by ref, section, blockType, or contains.",
2060
2060
  inputSchema: {
2061
2061
  type: "object",
2062
2062
  properties: {
@@ -2599,7 +2599,7 @@ async function handleUpdateBlocksTool(args, toolName) {
2599
2599
  // Headless モードで target: "selected" はエラー
2600
2600
  if (mode === 'headless' && target === 'selected') {
2601
2601
  return {
2602
- content: [{ type: "text", text: "❌ target:'selected' はエディタ接続時のみ使用可能です。index を指定してください。" }],
2602
+ content: [{ type: "text", text: "❌ target:'selected' はエディタ接続時のみ使用可能です。ref+snapshotId, section, blockType, contains 等を指定してください。" }],
2603
2603
  isError: true,
2604
2604
  };
2605
2605
  }
@@ -2610,7 +2610,7 @@ async function handleUpdateBlocksTool(args, toolName) {
2610
2610
  (headingLevel && headingContains);
2611
2611
  if (!hasTarget && !(appendToEnd && insertOnly)) {
2612
2612
  return {
2613
- content: [{ type: "text", text: "❌ ターゲットが指定されていません。\ntarget, index, indices, section, blockType, contains 等のいずれかを指定してください。" }],
2613
+ content: [{ type: "text", text: "❌ ターゲットが指定されていません。\nref+snapshotId, section, blockType, contains 等のいずれかを指定してください。" }],
2614
2614
  isError: true,
2615
2615
  };
2616
2616
  }
@@ -3333,7 +3333,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3333
3333
  // BUG-3: select_block では selected は使用不可
3334
3334
  if (tp.target === "selected") {
3335
3335
  return {
3336
- content: [{ type: "text", text: "❌ select_block では selected は使用できません。index, blockType, range 等を指定してください。" }],
3336
+ content: [{ type: "text", text: "❌ select_block では selected は使用できません。ref+snapshotId, blockType, contains 等を指定してください。" }],
3337
3337
  isError: true,
3338
3338
  };
3339
3339
  }
@@ -3346,7 +3346,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3346
3346
  (headingLevel && headingContains);
3347
3347
  if (!hasTarget) {
3348
3348
  return {
3349
- content: [{ type: "text", text: "❌ ターゲットが指定されていません。index, blockType, range, heading, contains 等のいずれかを指定してください。" }],
3349
+ content: [{ type: "text", text: "❌ ターゲットが指定されていません。ref+snapshotId, blockType, heading, contains 等のいずれかを指定してください。" }],
3350
3350
  isError: true,
3351
3351
  };
3352
3352
  }
@@ -3981,7 +3981,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3981
3981
 
3982
3982
  if (mode === 'headless' && target === 'selected') {
3983
3983
  return {
3984
- content: [{ type: "text", text: "❌ target:'selected' はエディタ接続時のみ使用可能です。index を指定してください。" }],
3984
+ content: [{ type: "text", text: "❌ target:'selected' はエディタ接続時のみ使用可能です。ref+snapshotId, section, blockType, contains 等を指定してください。" }],
3985
3985
  isError: true,
3986
3986
  };
3987
3987
  }
@@ -3991,7 +3991,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3991
3991
  (headingLevel && headingContains);
3992
3992
  if (!hasTarget) {
3993
3993
  return {
3994
- content: [{ type: "text", text: "❌ ターゲットが指定されていません。\ntarget, index, indices, section, blockType, contains 等のいずれかを指定してください。" }],
3994
+ content: [{ type: "text", text: "❌ ターゲットが指定されていません。\nref+snapshotId, section, blockType, contains 等のいずれかを指定してください。" }],
3995
3995
  isError: true,
3996
3996
  };
3997
3997
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "friday-mcp-v2",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "WordPress MCP Server for Claude Code - REST API direct communication",
5
5
  "type": "module",
6
6
  "main": "dist/mcp-server.js",