@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/mcp",
3
- "version": "0.1.8",
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
@@ -13,7 +13,7 @@
13
13
  * `HttpError`. No global state beyond the env-derived config object.
14
14
  */
15
15
 
16
- const USER_AGENT = 'commonly-mcp/0.1.8';
16
+ const USER_AGENT = 'commonly-mcp/0.1.9';
17
17
 
18
18
  export class HttpError extends Error {
19
19
  constructor(status, body, message) {
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.8';
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 recent chat messages from a pod. `limit` is clamped server-side to [1, 50] (default 20).',
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
  {