published on Monday, Nov 9, 2026 by pulumiverse
Grafanapublished on Monday, Nov 9, 2026 by pulumiverse
Manages a Grafana Assistant MCP server integration.
Example Usage
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}`,
},
});
const githubAppPrivateKey = config.require("githubAppPrivateKey");
// Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
const github = new grafana.assistant.McpServer("github", {
name: "GitHub",
scope: "tenant",
applications: ["assistant"],
configuration: {
url: "https://api.githubcopilot.com/mcp/",
},
githubApp: {
appId: 123456,
installationId: 12345678,
privateKey: githubAppPrivateKey,
},
});
import pulumi
import pulumiverse_grafana as grafana
config = pulumi.Config()
mcp_token = config.require("mcpToken")
example = grafana.assistant.McpServer("example",
name="Example MCP server",
scope="tenant",
applications=["assistant"],
configuration={
"url": "https://example.com/mcp/",
},
custom_headers={
"Authorization": f"Bearer {mcp_token}",
})
github_app_private_key = config.require("githubAppPrivateKey")
# Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
github = grafana.assistant.McpServer("github",
name="GitHub",
scope="tenant",
applications=["assistant"],
configuration={
"url": "https://api.githubcopilot.com/mcp/",
},
github_app={
"app_id": 123456,
"installation_id": 12345678,
"private_key": github_app_private_key,
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assistant"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
mcpToken := cfg.Require("mcpToken")
_, err := assistant.NewMcpServer(ctx, "example", &assistant.McpServerArgs{
Name: pulumi.String("Example MCP server"),
Scope: pulumi.String("tenant"),
Applications: pulumi.StringArray{
pulumi.String("assistant"),
},
Configuration: &assistant.McpServerConfigurationArgs{
Url: pulumi.String("https://example.com/mcp/"),
},
CustomHeaders: pulumi.StringMap{
"Authorization": pulumi.Sprintf("Bearer %v", mcpToken),
},
})
if err != nil {
return err
}
githubAppPrivateKey := cfg.Require("githubAppPrivateKey")
// Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
_, err = assistant.NewMcpServer(ctx, "github", &assistant.McpServerArgs{
Name: pulumi.String("GitHub"),
Scope: pulumi.String("tenant"),
Applications: pulumi.StringArray{
pulumi.String("assistant"),
},
Configuration: &assistant.McpServerConfigurationArgs{
Url: pulumi.String("https://api.githubcopilot.com/mcp/"),
},
GithubApp: &assistant.McpServerGithubAppArgs{
AppId: pulumi.Int(123456),
InstallationId: pulumi.Int(12345678),
PrivateKey: pulumi.String(pulumi.String(githubAppPrivateKey)),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var mcpToken = config.Require("mcpToken");
var example = new Grafana.Assistant.McpServer("example", new()
{
Name = "Example MCP server",
Scope = "tenant",
Applications = new[]
{
"assistant",
},
Configuration = new Grafana.Assistant.Inputs.McpServerConfigurationArgs
{
Url = "https://example.com/mcp/",
},
CustomHeaders =
{
{ "Authorization", $"Bearer {mcpToken}" },
},
});
var githubAppPrivateKey = config.Require("githubAppPrivateKey");
// Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
var github = new Grafana.Assistant.McpServer("github", new()
{
Name = "GitHub",
Scope = "tenant",
Applications = new[]
{
"assistant",
},
Configuration = new Grafana.Assistant.Inputs.McpServerConfigurationArgs
{
Url = "https://api.githubcopilot.com/mcp/",
},
GithubApp = new Grafana.Assistant.Inputs.McpServerGithubAppArgs
{
AppId = 123456,
InstallationId = 12345678,
PrivateKey = githubAppPrivateKey,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.assistant.McpServer;
import com.pulumi.grafana.assistant.McpServerArgs;
import com.pulumi.grafana.assistant.inputs.McpServerConfigurationArgs;
import com.pulumi.grafana.assistant.inputs.McpServerGithubAppArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var mcpToken = config.require("mcpToken");
var example = new McpServer("example", McpServerArgs.builder()
.name("Example MCP server")
.scope("tenant")
.applications("assistant")
.configuration(McpServerConfigurationArgs.builder()
.url("https://example.com/mcp/")
.build())
.customHeaders(Map.of("Authorization", String.format("Bearer %s", mcpToken)))
.build());
final var githubAppPrivateKey = config.require("githubAppPrivateKey");
// Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
var github = new McpServer("github", McpServerArgs.builder()
.name("GitHub")
.scope("tenant")
.applications("assistant")
.configuration(McpServerConfigurationArgs.builder()
.url("https://api.githubcopilot.com/mcp/")
.build())
.githubApp(McpServerGithubAppArgs.builder()
.appId(123456)
.installationId(12345678)
.privateKey(githubAppPrivateKey)
.build())
.build());
}
}
configuration:
mcpToken:
type: string
githubAppPrivateKey:
type: string
resources:
example:
type: grafana:assistant:McpServer
properties:
name: Example MCP server
scope: tenant
applications:
- assistant
configuration:
url: https://example.com/mcp/
customHeaders:
Authorization: Bearer ${mcpToken}
# Authenticate a GitHub MCP server with a GitHub App installation instead of a personal access token.
github:
type: grafana:assistant:McpServer
properties:
name: GitHub
scope: tenant
applications:
- assistant
configuration:
url: https://api.githubcopilot.com/mcp/
githubApp:
appId: 123456
installationId: 1.2345678e+07
privateKey: ${githubAppPrivateKey}
Example coming soon!
Create McpServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new McpServer(name: string, args: McpServerArgs, opts?: CustomResourceOptions);@overload
def McpServer(resource_name: str,
args: McpServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def McpServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
applications: Optional[Sequence[str]] = None,
configuration: Optional[McpServerConfigurationArgs] = None,
custom_headers: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
github_app: Optional[McpServerGithubAppArgs] = None,
name: Optional[str] = None)func NewMcpServer(ctx *Context, name string, args McpServerArgs, opts ...ResourceOption) (*McpServer, error)public McpServer(string name, McpServerArgs args, CustomResourceOptions? opts = null)
public McpServer(String name, McpServerArgs args)
public McpServer(String name, McpServerArgs args, CustomResourceOptions options)
type: grafana:assistant:McpServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "grafana_assistant_mcp_server" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args McpServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args McpServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args McpServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args McpServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args McpServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mcpServerResource = new Grafana.Assistant.McpServer("mcpServerResource", new()
{
Scope = "string",
Applications = new[]
{
"string",
},
Configuration = new Grafana.Assistant.Inputs.McpServerConfigurationArgs
{
BuiltinId = "string",
ToolApprovalPolicies =
{
{ "string", "string" },
},
ToolPreferences =
{
{ "string", "string" },
},
Url = "string",
},
CustomHeaders =
{
{ "string", "string" },
},
Description = "string",
Enabled = false,
GithubApp = new Grafana.Assistant.Inputs.McpServerGithubAppArgs
{
AppId = 0,
InstallationId = 0,
PrivateKey = "string",
PrivateKeyHash = "string",
},
Name = "string",
});
example, err := assistant.NewMcpServer(ctx, "mcpServerResource", &assistant.McpServerArgs{
Scope: pulumi.String("string"),
Applications: pulumi.StringArray{
pulumi.String("string"),
},
Configuration: &assistant.McpServerConfigurationArgs{
BuiltinId: pulumi.String("string"),
ToolApprovalPolicies: pulumi.StringMap{
"string": pulumi.String("string"),
},
ToolPreferences: pulumi.StringMap{
"string": pulumi.String("string"),
},
Url: pulumi.String("string"),
},
CustomHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
GithubApp: &assistant.McpServerGithubAppArgs{
AppId: pulumi.Int(0),
InstallationId: pulumi.Int(0),
PrivateKey: pulumi.String("string"),
PrivateKeyHash: pulumi.String("string"),
},
Name: pulumi.String("string"),
})
resource "grafana_assistant_mcp_server" "mcpServerResource" {
lifecycle {
create_before_destroy = true
}
scope = "string"
applications = ["string"]
configuration = {
builtin_id = "string"
tool_approval_policies = {
"string" = "string"
}
tool_preferences = {
"string" = "string"
}
url = "string"
}
custom_headers = {
"string" = "string"
}
description = "string"
enabled = false
github_app = {
app_id = 0
installation_id = 0
private_key = "string"
private_key_hash = "string"
}
name = "string"
}
var mcpServerResource = new McpServer("mcpServerResource", McpServerArgs.builder()
.scope("string")
.applications("string")
.configuration(McpServerConfigurationArgs.builder()
.builtinId("string")
.toolApprovalPolicies(Map.of("string", "string"))
.toolPreferences(Map.of("string", "string"))
.url("string")
.build())
.customHeaders(Map.of("string", "string"))
.description("string")
.enabled(false)
.githubApp(McpServerGithubAppArgs.builder()
.appId(0)
.installationId(0)
.privateKey("string")
.privateKeyHash("string")
.build())
.name("string")
.build());
mcp_server_resource = grafana.assistant.McpServer("mcpServerResource",
scope="string",
applications=["string"],
configuration={
"builtin_id": "string",
"tool_approval_policies": {
"string": "string",
},
"tool_preferences": {
"string": "string",
},
"url": "string",
},
custom_headers={
"string": "string",
},
description="string",
enabled=False,
github_app={
"app_id": 0,
"installation_id": 0,
"private_key": "string",
"private_key_hash": "string",
},
name="string")
const mcpServerResource = new grafana.assistant.McpServer("mcpServerResource", {
scope: "string",
applications: ["string"],
configuration: {
builtinId: "string",
toolApprovalPolicies: {
string: "string",
},
toolPreferences: {
string: "string",
},
url: "string",
},
customHeaders: {
string: "string",
},
description: "string",
enabled: false,
githubApp: {
appId: 0,
installationId: 0,
privateKey: "string",
privateKeyHash: "string",
},
name: "string",
});
type: grafana:assistant:McpServer
properties:
applications:
- string
configuration:
builtinId: string
toolApprovalPolicies:
string: string
toolPreferences:
string: string
url: string
customHeaders:
string: string
description: string
enabled: false
githubApp:
appId: 0
installationId: 0
privateKey: string
privateKeyHash: string
name: string
scope: string
McpServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The McpServer resource accepts the following input properties:
- Scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - Applications List<string>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - Configuration
Pulumiverse.
Grafana. Assistant. Inputs. Mcp Server Configuration - MCP server configuration.
- Custom
Headers Dictionary<string, string> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- Description string
- Optional description.
- Enabled bool
- Whether the resource is enabled.
- Github
App Pulumiverse.Grafana. Assistant. Inputs. Mcp Server Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - Name string
- The MCP server integration name.
- Scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - Applications []string
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - Configuration
Mcp
Server Configuration Args - MCP server configuration.
- Custom
Headers map[string]string - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- Description string
- Optional description.
- Enabled bool
- Whether the resource is enabled.
- Github
App McpServer Github App Args - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - Name string
- The MCP server integration name.
- scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - applications list(string)
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration object
- MCP server configuration.
- custom_
headers map(string) - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description string
- Optional description.
- enabled bool
- Whether the resource is enabled.
- github_
app object - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name string
- The MCP server integration name.
- scope String
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - applications List<String>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration - MCP server configuration.
- custom
Headers Map<String,String> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description String
- Optional description.
- enabled Boolean
- Whether the resource is enabled.
- github
App McpServer Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name String
- The MCP server integration name.
- scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - applications string[]
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration - MCP server configuration.
- custom
Headers {[key: string]: string} - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description string
- Optional description.
- enabled boolean
- Whether the resource is enabled.
- github
App McpServer Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name string
- The MCP server integration name.
- scope str
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - applications Sequence[str]
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration Args - MCP server configuration.
- custom_
headers Mapping[str, str] - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description str
- Optional description.
- enabled bool
- Whether the resource is enabled.
- github_
app McpServer Github App Args - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name str
- The MCP server integration name.
- scope String
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user). - applications List<String>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration Property Map
- MCP server configuration.
- custom
Headers Map<String> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description String
- Optional description.
- enabled Boolean
- Whether the resource is enabled.
- github
App Property Map - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name String
- The MCP server integration name.
Outputs
All input properties are implicitly available as output properties. Additionally, the McpServer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing McpServer Resource
Get an existing McpServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: McpServerState, opts?: CustomResourceOptions): McpServer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
applications: Optional[Sequence[str]] = None,
configuration: Optional[McpServerConfigurationArgs] = None,
custom_headers: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
github_app: Optional[McpServerGithubAppArgs] = None,
name: Optional[str] = None,
scope: Optional[str] = None) -> McpServerfunc GetMcpServer(ctx *Context, name string, id IDInput, state *McpServerState, opts ...ResourceOption) (*McpServer, error)public static McpServer Get(string name, Input<string> id, McpServerState? state, CustomResourceOptions? opts = null)public static McpServer get(String name, Output<String> id, McpServerState state, CustomResourceOptions options)resources: existingMcpServer: type: grafana:assistant:McpServer get: id: ${id}import {
to = grafana_assistant_mcp_server.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state McpServerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state McpServerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state McpServerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state McpServerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Applications List<string>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - Configuration
Pulumiverse.
Grafana. Assistant. Inputs. Mcp Server Configuration - MCP server configuration.
- Custom
Headers Dictionary<string, string> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- Description string
- Optional description.
- Enabled bool
- Whether the resource is enabled.
- Github
App Pulumiverse.Grafana. Assistant. Inputs. Mcp Server Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - Name string
- The MCP server integration name.
- Scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- Applications []string
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - Configuration
Mcp
Server Configuration Args - MCP server configuration.
- Custom
Headers map[string]string - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- Description string
- Optional description.
- Enabled bool
- Whether the resource is enabled.
- Github
App McpServer Github App Args - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - Name string
- The MCP server integration name.
- Scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- applications list(string)
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration object
- MCP server configuration.
- custom_
headers map(string) - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description string
- Optional description.
- enabled bool
- Whether the resource is enabled.
- github_
app object - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name string
- The MCP server integration name.
- scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- applications List<String>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration - MCP server configuration.
- custom
Headers Map<String,String> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description String
- Optional description.
- enabled Boolean
- Whether the resource is enabled.
- github
App McpServer Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name String
- The MCP server integration name.
- scope String
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- applications string[]
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration - MCP server configuration.
- custom
Headers {[key: string]: string} - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description string
- Optional description.
- enabled boolean
- Whether the resource is enabled.
- github
App McpServer Github App - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name string
- The MCP server integration name.
- scope string
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- applications Sequence[str]
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration
Mcp
Server Configuration Args - MCP server configuration.
- custom_
headers Mapping[str, str] - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description str
- Optional description.
- enabled bool
- Whether the resource is enabled.
- github_
app McpServer Github App Args - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name str
- The MCP server integration name.
- scope str
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
- applications List<String>
- Applications where this resource applies. Valid values:
assistant,loop,all. Defaults to all applications when unset. - configuration Property Map
- MCP server configuration.
- custom
Headers Map<String> - Custom HTTP headers sent to the MCP server. Values are write-only and not returned by the API.
- description String
- Optional description.
- enabled Boolean
- Whether the resource is enabled.
- github
App Property Map - GitHub App installation credentials, used instead of a personal access token for
tenantscoped GitHub MCP servers (https://api.githubcopilot.com/mcporhttps://<HOSTNAME>.ghe.com/mcp). The Assistant mints short-lived installation tokens from these credentials and uses them in place of anyAuthorizationcustom header. All three attributes are required when the block is set. Removing the block clears the credentials. - name String
- The MCP server integration name.
- scope String
- Whether the resource is visible to the whole tenant (
tenant) or only the creating user (user).
Supporting Types
McpServerConfiguration, McpServerConfigurationArgs
- Builtin
Id string - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- Tool
Approval Dictionary<string, string>Policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - Tool
Preferences Dictionary<string, string> - Tool preferences keyed by tool name (
enabledordisabled). - Url string
- MCP server URL.
- Builtin
Id string - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- Tool
Approval map[string]stringPolicies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - Tool
Preferences map[string]string - Tool preferences keyed by tool name (
enabledordisabled). - Url string
- MCP server URL.
- builtin_
id string - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- tool_
approval_ map(string)policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - tool_
preferences map(string) - Tool preferences keyed by tool name (
enabledordisabled). - url string
- MCP server URL.
- builtin
Id String - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- tool
Approval Map<String,String>Policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - tool
Preferences Map<String,String> - Tool preferences keyed by tool name (
enabledordisabled). - url String
- MCP server URL.
- builtin
Id string - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- tool
Approval {[key: string]: string}Policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - tool
Preferences {[key: string]: string} - Tool preferences keyed by tool name (
enabledordisabled). - url string
- MCP server URL.
- builtin_
id str - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- tool_
approval_ Mapping[str, str]policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - tool_
preferences Mapping[str, str] - Tool preferences keyed by tool name (
enabledordisabled). - url str
- MCP server URL.
- builtin
Id String - Built-in provider ID (e.g. cursor). When set, tools are provided locally.
- tool
Approval Map<String>Policies - Tool approval policies keyed by tool name (
autoApprove,alwaysAsk, or empty for default). - tool
Preferences Map<String> - Tool preferences keyed by tool name (
enabledordisabled). - url String
- MCP server URL.
McpServerGithubApp, McpServerGithubAppArgs
- App
Id int - The GitHub App ID.
- Installation
Id int - The ID of the GitHub App installation on your organization.
- Private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- Private
Key stringHash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- App
Id int - The GitHub App ID.
- Installation
Id int - The ID of the GitHub App installation on your organization.
- Private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- Private
Key stringHash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- app_
id number - The GitHub App ID.
- installation_
id number - The ID of the GitHub App installation on your organization.
- private_
key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- private_
key_ stringhash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- app
Id Integer - The GitHub App ID.
- installation
Id Integer - The ID of the GitHub App installation on your organization.
- private
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- private
Key StringHash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- app
Id number - The GitHub App ID.
- installation
Id number - The ID of the GitHub App installation on your organization.
- private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- private
Key stringHash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- app_
id int - The GitHub App ID.
- installation_
id int - The ID of the GitHub App installation on your organization.
- private_
key str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- private_
key_ strhash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
- app
Id Number - The GitHub App ID.
- installation
Id Number - The ID of the GitHub App installation on your organization.
- private
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GitHub App private key in PEM format. Terraform sends it to the API but never stores it in state.
- private
Key StringHash - SHA-256 hash of the private key Terraform last sent, used to detect key changes in configuration. A key changed outside Terraform is not detected, because the API never returns the key.
Import
terraform import grafana_assistant_mcp_server.name "{{ id }}"
After importing a server that uses githubApp, the first plan shows an update to github_app.private_key_hash, because the write-only private key isn’t stored in state. Applying it resends the key, which the Assistant treats as a credential change: it rebuilds the MCP client and clears the server’s cached tool list.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Grafanapublished on Monday, Nov 9, 2026 by pulumiverse