@pairsystems/goodmem-mcp 0.1.21 → 0.1.22
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.js +22 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21115,7 +21115,7 @@ function _concatBytes(a, b) {
|
|
|
21115
21115
|
out.set(b, a.length);
|
|
21116
21116
|
return out;
|
|
21117
21117
|
}
|
|
21118
|
-
var BASED_ON_GOODMEM_COMMIT = "
|
|
21118
|
+
var BASED_ON_GOODMEM_COMMIT = "32cb977646b71534e78d81deebf1b303606584cc";
|
|
21119
21119
|
function isConfigured() {
|
|
21120
21120
|
return goodmemBaseUrl !== "";
|
|
21121
21121
|
}
|
|
@@ -22358,7 +22358,7 @@ function autoInferFromRegistry(registryType, args) {
|
|
|
22358
22358
|
}
|
|
22359
22359
|
var server = new McpServer({
|
|
22360
22360
|
name: "goodmem",
|
|
22361
|
-
version: "0.1.
|
|
22361
|
+
version: "0.1.22"
|
|
22362
22362
|
});
|
|
22363
22363
|
server.tool("goodmem_configure", "Configure GoodMem server connection. Call this before using other GoodMem tools if GOODMEM_BASE_URL and GOODMEM_API_KEY environment variables are not set. Session credentials override environment variables. For bootstrap workflows that need to call /v1/system/info or /v1/system/init before keys exist, api_key may be omitted; most other tools will return AuthenticationException until a real key is provided.", {
|
|
22364
22364
|
base_url: external_exports.string().describe("GoodMem server URL (e.g., https://your-server.example.com)"),
|
|
@@ -22444,7 +22444,7 @@ ${allModels.join("\n")}` }] };
|
|
|
22444
22444
|
});
|
|
22445
22445
|
server.tool("goodmem_client_info", "Return the MCP client package version and the goodmem server commit it was built against. No server connection required.", {}, { readOnlyHint: true, destructiveHint: false, openWorldHint: false }, async () => {
|
|
22446
22446
|
return { content: [{ type: "text", text: JSON.stringify({
|
|
22447
|
-
mcp_version: "0.1.
|
|
22447
|
+
mcp_version: "0.1.22",
|
|
22448
22448
|
based_on_goodmem_commit: BASED_ON_GOODMEM_COMMIT
|
|
22449
22449
|
}, null, 2) }] };
|
|
22450
22450
|
});
|
|
@@ -22695,7 +22695,7 @@ function registerTools() {
|
|
|
22695
22695
|
const result = await callApi("GET", `/v1/admin/retrieve-memory-log-policies/${encodeURIComponent(String(args.id))}`, void 0, query);
|
|
22696
22696
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
22697
22697
|
});
|
|
22698
|
-
server.tool("goodmem_admin_retrieve_memory_log_policies_list", "List RetrieveMemory log policies\n\nLists RetrieveMemory log policies with optional tombstone, active-time, name, label, sort, and pagination filters
|
|
22698
|
+
server.tool("goodmem_admin_retrieve_memory_log_policies_list", "List RetrieveMemory log policies\n\nLists RetrieveMemory log policies with optional tombstone, active-time, name, label, sort, and pagination filters.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).", {
|
|
22699
22699
|
include_deleted: external_exports.boolean().describe("Whether to include tombstoned policies. Also accepts include_deleted.").optional(),
|
|
22700
22700
|
name_filter: external_exports.string().describe("Case-insensitive substring filter on policy display names. Also accepts name_filter.").optional(),
|
|
22701
22701
|
active_at: external_exports.number().int().describe("Only return policies active at this millisecond epoch timestamp. Also accepts active_at.").optional(),
|
|
@@ -22736,7 +22736,7 @@ function registerTools() {
|
|
|
22736
22736
|
const result = await callApi("POST", `/v1/admin:transferInstanceOwnership`, body);
|
|
22737
22737
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
22738
22738
|
});
|
|
22739
|
-
server.tool("goodmem_apikeys_create", "Create a new API key\n\nIssues a new API key and returns its raw value exactly once. Omitted subject and authority_mode create a self-issued human key that inherits the subject's live authority. A SCOPED key requires a nonempty immutable ceiling, and every ceiling rule must be conservatively covered by both the subject's live authority and the issuing credential's effective authority. A scoped issuer can create only scoped children. SERVICE subjects require SCOPED mode and MANAGE_ACCESS on the service identity
|
|
22739
|
+
server.tool("goodmem_apikeys_create", "Create a new API key\n\nIssues a new API key and returns its raw value exactly once. Omitted subject and authority_mode create a self-issued human key that inherits the subject's live authority. A SCOPED key requires a nonempty immutable ceiling, and every ceiling rule must be conservatively covered by both the subject's live authority and the issuing credential's effective authority. A scoped issuer can create only scoped children. SERVICE subjects require SCOPED mode and MANAGE_ACCESS on the service identity.\n\nAUTHORIZATION: Requires CREATE_API_KEY on the proposed credential; subject and ceiling checks are repeated by the final insertion statement.", {
|
|
22740
22740
|
labels: external_exports.record(external_exports.string(), external_exports.string()).describe("Key-value pairs of metadata associated with the API key. Used for organization and filtering. At most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-].").optional(),
|
|
22741
22741
|
expires_at: external_exports.number().int().describe("Exclusive expiration timestamp in milliseconds since epoch. It must be later than valid_from, which defaults to issuance time; if omitted, the key does not expire.").optional(),
|
|
22742
22742
|
api_key_id: external_exports.string().describe("Optional client-provided UUID for idempotent creation. If not provided, server generates a new UUID. Returns ALREADY_EXISTS if ID is already in use.").optional(),
|
|
@@ -22917,7 +22917,7 @@ function registerTools() {
|
|
|
22917
22917
|
const result = await callApi("POST", `/v1/embedders`, body);
|
|
22918
22918
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
22919
22919
|
});
|
|
22920
|
-
server.tool("goodmem_embedders_delete", "Delete an embedder\n\nPermanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials
|
|
22920
|
+
server.tool("goodmem_embedders_delete", "Delete an embedder\n\nPermanently deletes an embedder configuration. This operation cannot be undone and removes the embedder record and securely deletes stored credentials.\n\nIMPORTANT: This does NOT invalidate or delete embeddings previously created with this embedder - existing embeddings remain accessible.\n\nCONFLICT: Returns HTTP 409 Conflict if the embedder is still referenced by a space. Requires DELETE_EMBEDDER on the requested embedder.", {
|
|
22921
22921
|
id: external_exports.string().describe("The unique identifier of the embedder to delete")
|
|
22922
22922
|
}, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }, async (args) => {
|
|
22923
22923
|
if (typeof args.id !== "string" || args.id === "") {
|
|
@@ -22939,7 +22939,7 @@ function registerTools() {
|
|
|
22939
22939
|
const result = await callApi("GET", `/v1/embedders/${encodeURIComponent(String(args.id))}`, void 0, query);
|
|
22940
22940
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
22941
22941
|
});
|
|
22942
|
-
server.tool("goodmem_embedders_list", "List embedders\n\nRetrieves a list of embedder configurations accessible to the caller, with optional filtering
|
|
22942
|
+
server.tool("goodmem_embedders_list", "List embedders\n\nRetrieves a list of embedder configurations accessible to the caller, with optional filtering.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).\n\nAUTHORIZATION: Requires LIST_EMBEDDER on the GoodMem instance. Each returned embedder must also be visible through READ_EMBEDDER; unauthorized embedders are filtered in PostgreSQL. The owner_id parameter filters that already-authorized result set and does not grant additional visibility. This is a read-only operation with no side effects.", {
|
|
22943
22943
|
owner_id: external_exports.string().describe("Filter the already-authorized result set by owner principal UUID. Omitting this parameter does not bypass per-embedder READ_EMBEDDER filtering.").optional(),
|
|
22944
22944
|
provider_type: external_exports.enum(["OPENAI", "VLLM", "TEI", "LLAMA_CPP", "VOYAGE", "COHERE", "JINA", "DASHSCOPE", "GEMINI"]).describe("Filter embedders by provider type. Allowed values match the ProviderType schema.").optional(),
|
|
22945
22945
|
label: external_exports.record(external_exports.string(), external_exports.string()).describe("Filter by label. Each key-value pair is sent as label[key]=value query parameter.").optional()
|
|
@@ -23039,7 +23039,7 @@ function registerTools() {
|
|
|
23039
23039
|
const result = await callApi("GET", `/v1/instance`, void 0);
|
|
23040
23040
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23041
23041
|
});
|
|
23042
|
-
server.tool("goodmem_llms_create", "Create a new LLM\n\nCreates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation
|
|
23042
|
+
server.tool("goodmem_llms_create", "Create a new LLM\n\nCreates a new LLM configuration for text generation services. LLMs represent connections to different language model API services (like OpenAI, vLLM, etc.) and include all the necessary configuration to use them for text generation.\n\nDUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another LLM exists with the same effective provider connection and model configuration for this owner after endpoint canonicalization and provider-default resolution. Equivalent credentials participate in the comparison. The api_path field defaults to '/chat/completions' if omitted.\n\nOWNER DEFAULTS: Owner defaults to the authenticated principal unless owner_id is provided; CREATE_LLM is evaluated against the proposed LLM and owner.", {
|
|
23043
23043
|
display_name: external_exports.string().describe("User-facing name of the LLM"),
|
|
23044
23044
|
description: external_exports.string().describe("Description of the LLM").optional(),
|
|
23045
23045
|
provider_type: external_exports.enum(["OPENAI", "LITELLM_PROXY", "OPEN_ROUTER", "DASHSCOPE", "VLLM", "OLLAMA", "LLAMA_CPP", "CUSTOM_OPENAI_COMPATIBLE"]).describe("Type of LLM provider (auto-inferred from model_identifier if omitted)").optional(),
|
|
@@ -23132,7 +23132,7 @@ function registerTools() {
|
|
|
23132
23132
|
const result = await callApi("POST", `/v1/llms`, body);
|
|
23133
23133
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23134
23134
|
});
|
|
23135
|
-
server.tool("goodmem_llms_delete", "Delete an LLM\n\nPermanently deletes an LLM configuration. This operation cannot be undone and removes the LLM record and securely deletes stored credentials
|
|
23135
|
+
server.tool("goodmem_llms_delete", "Delete an LLM\n\nPermanently deletes an LLM configuration. This operation cannot be undone and removes the LLM record and securely deletes stored credentials.\n\nIMPORTANT: This does NOT invalidate or delete any previously generated content using this LLM - existing generations remain accessible. Requires DELETE_LLM on the requested LLM.", {
|
|
23136
23136
|
id: external_exports.string().describe("The unique identifier of the LLM to delete")
|
|
23137
23137
|
}, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }, async (args) => {
|
|
23138
23138
|
if (typeof args.id !== "string" || args.id === "") {
|
|
@@ -23154,7 +23154,7 @@ function registerTools() {
|
|
|
23154
23154
|
const result = await callApi("GET", `/v1/llms/${encodeURIComponent(String(args.id))}`, void 0, query);
|
|
23155
23155
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23156
23156
|
});
|
|
23157
|
-
server.tool("goodmem_llms_list", "List LLMs\n\nRetrieves a list of LLM configurations accessible to the caller, with optional filtering
|
|
23157
|
+
server.tool("goodmem_llms_list", "List LLMs\n\nRetrieves a list of LLM configurations accessible to the caller, with optional filtering.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).\n\nAUTHORIZATION: Requires LIST_LLM on the GoodMem instance. Each returned LLM must also be visible through READ_LLM; unauthorized LLMs are filtered in PostgreSQL. The owner_id parameter filters that already-authorized result set and does not grant additional visibility. This is a read-only operation with no side effects.", {
|
|
23158
23158
|
owner_id: external_exports.string().describe("Filter the already-authorized result set by owner principal UUID. Omitting this parameter does not bypass per-LLM READ_LLM filtering.").optional(),
|
|
23159
23159
|
provider_type: external_exports.enum(["OPENAI", "LITELLM_PROXY", "OPEN_ROUTER", "DASHSCOPE", "VLLM", "OLLAMA", "LLAMA_CPP", "CUSTOM_OPENAI_COMPATIBLE"]).describe("Filter LLMs by provider type. Allowed values match the LLMProviderType schema.").optional(),
|
|
23160
23160
|
label: external_exports.record(external_exports.string(), external_exports.string()).describe("Filter by label. Each key-value pair is sent as label[key]=value query parameter.").optional()
|
|
@@ -23171,7 +23171,7 @@ function registerTools() {
|
|
|
23171
23171
|
const result = await callApi("GET", `/v1/llms`, void 0, query);
|
|
23172
23172
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23173
23173
|
});
|
|
23174
|
-
server.tool("goodmem_llms_update", "Update an LLM\n\nUpdates an existing LLM configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated
|
|
23174
|
+
server.tool("goodmem_llms_update", "Update an LLM\n\nUpdates an existing LLM configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated.\n\nSUPPORTED_MODALITIES UPDATE: If the array contains >=1 elements, it replaces the stored set; if empty or omitted, no change occurs and it does not count as an update by itself.\n\nIMPORTANT: providerType is IMMUTABLE after creation and cannot be changed. Requires UPDATE_LLM on the requested LLM.", {
|
|
23175
23175
|
id: external_exports.string().describe("The unique identifier of the LLM to update"),
|
|
23176
23176
|
display_name: external_exports.string().describe("Update display name").optional(),
|
|
23177
23177
|
description: external_exports.string().describe("Update description").optional(),
|
|
@@ -23429,7 +23429,7 @@ function registerTools() {
|
|
|
23429
23429
|
const result = await callApi("POST", `/v1/memories`, body);
|
|
23430
23430
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23431
23431
|
});
|
|
23432
|
-
server.tool("goodmem_memories_delete", "Delete a memory\n\nPermanently deletes a memory and its associated chunks. This operation cannot be undone and immediately removes the memory record from the database
|
|
23432
|
+
server.tool("goodmem_memories_delete", "Delete a memory\n\nPermanently deletes a memory and its associated chunks. This operation cannot be undone and immediately removes the memory record from the database.\n\nIDEMPOTENCY: This operation is safe to retry - may return NOT_FOUND if the memory was already deleted or never existed.\n\nAUTHORIZATION: Requires DELETE_MEMORY on the requested memory; authority may be granted through DIRECT_MEMBERS_OF its containing space. Side effects include permanent removal of the memory record and all associated chunk data.", {
|
|
23433
23433
|
id: external_exports.string().describe("The UUID of the memory to delete")
|
|
23434
23434
|
}, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }, async (args) => {
|
|
23435
23435
|
if (typeof args.id !== "string" || args.id === "") {
|
|
@@ -23438,7 +23438,7 @@ function registerTools() {
|
|
|
23438
23438
|
await callApi("DELETE", `/v1/memories/${encodeURIComponent(String(args.id))}`, void 0);
|
|
23439
23439
|
return { content: [{ type: "text", text: "Deleted successfully." }] };
|
|
23440
23440
|
});
|
|
23441
|
-
server.tool("goodmem_memories_get", "Get a memory by ID\n\nRetrieves a single memory by its ID
|
|
23441
|
+
server.tool("goodmem_memories_get", "Get a memory by ID\n\nRetrieves a single memory by its ID.\n\nAUTHORIZATION: Requires READ_MEMORY on the requested memory; authority may be granted directly or through DIRECT_MEMBERS_OF its containing space. This is a read-only operation with no side effects and is safe to retry. Returns NOT_FOUND if the memory or its parent space does not exist.", {
|
|
23442
23442
|
id: external_exports.string().describe("The UUID of the memory to retrieve"),
|
|
23443
23443
|
include_content: external_exports.boolean().describe("Whether to include the original content in the response (defaults to false).").optional(),
|
|
23444
23444
|
include_processing_history: external_exports.boolean().describe("Whether to include background job processing history in the response (defaults to false).").optional()
|
|
@@ -23703,7 +23703,7 @@ function registerTools() {
|
|
|
23703
23703
|
const result = await callApiNdjson("POST", `/v1/ping:stream`, body, void 0, args.timeout_sec ?? Math.ceil(((args.count || 100) * (args.interval_ms || 1e3) + (args.timeout_ms || 5e3) + 6e4) / 1e3));
|
|
23704
23704
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23705
23705
|
});
|
|
23706
|
-
server.tool("goodmem_rerankers_create", "Create a new reranker\n\nCreates a new reranker configuration for ranking search results. Rerankers represent connections to different reranking API services (like TEI, OpenAI, etc.) and include all the necessary configuration to use them for result ranking
|
|
23706
|
+
server.tool("goodmem_rerankers_create", "Create a new reranker\n\nCreates a new reranker configuration for ranking search results. Rerankers represent connections to different reranking API services (like TEI, OpenAI, etc.) and include all the necessary configuration to use them for result ranking.\n\nDUPLICATE DETECTION: Returns HTTP 409 Conflict (ALREADY_EXISTS) if another reranker exists with the same effective provider connection and model configuration for this owner after endpoint canonicalization and provider-default resolution. Equivalent credentials participate in the comparison.\n\nDEFAULTS: api_path defaults to '/v2/rerank' for Cohere and '/rerank' for other providers if omitted; supported_modalities defaults to [TEXT] if omitted.\n\nOWNER DEFAULTS: Owner defaults to the authenticated principal unless owner_id is provided; CREATE_RERANKER is evaluated against the proposed reranker and owner. This operation is NOT idempotent - each request creates a new reranker record.", {
|
|
23707
23707
|
display_name: external_exports.string().describe("User-facing name of the reranker"),
|
|
23708
23708
|
description: external_exports.string().describe("Description of the reranker").optional(),
|
|
23709
23709
|
provider_type: external_exports.enum(["VLLM", "TEI", "LLAMA_CPP", "VOYAGE", "COHERE", "JINA", "DASHSCOPE"]).describe("Type of reranking provider (auto-inferred from model_identifier if omitted)").optional(),
|
|
@@ -23769,7 +23769,7 @@ function registerTools() {
|
|
|
23769
23769
|
const result = await callApi("POST", `/v1/rerankers`, body);
|
|
23770
23770
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23771
23771
|
});
|
|
23772
|
-
server.tool("goodmem_rerankers_delete", "Delete a reranker\n\nPermanently deletes a reranker configuration. This operation cannot be undone and immediately removes the reranker record from the database
|
|
23772
|
+
server.tool("goodmem_rerankers_delete", "Delete a reranker\n\nPermanently deletes a reranker configuration. This operation cannot be undone and immediately removes the reranker record from the database.\n\nSIDE EFFECTS: Invalidates any cached references to this reranker; does not affect historical usage data or audit logs. Requires DELETE_RERANKER on the requested reranker. This operation is safe to retry - may return NOT_FOUND if already deleted.", {
|
|
23773
23773
|
id: external_exports.string().describe("The unique identifier of the reranker to delete")
|
|
23774
23774
|
}, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }, async (args) => {
|
|
23775
23775
|
if (typeof args.id !== "string" || args.id === "") {
|
|
@@ -23791,7 +23791,7 @@ function registerTools() {
|
|
|
23791
23791
|
const result = await callApi("GET", `/v1/rerankers/${encodeURIComponent(String(args.id))}`, void 0, query);
|
|
23792
23792
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23793
23793
|
});
|
|
23794
|
-
server.tool("goodmem_rerankers_list", "List rerankers\n\nRetrieves a list of reranker configurations accessible to the caller, with optional filtering
|
|
23794
|
+
server.tool("goodmem_rerankers_list", "List rerankers\n\nRetrieves a list of reranker configurations accessible to the caller, with optional filtering.\n\nIMPORTANT: Pagination is NOT supported - all matching results are returned. Results are ordered by created_at descending. Stored credentials are never included in list responses.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).\n\nAUTHORIZATION: Requires LIST_RERANKER on the GoodMem instance. Each returned reranker must also be visible through READ_RERANKER; unauthorized rerankers are filtered in PostgreSQL. The owner_id parameter filters that already-authorized result set and does not grant additional visibility.", {
|
|
23795
23795
|
owner_id: external_exports.string().describe("Filter the already-authorized result set by owner principal UUID. Omitting this parameter does not bypass per-reranker READ_RERANKER filtering.").optional(),
|
|
23796
23796
|
provider_type: external_exports.enum(["OPENAI", "VLLM", "TEI", "LLAMA_CPP", "VOYAGE", "COHERE", "JINA", "DASHSCOPE", "GEMINI"]).describe("Filter rerankers by provider type. Allowed values match the ProviderType schema.").optional(),
|
|
23797
23797
|
label: external_exports.record(external_exports.string(), external_exports.string()).describe("Filter by label. Each key-value pair is sent as label[key]=value query parameter.").optional()
|
|
@@ -23808,7 +23808,7 @@ function registerTools() {
|
|
|
23808
23808
|
const result = await callApi("GET", `/v1/rerankers`, void 0, query);
|
|
23809
23809
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23810
23810
|
});
|
|
23811
|
-
server.tool("goodmem_rerankers_update", "Update a reranker\n\nUpdates an existing reranker configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated
|
|
23811
|
+
server.tool("goodmem_rerankers_update", "Update a reranker\n\nUpdates an existing reranker configuration including display information, endpoint configuration, model parameters, credentials, and labels. All fields are optional - only specified fields will be updated.\n\nIMMUTABLE FIELDS: providerType and ownerId cannot be changed after creation.\n\nSUPPORTED_MODALITIES UPDATE: If the array contains >=1 elements, it replaces the stored set; if empty or omitted, no change occurs and it does not count as an update by itself. Returns ALREADY_EXISTS if update would create an equivalent reranker configuration for this owner after endpoint canonicalization and provider-default resolution (HTTP 409 Conflict / ALREADY_EXISTS). Requires UPDATE_RERANKER on the requested reranker. This operation is idempotent.", {
|
|
23812
23812
|
id: external_exports.string().describe("The unique identifier of the reranker to update"),
|
|
23813
23813
|
display_name: external_exports.string().describe("User-facing name of the reranker").optional(),
|
|
23814
23814
|
description: external_exports.string().describe("Description of the reranker").optional(),
|
|
@@ -23914,7 +23914,7 @@ function registerTools() {
|
|
|
23914
23914
|
const result = await callApi("GET", `/v1/service-identities/${encodeURIComponent(String(args.id))}`, void 0, query);
|
|
23915
23915
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23916
23916
|
});
|
|
23917
|
-
server.tool("goodmem_service_identities_list", "List service identities\n\nRequires LIST_SERVICE_IDENTITY on the GoodMem instance and READ_SERVICE_IDENTITY on each returned row. Owner and label filters, lifecycle filtering, authorization, and keyset pagination execute in PostgreSQL
|
|
23917
|
+
server.tool("goodmem_service_identities_list", "List service identities\n\nRequires LIST_SERVICE_IDENTITY on the GoodMem instance and READ_SERVICE_IDENTITY on each returned row. Owner and label filters, lifecycle filtering, authorization, and keyset pagination execute in PostgreSQL.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).", {
|
|
23918
23918
|
owner_principal_id: external_exports.string().describe("Exact current administrative-owner principal UUID").optional(),
|
|
23919
23919
|
include_deleted: external_exports.boolean().describe("Include readable permanent tombstones").optional(),
|
|
23920
23920
|
max_results: external_exports.number().int().describe("Page size; defaults to 50 and must be between 1 and 1000").optional(),
|
|
@@ -23972,7 +23972,7 @@ function registerTools() {
|
|
|
23972
23972
|
const result = await callApi("PUT", `/v1/service-identities/${encodeURIComponent(String(args.id))}`, body);
|
|
23973
23973
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
23974
23974
|
});
|
|
23975
|
-
server.tool("goodmem_spaces_create", "Create a new Space\n\nCreates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories
|
|
23975
|
+
server.tool("goodmem_spaces_create", "Create a new Space\n\nCreates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories.\n\nOWNER DEFAULTS: Owner defaults to the authenticated principal unless owner_id is provided; CREATE_SPACE is evaluated against the proposed space and owner.\n\nEMBEDDER REQUIREMENTS: At least one embedder configuration must be specified. Every referenced embedder must exist, and the caller must have EXECUTE_EMBEDDER on each one.\n\nDUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {owner_id, name} (case-sensitive). This operation is NOT idempotent.", {
|
|
23976
23976
|
name: external_exports.string().describe("The desired name for the space. Must be unique within the user's scope."),
|
|
23977
23977
|
labels: external_exports.record(external_exports.string(), external_exports.string()).describe("A set of key-value pairs to categorize or tag the space. Used for filtering and organizational purposes.").optional(),
|
|
23978
23978
|
space_embedders: external_exports.array(external_exports.object({
|
|
@@ -24015,7 +24015,7 @@ function registerTools() {
|
|
|
24015
24015
|
const result = await callApi("POST", `/v1/spaces`, body);
|
|
24016
24016
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
24017
24017
|
});
|
|
24018
|
-
server.tool("goodmem_spaces_delete", "Delete a space\n\nPermanently deletes a space and all associated content. This operation cannot be undone
|
|
24018
|
+
server.tool("goodmem_spaces_delete", "Delete a space\n\nPermanently deletes a space and all associated content. This operation cannot be undone.\n\nCASCADE DELETION: Removes the space record and cascades deletion to associated memories, chunks, and embedder associations. Requires DELETE_SPACE on the requested space. This operation is safe to retry and may return NOT_FOUND if the space was already deleted.", {
|
|
24019
24019
|
id: external_exports.string().describe("The unique identifier of the space to delete")
|
|
24020
24020
|
}, { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }, async (args) => {
|
|
24021
24021
|
if (typeof args.id !== "string" || args.id === "") {
|
|
@@ -24075,7 +24075,7 @@ function registerTools() {
|
|
|
24075
24075
|
const result = await callApi("POST", `/v1/spaces/${encodeURIComponent(String(args.id))}:transferOwnership`, body);
|
|
24076
24076
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
24077
24077
|
});
|
|
24078
|
-
server.tool("goodmem_spaces_update", "Update a space\n\nUpdates an existing space with new values for the specified fields. Only name and labels can be updated. Fields not included in the request remain unchanged
|
|
24078
|
+
server.tool("goodmem_spaces_update", "Update a space\n\nUpdates an existing space with new values for the specified fields. Only name and labels can be updated. Fields not included in the request remain unchanged.\n\nIMMUTABLE FIELDS: space_embedders, default_chunking_config, and ownerId cannot be modified after creation.\n\nNAME UNIQUENESS: Name must be unique per owner - returns ALREADY_EXISTS if name conflicts with an existing space. Requires UPDATE_SPACE on the requested space. This operation is idempotent.", {
|
|
24079
24079
|
id: external_exports.string().describe("The unique identifier of the space to update"),
|
|
24080
24080
|
name: external_exports.string().describe("The new name for the space.").optional(),
|
|
24081
24081
|
replace_labels: external_exports.record(external_exports.string(), external_exports.string()).describe("Labels to replace all existing labels. Mutually exclusive with merge_labels.").optional(),
|
|
@@ -24211,7 +24211,7 @@ function registerTools() {
|
|
|
24211
24211
|
const result = await callApi("GET", `/v1/users/${encodeURIComponent(String(args.user_id))}/enrollments/${encodeURIComponent(String(args.enrollment_id))}`, void 0);
|
|
24212
24212
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
24213
24213
|
});
|
|
24214
|
-
server.tool("goodmem_users_list", "List human users\n\nRequires LIST_USER on the GoodMem instance and READ_USER on each returned row. Authorization, label filtering, lifecycle filtering, and keyset pagination run in PostgreSQL. include_deleted expands the lifecycle view but grants no access. include_enrollment_summary requests non-secret bootstrap posture only on active rows where MANAGE_USER_ENROLLMENT is independently authorized
|
|
24214
|
+
server.tool("goodmem_users_list", "List human users\n\nRequires LIST_USER on the GoodMem instance and READ_USER on each returned row. Authorization, label filtering, lifecycle filtering, and keyset pagination run in PostgreSQL. include_deleted expands the lifecycle view but grants no access. include_enrollment_summary requests non-secret bootstrap posture only on active rows where MANAGE_USER_ENROLLMENT is independently authorized.\n\nLABEL FILTERS: Label filters accept either label.<key>=<value> or label[key]=value (for example, label.environment=production or label[environment]=production).", {
|
|
24215
24215
|
include_deleted: external_exports.boolean().describe("Include readable permanent tombstones").optional(),
|
|
24216
24216
|
include_enrollment_summary: external_exports.boolean().describe("Request non-secret enrollment posture on active rows where the caller also has MANAGE_USER_ENROLLMENT").optional(),
|
|
24217
24217
|
max_results: external_exports.number().int().describe("Page size; defaults to 50 and must be between 1 and 1000").optional(),
|