Skip to content

Commit 105e8b5

Browse files
committed
remove length limit
1 parent a0fb99e commit 105e8b5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/core/src/integrations/mcp-server/resultExtraction.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ function buildAllContentItemAttributes(content: unknown[]): Record<string, strin
4141
safeSet('name', item.name);
4242

4343
if (typeof item.text === 'string') {
44-
const text = item.text;
45-
const maxLength = 500;
46-
if (text.length > maxLength) {
47-
attributes[`${prefix}.content`] = `${text.slice(0, maxLength - 3)}...`;
48-
} else {
49-
attributes[`${prefix}.content`] = text;
50-
}
44+
attributes[`${prefix}.content`] = item.text;
5145
}
5246

5347
if (typeof item.data === 'string') {

0 commit comments

Comments
 (0)