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 +4 -4
- data/lib/kairos_mcp/tools/knowledge_update.rb +16 -3
- data/lib/kairos_mcp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ff86076f5769d3e1a773ad792416fddb4198df5c979159fafc353ec49a57bc0
|
|
4
|
+
data.tar.gz: b05464fc1d1830246de471e5964444035de03249638c1bb2b8746d272e51f506
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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("
|
|
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("
|
|
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"
|
data/lib/kairos_mcp/version.rb
CHANGED