@contentful/mcp-tools 0.12.5 → 0.12.7

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 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
@@ -64,6 +64,8 @@ interface ContentfulConfig {
64
64
  appId?: string;
65
65
  /** Version number to use for MCP tool calls */
66
66
  mcpVersion: string;
67
+ /** Which MCP server surface is issuing the call. Threaded into the client-identifying headers for Datadog attribution. Defaults to 'local' when unset. */
68
+ mcpSource?: 'local' | 'remote';
67
69
  /** Contentful CDA token for exporting only published content */
68
70
  deliveryToken?: string;
69
71
  /** Contentful Delivery API host (used with deliveryToken for custom CDA endpoints) */
@@ -8846,6 +8848,44 @@ declare class ContentfulMcpTools {
8846
8848
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
8847
8849
  };
8848
8850
  };
8851
+ /**
8852
+ * Get usage tools
8853
+ */
8854
+ getUsageTools(): {
8855
+ getUsages: {
8856
+ title: string;
8857
+ description: string;
8858
+ inputParams: {
8859
+ organizationId: zod.ZodOptional<zod.ZodString>;
8860
+ 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"]>;
8861
+ dateGte: zod.ZodString;
8862
+ dateLte: zod.ZodString;
8863
+ granularity: zod.ZodOptional<zod.ZodEnum<["P1D", "P1M"]>>;
8864
+ group: zod.ZodOptional<zod.ZodString>;
8865
+ filter: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>>;
8866
+ limit: zod.ZodOptional<zod.ZodNumber>;
8867
+ skip: zod.ZodOptional<zod.ZodNumber>;
8868
+ order: zod.ZodOptional<zod.ZodString>;
8869
+ };
8870
+ annotations: {
8871
+ readOnlyHint: boolean;
8872
+ destructiveHint: boolean;
8873
+ openWorldHint: boolean;
8874
+ };
8875
+ tool: (params: {
8876
+ 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";
8877
+ dateGte: string;
8878
+ dateLte: string;
8879
+ filter?: Record<string, string | string[]> | undefined;
8880
+ organizationId?: string | undefined;
8881
+ skip?: number | undefined;
8882
+ limit?: number | undefined;
8883
+ order?: string | undefined;
8884
+ granularity?: "P1D" | "P1M" | undefined;
8885
+ group?: string | undefined;
8886
+ }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
8887
+ };
8888
+ };
8849
8889
  /**
8850
8890
  * Get ExO experience fragment tools
8851
8891
  */