@contentful/mcp-tools 0.12.5 → 0.12.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/README.md +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +606 -486
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,6 +146,7 @@ Each tool includes semantic annotations to help MCP clients understand tool beha
|
|
|
146
146
|
| | `space_to_space_param_collection` | Collect parameters for migration workflow |
|
|
147
147
|
| | `export_space` | Export space to file for migration |
|
|
148
148
|
| | `import_space` | Import space from exported file |
|
|
149
|
+
| **Usage** | `get_usages` | Get aggregated usage metrics for an organization, optionally filtered or grouped by space |
|
|
149
150
|
|
|
150
151
|
## Configuration
|
|
151
152
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8846,6 +8846,44 @@ declare class ContentfulMcpTools {
|
|
|
8846
8846
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
8847
8847
|
};
|
|
8848
8848
|
};
|
|
8849
|
+
/**
|
|
8850
|
+
* Get usage tools
|
|
8851
|
+
*/
|
|
8852
|
+
getUsageTools(): {
|
|
8853
|
+
getUsages: {
|
|
8854
|
+
title: string;
|
|
8855
|
+
description: string;
|
|
8856
|
+
inputParams: {
|
|
8857
|
+
organizationId: zod.ZodOptional<zod.ZodString>;
|
|
8858
|
+
metricKey: zod.ZodEnum<["api_call_cma", "api_call_cpa", "api_call_cda", "api_call_graphql", "asset_bandwidth", "functions_invocations", "ai_action_invocation", "ai_action_word_count", "ai_consumption_unit"]>;
|
|
8859
|
+
dateGte: zod.ZodString;
|
|
8860
|
+
dateLte: zod.ZodString;
|
|
8861
|
+
granularity: zod.ZodOptional<zod.ZodEnum<["P1D", "P1M"]>>;
|
|
8862
|
+
group: zod.ZodOptional<zod.ZodString>;
|
|
8863
|
+
filter: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
8864
|
+
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
8865
|
+
skip: zod.ZodOptional<zod.ZodNumber>;
|
|
8866
|
+
order: zod.ZodOptional<zod.ZodString>;
|
|
8867
|
+
};
|
|
8868
|
+
annotations: {
|
|
8869
|
+
readOnlyHint: boolean;
|
|
8870
|
+
destructiveHint: boolean;
|
|
8871
|
+
openWorldHint: boolean;
|
|
8872
|
+
};
|
|
8873
|
+
tool: (params: {
|
|
8874
|
+
metricKey: "api_call_cma" | "api_call_cpa" | "api_call_cda" | "api_call_graphql" | "asset_bandwidth" | "functions_invocations" | "ai_action_invocation" | "ai_action_word_count" | "ai_consumption_unit";
|
|
8875
|
+
dateGte: string;
|
|
8876
|
+
dateLte: string;
|
|
8877
|
+
filter?: Record<string, string | string[]> | undefined;
|
|
8878
|
+
organizationId?: string | undefined;
|
|
8879
|
+
skip?: number | undefined;
|
|
8880
|
+
limit?: number | undefined;
|
|
8881
|
+
order?: string | undefined;
|
|
8882
|
+
granularity?: "P1D" | "P1M" | undefined;
|
|
8883
|
+
group?: string | undefined;
|
|
8884
|
+
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
8885
|
+
};
|
|
8886
|
+
};
|
|
8849
8887
|
/**
|
|
8850
8888
|
* Get ExO experience fragment tools
|
|
8851
8889
|
*/
|