owner-clone-ai-mcp 1.77.1 → 1.78.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/domains/skills.js CHANGED
@@ -190,7 +190,7 @@ is_admin_published / allowed_plan_ids はAdmin権限がある場合のみ反映
190
190
  display_name: { type: 'string', description: '表示名(日本語OK)' },
191
191
  description: { type: 'string', description: 'スキルの用途説明' },
192
192
  prompt_template: { type: 'string', description: 'スキル実行時の指示テキスト。prepare_skill(Claude Code自律実行)で使う場合はMCPツール呼び出し指示を含めてよい。invoke_skill(サーバー実行)で使う場合はテキスト処理の指示のみ。' },
193
- parameters: { type: 'array', items: { type: 'object' }, description: 'パラメータ定義リスト。配列全体を置き換えるため、既存パラメータも含めて全て渡すこと [{name, description, required, default_value, input_type, options(input_type=select時の選択肢文字列配列), hidden}]' },
193
+ parameters: { type: 'array', items: { type: 'object' }, description: '⚠️ 配列全体を置き換える。1つ追加・変更するだけの場合も、まず get_skill の「パラメータ定義(生JSON)」をそのままコピーし、そこへ追加・変更して全件渡すこと(整形テキストから書き直すと options / input_type / hidden が失われて選択肢が壊れる)。[{name, description, required, default_value, input_type, options(input_type=select時の選択肢文字列配列), hidden}]' },
194
194
  knowledge_item_ids: { type: 'array', items: { type: 'string' }, description: '参照するナレッジのID一覧(UUID文字列)。配列全体を置き換える' },
195
195
  knowledge_folder_ids: { type: 'array', items: { type: 'string' }, description: '参照するナレッジフォルダID一覧(UUID文字列)。配列全体を置き換える' },
196
196
  preset_id: { type: 'integer', description: 'AIパートナーのID(整数)。null を渡すと解除' },
@@ -488,6 +488,12 @@ const handlers = {
488
488
  const paramStr = params.length
489
489
  ? params.map(p => ` - ${p.name}${p.required ? '(必須)' : '(任意)'}: ${p.description || ''}${p.default_value ? ` [デフォルト: ${p.default_value}]` : ''}`).join('\n')
490
490
  : ' なし';
491
+ // ⚠️ 2026-10-01: 上の整形は name / 必須任意 / description / default_value だけで、
492
+ // options(select の選択肢)・input_type・hidden が落ちていた。
493
+ // update_skill の parameters は **配列全体の置き換え** なので、1つ足すだけでも
494
+ // 取得できない options を推測で書き直すことになり、選択肢が壊れる危険があった。
495
+ // そのまま update_skill に渡せる生JSONを併記する。
496
+ const paramJson = params.length ? JSON.stringify(params, null, 2) : '[]';
491
497
  const isGoal = s.skill_type === 'agent_goal';
492
498
  return [
493
499
  `ID: ${s.id}`,
@@ -504,6 +510,9 @@ const handlers = {
504
510
  `プロンプトテンプレート:\n${s.prompt_template || 'なし'}`,
505
511
  ]),
506
512
  `パラメータ:\n${paramStr}`,
513
+ // ⚠️ update_skill の parameters は配列全体の置き換え。1つ足すときも**このJSONをそのままコピーして
514
+ // 末尾に追加**する。整形テキストから書き直すと options / input_type / hidden が失われる
515
+ `パラメータ定義(生JSON・update_skill にそのまま渡せる):\n${paramJson}`,
507
516
  `ナレッジ指定アイテム数: ${(s.knowledge_item_ids || []).length}件`,
508
517
  `ナレッジ指定フォルダ数: ${(s.knowledge_folder_ids || []).length}件`,
509
518
  `AIパートナー: ${s.preset_name || 'なし'}`,
package/index.js CHANGED
@@ -35,6 +35,8 @@ const HANDLERS = Object.assign({}, ...allDomains.map(d => d.handlers));
35
35
  // adminOnly ツール(標準AIパートナー操作など)は、接続キーがAdminの時だけ tools/list に出す。
36
36
  // 取得失敗時は安全側で「非Admin扱い=隠す」。ツール返却時は非標準フィールド adminOnly を除去。
37
37
  const { callApi } = require('./lib/api');
38
+ // 配布物の版数(serverInfo で返す)。ハードコードするとずれるので package.json から読む
39
+ const PKG_VERSION = require('./package.json').version;
38
40
  let _isAdminCache = null;
39
41
  async function keyIsAdmin() {
40
42
  if (_isAdminCache !== null) return _isAdminCache;
@@ -53,7 +55,12 @@ async function executeTool(name, args) {
53
55
  // ── MCPサーバー起動 ────────────────────────────────────────────
54
56
  async function main() {
55
57
  const server = new Server(
56
- { name: 'owner-clone-ai', version: '1.11.0' },
58
+ // ⚠️ 2026-10-01: ここが '1.11.0' で固定されており、package.json(実際の版)と
59
+ // ずれていた。MCPのハンドシェイクで返る版が実物と違うと、
60
+ // 「どの版が動いているか」を利用者側から確認できず、版数トラブルの切り分けができない
61
+ // (1.77.1 の公開直後にCDN伝播待ちで 404 になった件で実際に困った)。
62
+ // package.json から読むことで、以後ずれない。
63
+ { name: 'owner-clone-ai', version: PKG_VERSION },
57
64
  { capabilities: { tools: {} } }
58
65
  );
59
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owner-clone-ai-mcp",
3
- "version": "1.77.1",
3
+ "version": "1.78.0",
4
4
  "description": "MCP server for Owner Clone AI — exposes knowledge and agent presets to Claude Code",
5
5
  "main": "index.js",
6
6
  "bin": {