UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

159 lines (158 loc) 5.33 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Grafana Assistant MCP server integration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const config = new pulumi.Config(); * const mcpToken = config.require("mcpToken"); * const example = new grafana.assistant.McpServer("example", { * name: "Example MCP server", * scope: "tenant", * applications: ["assistant"], * configuration: { * url: "https://example.com/mcp/", * }, * customHeaders: { * Authorization: `Bearer ${mcpToken}`, * }, * }); * ``` * * ## Import * * ```sh * terraform import grafana_assistant_mcp_server.name "{{ id }}" * ``` */ export declare class McpServer extends pulumi.CustomResource { /** * Get an existing McpServer resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: McpServerState, opts?: pulumi.CustomResourceOptions): McpServer; /** * Returns true if the given object is an instance of McpServer. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is McpServer; /** * Applications where this resource applies. Valid values: `assistant`, `loop`, `all`. Defaults to all applications when unset. */ readonly applications: pulumi.Output<string[]>; /** * MCP server configuration. */ readonly configuration: pulumi.Output<outputs.assistant.McpServerConfiguration | undefined>; /** * Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API. */ readonly customHeaders: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Optional description. */ readonly description: pulumi.Output<string | undefined>; /** * Whether the resource is enabled. */ readonly enabled: pulumi.Output<boolean>; /** * The MCP server integration name. */ readonly name: pulumi.Output<string>; /** * Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`). */ readonly scope: pulumi.Output<string>; /** * Create a McpServer resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: McpServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering McpServer resources. */ export interface McpServerState { /** * Applications where this resource applies. Valid values: `assistant`, `loop`, `all`. Defaults to all applications when unset. */ applications?: pulumi.Input<pulumi.Input<string>[]>; /** * MCP server configuration. */ configuration?: pulumi.Input<inputs.assistant.McpServerConfiguration>; /** * Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API. */ customHeaders?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Optional description. */ description?: pulumi.Input<string>; /** * Whether the resource is enabled. */ enabled?: pulumi.Input<boolean>; /** * The MCP server integration name. */ name?: pulumi.Input<string>; /** * Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`). */ scope?: pulumi.Input<string>; } /** * The set of arguments for constructing a McpServer resource. */ export interface McpServerArgs { /** * Applications where this resource applies. Valid values: `assistant`, `loop`, `all`. Defaults to all applications when unset. */ applications?: pulumi.Input<pulumi.Input<string>[]>; /** * MCP server configuration. */ configuration?: pulumi.Input<inputs.assistant.McpServerConfiguration>; /** * Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API. */ customHeaders?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Optional description. */ description?: pulumi.Input<string>; /** * Whether the resource is enabled. */ enabled?: pulumi.Input<boolean>; /** * The MCP server integration name. */ name?: pulumi.Input<string>; /** * Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`). */ scope: pulumi.Input<string>; }