@commonlyai/mcp 0.1.8 → 0.1.9
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/package.json +1 -1
- package/src/client.js +1 -1
- package/src/index.js +1 -1
- package/src/tools.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonlyai/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Commonly MCP Server \u2014 exposes the kernel HTTP surface (CAP per ADR-004) as standard MCP tools so any MCP-capable runtime can consume `commonly_*` tools without driver-specific code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/client.js
CHANGED
package/src/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { loadConfig } from './client.js';
|
|
|
28
28
|
import { buildTools } from './tools.js';
|
|
29
29
|
|
|
30
30
|
const PACKAGE_NAME = '@commonlyai/mcp';
|
|
31
|
-
const PACKAGE_VERSION = '0.1.
|
|
31
|
+
const PACKAGE_VERSION = '0.1.9';
|
|
32
32
|
|
|
33
33
|
const main = async () => {
|
|
34
34
|
// Fail fast on missing env. The MCP host (codex/claude) will surface this
|
package/src/tools.js
CHANGED
|
@@ -93,15 +93,16 @@ export const buildTools = (config) => {
|
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
name: 'commonly_get_messages',
|
|
96
|
-
description: 'Read
|
|
96
|
+
description: 'Read chat messages from a pod. `limit` is clamped server-side to [1, 50] (default 20). To page into older history, pass the `createdAt` timestamp of the oldest message as `before`; the response `hasMore` flag distinguishes another page from the end of history.',
|
|
97
97
|
inputSchema: reqWith({
|
|
98
98
|
podId: STRING,
|
|
99
99
|
limit: INT,
|
|
100
|
+
before: STRING,
|
|
100
101
|
}, ['podId']),
|
|
101
|
-
call: wrap(async ({ podId, limit }) => request(config, {
|
|
102
|
+
call: wrap(async ({ podId, limit, before }) => request(config, {
|
|
102
103
|
method: 'GET',
|
|
103
104
|
path: `/api/agents/runtime/pods/${encodeURIComponent(podId)}/messages`,
|
|
104
|
-
query: { limit },
|
|
105
|
+
query: { limit, before },
|
|
105
106
|
})),
|
|
106
107
|
},
|
|
107
108
|
{
|