@fractary/codex-mcp 0.10.3 → 0.10.6

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { CacheManager, StorageManager } from '@fractary/codex';
1
+ import { CodexClient } from '@fractary/codex';
2
2
 
3
3
  interface McpTool {
4
4
  name: string;
@@ -26,13 +26,6 @@ interface FetchToolArgs {
26
26
  branch?: string;
27
27
  noCache?: boolean;
28
28
  }
29
- interface SearchToolArgs {
30
- query: string;
31
- org?: string;
32
- project?: string;
33
- limit?: number;
34
- type?: string;
35
- }
36
29
  interface ListToolArgs {
37
30
  org?: string;
38
31
  project?: string;
@@ -41,6 +34,12 @@ interface ListToolArgs {
41
34
  interface CacheClearToolArgs {
42
35
  pattern: string;
43
36
  }
37
+ interface CacheStatsToolArgs {
38
+ json?: boolean;
39
+ }
40
+ interface CacheHealthToolArgs {
41
+ json?: boolean;
42
+ }
44
43
  interface ToolResult {
45
44
  content: Array<{
46
45
  type: 'text' | 'resource';
@@ -77,19 +76,11 @@ interface McpServerInfo {
77
76
  version: string;
78
77
  capabilities: McpCapabilities;
79
78
  }
80
- interface SearchResult {
81
- uri: string;
82
- title?: string;
83
- snippet?: string;
84
- score?: number;
85
- metadata?: Record<string, unknown>;
86
- }
87
79
 
88
80
  interface McpServerConfig {
89
81
  name?: string;
90
82
  version?: string;
91
- cache: CacheManager;
92
- storage: StorageManager;
83
+ client: CodexClient;
93
84
  }
94
85
  declare class McpServer {
95
86
  private config;
@@ -109,13 +100,14 @@ declare function createMcpServer(config: McpServerConfig): McpServer;
109
100
 
110
101
  declare const CODEX_TOOLS: McpTool[];
111
102
  interface ToolHandlerContext {
112
- cache: CacheManager;
113
- storage: StorageManager;
103
+ client: CodexClient;
114
104
  }
115
105
  declare function handleFetch(args: FetchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
116
- declare function handleSearch(args: SearchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
117
106
  declare function handleList(args: ListToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
118
107
  declare function handleCacheClear(args: CacheClearToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
108
+ declare function handleCacheStats(args: CacheStatsToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
109
+ declare function handleCacheHealth(args: CacheHealthToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
110
+ declare function handleFileSourcesList(ctx: ToolHandlerContext): Promise<ToolResult>;
119
111
  declare function handleToolCall(name: string, args: Record<string, unknown>, ctx: ToolHandlerContext): Promise<ToolResult>;
120
112
 
121
- export { CODEX_TOOLS, type CacheClearToolArgs, type FetchToolArgs, type ListToolArgs, type McpCapabilities, type McpResource, type McpResourceTemplate, McpServer, type McpServerConfig, type McpServerInfo, type McpTool, type ResourceContent, type SearchResult, type SearchToolArgs, type ToolHandlerContext, type ToolResult, createMcpServer, handleCacheClear, handleFetch, handleList, handleSearch, handleToolCall };
113
+ export { CODEX_TOOLS, type CacheClearToolArgs, type CacheHealthToolArgs, type CacheStatsToolArgs, type FetchToolArgs, type ListToolArgs, type McpCapabilities, type McpResource, type McpResourceTemplate, McpServer, type McpServerConfig, type McpServerInfo, type McpTool, type ResourceContent, type ToolHandlerContext, type ToolResult, createMcpServer, handleCacheClear, handleCacheHealth, handleCacheStats, handleFetch, handleFileSourcesList, handleList, handleToolCall };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractary/codex-mcp",
3
- "version": "0.10.3",
3
+ "version": "0.10.6",
4
4
  "description": "MCP server for Fractary Codex knowledge management",
5
5
  "keywords": [
6
6
  "codex",
@@ -50,7 +50,7 @@
50
50
  "prepublishOnly": "npm run build && npm run test"
51
51
  },
52
52
  "dependencies": {
53
- "@fractary/codex": "^0.12.0",
53
+ "@fractary/codex": "^0.12.10",
54
54
  "commander": "^11.1.0",
55
55
  "js-yaml": "^4.1.0"
56
56
  },