project

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolGetGraphqlSchemaName         = "project-get-graphql-schema"
	ToolGetGraphqlSchemaInstructions = `Get GraphQL schema for an Nhost project running in the Nhost Cloud.`
)
View Source
const (
	ToolGraphqlQueryName = "project-graphql-query"
	//nolint:lll
	ToolGraphqlQueryInstructions = `` /* 484-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGraphqlSchemaRequest

type GetGraphqlSchemaRequest struct {
	Role string `description:"role to use when executing queries. Default to user but make sure the user is aware" json:"role" required:"true"`
}

type GraphqlQueryRequest

type GraphqlQueryRequest struct {
	Query     string `description:"graphql query to perform"      json:"query"     required:"true"`
	Variables string `description:"variables to use in the query" json:"variables" required:"false"`

	Role string `` /* 289-byte string literal not displayed */
}

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

func NewTool

func NewTool(
	graphqlURL string,
	allowQueries []string,
	allowMutations []string,
	interceptors ...func(ctx context.Context, req *http.Request) error,
) *Tool

func (*Tool) Register

func (t *Tool) Register(mcpServer *server.Server) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL