@moorchehai/mcp 1.3.3 → 1.3.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.
@@ -15,22 +15,6 @@ export const namespacesResource = {
15
15
  }
16
16
  };
17
17
 
18
- // Resource for namespace details
19
- export const namespaceDetailsResource = {
20
- uri: "moorcheh://namespace/{namespace_name}",
21
- description: "Details of a specific Moorcheh namespace",
22
- mimeType: "application/json",
23
- handler: async (uri) => {
24
- try {
25
- const namespace_name = uri.split('/').pop();
26
- const data = await makeApiRequest('GET', `${API_ENDPOINTS.namespaces}/${namespace_name}`);
27
- return JSON.stringify(data, null, 2);
28
- } catch (error) {
29
- return JSON.stringify({ error: error.message }, null, 2);
30
- }
31
- }
32
- };
33
-
34
18
  // Resource for API documentation
35
19
  export const apiDocsResource = {
36
20
  uri: "moorcheh://docs/api",
@@ -48,16 +32,21 @@ All requests require an API key in the \`x-api-key\` header.
48
32
  ## Endpoints
49
33
 
50
34
  ### Namespaces
51
- - **GET** \`/namespaces\` - List all namespaces
35
+ - **GET** \`/namespaces\` - List all namespaces (includes per-namespace metadata such as type, item_count, created_at)
52
36
  - **POST** \`/namespaces\` - Create new namespace
53
37
  - **DELETE** \`/namespaces/{name}\` - Delete namespace
54
- - **GET** \`/namespaces/{name}\` - Get namespace details
55
38
 
56
39
  ### Documents
57
40
  - **POST** \`/namespaces/{name}/documents\` - Upload text documents
41
+ - **GET** \`/namespaces/{name}/documents/fetch-text-data\` - List text/summary chunks (max 100 per response; text namespaces only)
58
42
  - **POST** \`/namespaces/{name}/vectors\` - Upload vector data
59
43
  - **POST** \`/namespaces/{name}/documents/delete\` - Delete specific documents
60
44
 
45
+ ### File storage (S3)
46
+ - **POST** \`/namespaces/{name}/upload-url\` - Get pre-signed URL to upload a file
47
+ - **GET** \`/namespaces/{name}/list-files\` - List raw file objects in storage (file_name, size, last_modified)
48
+ - **DELETE** \`/namespaces/{name}/delete-file\` - Delete one or more files from storage (JSON body: \`file_name\` and/or \`file_names\`)
49
+
61
50
  ### Search & AI
62
51
  - **POST** \`/search\` - Search across namespaces
63
52
  - **POST** \`/answer\` - Get AI-generated answers