kairos-chain 3.28.3 → 3.28.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f3b4857e18283e4c80b9197c54e83a962ce2ee4b465b85de7969dc78244fb58
4
- data.tar.gz: 512356715a6db9e5110162b61a81017c99f00179dd8bbe9250fb23ba0f631981
3
+ metadata.gz: 1ff86076f5769d3e1a773ad792416fddb4198df5c979159fafc353ec49a57bc0
4
+ data.tar.gz: b05464fc1d1830246de471e5964444035de03249638c1bb2b8746d272e51f506
5
5
  SHA512:
6
- metadata.gz: 65b002260019464cc20531ab9c7c7d8d5ebecf293a21414e9af5ead16c00490b29495dc53bb8bbddc3d32d572697e91984644350149f93f587022c94b96bbf4c
7
- data.tar.gz: e673f6f2233ebc56ea8fb7247ed6e91bd05e61f5efd624ca8d48e814dbda70007f808ebd5db2199920f312ef0b978a576b1e3a5d910a2eb094a45f63c986097f
6
+ metadata.gz: 4ad7dc9c3f4bad3714e56698f4e97b797e084869ae207203f077b4d2fe8eb9295f763f82b832371c990a3cd157a8b051d95aae4ea9986560a1d8ac7820bc8661
7
+ data.tar.gz: 3a30fbbad2d529c1f3910e902baf8117faac9516e1b8361047c47800492657a2b7ec219a961e266360b9ace6031b86ccfd85ea60584006a1ddd614e55f681bbf
@@ -12,7 +12,9 @@ module KairosMcp
12
12
  end
13
13
 
14
14
  def description
15
- 'Create, update, or delete L1 knowledge skills. Changes are recorded with hash references to the blockchain.'
15
+ 'Create, update, or delete L1 knowledge skills. Changes are recorded with hash references to the blockchain. ' \
16
+ 'NOTE: MCP stdio transport may silently drop large arguments. Keep combined content + reason under ~2 KB. ' \
17
+ 'For larger L1 entries, trim prose or split into multiple entries.'
16
18
  end
17
19
 
18
20
  def category
@@ -105,14 +107,14 @@ module KairosMcp
105
107
  private
106
108
 
107
109
  def handle_create(provider, name, content, reason, create_subdirs)
108
- return text_content("Error: content is required for create") unless content && !content.empty?
110
+ return text_content(content_missing_error("create", content)) unless content && !content.empty?
109
111
 
110
112
  result = provider.create(name, content, reason: reason, create_subdirs: create_subdirs)
111
113
  format_result(result, 'created')
112
114
  end
113
115
 
114
116
  def handle_update(provider, name, content, reason)
115
- return text_content("Error: content is required for update") unless content && !content.empty?
117
+ return text_content(content_missing_error("update", content)) unless content && !content.empty?
116
118
 
117
119
  result = provider.update(name, content, reason: reason)
118
120
  format_result(result, 'updated')
@@ -123,6 +125,17 @@ module KairosMcp
123
125
  format_result(result, 'deleted')
124
126
  end
125
127
 
128
+ def content_missing_error(command, content)
129
+ if content.nil?
130
+ "Error: content is required for #{command}. " \
131
+ "The content argument arrived as nil — this often means the MCP transport silently dropped it " \
132
+ "because the combined argument size exceeded the client limit (~2 KB for stdio). " \
133
+ "Try trimming content and reason, or split into smaller entries."
134
+ else
135
+ "Error: content is required for #{command} (received empty string)"
136
+ end
137
+ end
138
+
126
139
  def format_result(result, action)
127
140
  if result[:success]
128
141
  output = "SUCCESS: Knowledge #{action}\n\n"
@@ -1,4 +1,4 @@
1
1
  module KairosMcp
2
- VERSION = "3.28.3"
2
+ VERSION = "3.28.4"
3
3
  CHANGELOG_URL = "https://github.com/masaomi/KairosChain_2026/blob/main/CHANGELOG.md"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kairos-chain
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.28.3
4
+ version: 3.28.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama