@atrib/summarize 0.3.3 → 0.4.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/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
18
18
|
import { z } from 'zod';
|
|
19
|
-
import { resolveEnvContextId } from '@atrib/mcp';
|
|
19
|
+
import { resolveEnvContextId, logReadPrimitiveCall, extractRecordHashesFromMcpResult, } from '@atrib/mcp';
|
|
20
20
|
import { loadAllRecords } from './storage.js';
|
|
21
21
|
import { callLlm, resolveLlmConfig } from './llm.js';
|
|
22
22
|
import { buildSystemPrompt, buildUserMessage } from './prompt.js';
|
|
@@ -48,13 +48,13 @@ export async function createAtribSummarizeServer() {
|
|
|
48
48
|
'_local sidecar for semantic content. Records without a sidecar are ' +
|
|
49
49
|
'flagged so the LLM can be honest about impoverished input.',
|
|
50
50
|
inputSchema: SummarizeInput.shape,
|
|
51
|
-
}, async (rawInput) => {
|
|
51
|
+
}, async (rawInput) => logReadPrimitiveCall('summarize', rawInput, async () => {
|
|
52
52
|
const input = SummarizeInput.parse(rawInput);
|
|
53
53
|
const result = await handleSummarize(input);
|
|
54
54
|
return {
|
|
55
55
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
|
56
56
|
};
|
|
57
|
-
});
|
|
57
|
+
}, extractRecordHashesFromMcpResult));
|
|
58
58
|
return { mcp };
|
|
59
59
|
}
|
|
60
60
|
async function handleSummarize(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atrib/summarize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "MCP server for atrib. Synthesizes a narrative across N records via an OpenAI-compatible LLM so agents read context, not raw record bytes.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
13
13
|
"zod": "^3.25.76",
|
|
14
|
-
"@atrib/mcp": "0.
|
|
14
|
+
"@atrib/mcp": "0.10.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/node": "^25.8.0",
|