@2kw/ai-mcp-server 8.2.0 → 8.3.0-dev.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.
@@ -75,7 +75,7 @@ export function register(server, client) {
75
75
  });
76
76
  // ── list_agent_catalog ──────────────────────────────────────────────────
77
77
  server.tool("2kw_list_agent_catalog", "List published agents as id, name and description. This is the read a chat-only USER "
78
- + "key may perform; 2kw_list_agents carries the operator configuration and needs VIEWER or above.", {
78
+ + "key may perform; 2kw_list_agents carries the operator configuration and needs MEMBER or above.", {
79
79
  search: z.string().optional().describe("Filter agents by name"),
80
80
  page: z.number().optional().default(0).describe("Page number (0-based)"),
81
81
  size: z.number().optional().default(20).describe("Page size"),
@@ -332,7 +332,7 @@ export function register(server, client) {
332
332
  // ── list_agent_skills ───────────────────────────────────────────────────
333
333
  server.tool("2kw_list_agent_skills", "List the skills an agent's latest published version binds, in authored order. This is the "
334
334
  + "read a chat-only USER key may perform; 2kw_get_latest_agent_version carries the full version "
335
- + "and needs VIEWER or above. An agent with no published version lists none.", { agentId: z.string().describe("The agent ID") }, async ({ agentId }) => {
335
+ + "and needs MEMBER or above. An agent with no published version lists none.", { agentId: z.string().describe("The agent ID") }, async ({ agentId }) => {
336
336
  try {
337
337
  const { data } = await client.GET("/v1/agents/{agentId}/skills", {
338
338
  params: { path: { agentId } },
@@ -60,7 +60,7 @@ export function register(server, client) {
60
60
  }
61
61
  });
62
62
  // ── traces ──────────────────────────────────────────────────────────────
63
- server.tool("2kw_list_traces", "List recent traces in the org. Traces are aggregated by trace_id across all spans. Optional filters: source service, status code (OK/ERROR/UNSET, CSV for multiple), free-text search across trace id + span name + service + backbone.operation.", {
63
+ server.tool("2kw_list_traces", "List recent traces in the org. Traces are aggregated by trace_id across all spans. Optional filters: source service, status code (OK/ERROR/UNSET, CSV for multiple), free-text search across trace id + span name + service + backbone.operation, and a start-time range. Without from, the server lists the 7 days before to, or before now.", {
64
64
  sourceService: z.string().optional().describe("Filter by source_service"),
65
65
  statusCode: z
66
66
  .string()
@@ -70,6 +70,11 @@ export function register(server, client) {
70
70
  .string()
71
71
  .optional()
72
72
  .describe("Free-text search across trace id / span name / service / operation"),
73
+ from: z
74
+ .string()
75
+ .optional()
76
+ .describe("Start of time range (ISO-8601). Default: the 7 days before `to`, or before now"),
77
+ to: z.string().optional().describe("End of time range (ISO-8601)"),
73
78
  page: z.number().int().min(0).optional().describe("Page index (0-based)"),
74
79
  size: z.number().int().min(1).max(100).optional().describe("Page size"),
75
80
  }, async (params) => {
@@ -80,6 +85,8 @@ export function register(server, client) {
80
85
  sourceService: params.sourceService,
81
86
  statusCode: params.statusCode,
82
87
  search: params.search,
88
+ from: params.from,
89
+ to: params.to,
83
90
  page: params.page ?? 0,
84
91
  size: params.size ?? 20,
85
92
  },
@@ -129,13 +136,13 @@ export function register(server, client) {
129
136
  }
130
137
  });
131
138
  // ── sessions ────────────────────────────────────────────────────────────
132
- server.tool("2kw_list_trace_sessions", "List sessions (spans grouped by an exporter-stamped session id) in the org, with turn/error counts, duration, tokens and cost. Optional free-text search across session id and name, an exact session id match, and a start-time range. Each line starts with the session's own id, which 2kw_get_trace_session takes.", {
139
+ server.tool("2kw_list_trace_sessions", "List sessions (spans grouped by an exporter-stamped session id) in the org, with turn/error counts, duration, tokens and cost. Optional free-text search across session id and name, an exact session id match, and a start-time range. Without from, the server lists the 7 days before to, or before now. Each line starts with the session's own id, which 2kw_get_trace_session takes.", {
133
140
  search: z.string().optional().describe("Free-text search across session id and name"),
134
141
  sessionId: z
135
142
  .string()
136
143
  .optional()
137
144
  .describe("Exact match on the session.id the exporter stamped (slashes allowed)"),
138
- from: z.string().optional().describe("Start of time range (ISO-8601)"),
145
+ from: z.string().optional().describe("Start of time range (ISO-8601). Default: the 7 days before `to`, or before now"),
139
146
  to: z.string().optional().describe("End of time range (ISO-8601)"),
140
147
  page: z.number().int().min(0).optional().describe("Page index (0-based)"),
141
148
  size: z.number().int().min(1).max(100).optional().describe("Page size"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2kw/ai-mcp-server",
3
- "version": "8.2.0",
3
+ "version": "8.3.0-dev.4",
4
4
  "description": "MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, agents with a knowledge base, and cost observability. 199 tools for Claude Code, Cursor, and Windsurf.",
5
5
  "mcpName": "ai.2kw/mcp-server",
6
6
  "keywords": [