local

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolConfigServerSchemaName = "local-config-server-get-schema"
	//nolint:lll
	ToolConfigServerSchemaInstructions = `` /* 153-byte string literal not displayed */
)
View Source
const (
	ToolConfigServerQueryName = "local-config-server-query"
	//nolint:lll
	ToolConfigServerQueryInstructions = `` /* 525-byte string literal not displayed */
)
View Source
const (
	ToolGetGraphqlManagementSchemaName         = "local-get-management-graphql-schema"
	ToolGetGraphqlManagementSchemaInstructions = `
		Get GraphQL's management schema for an Nhost development project running locally via the Nhost
		CLI. This tool is useful to properly understand how manage hasura metadata, migrations,
		permissions, remote schemas, etc.

		Use it before attempting to use ` + ToolManageGraphqlName
)
View Source
const (
	ToolGetGraphqlSchemaName = "local-get-graphql-schema"
	//nolint:lll
	ToolGetGraphqlSchemaInstructions = `` /* 224-byte string literal not displayed */
)
View Source
const (
	ToolManageGraphqlName         = "local-manage-graphql"
	ToolManageGraphqlInstructions = `` /* 1637-byte string literal not displayed */

)
View Source
const (
	ToolGraphqlQueryName = "local-graphql-query"
	//nolint:lll
	ToolGraphqlQueryInstructions = `` /* 299-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigServerGetSchemaRequest added in v0.0.7

type ConfigServerGetSchemaRequest struct {
	IncludeQueries   bool `json:"includeQueries"`
	IncludeMutations bool `json:"includeMutations"`
}

type ConfigServerQueryRequest

type ConfigServerQueryRequest struct {
	Query     string         `json:"query"`
	Variables map[string]any `json:"variables,omitempty"`
}

type GetGraphqlSchemaRequest

type GetGraphqlSchemaRequest struct {
	Role string `json:"role"`
}

type GraphqlQueryRequest

type GraphqlQueryRequest struct {
	Query     string         `json:"query"`
	Variables map[string]any `json:"variables,omitempty"`
	Role      string         `json:"role"`
}

type ManageGraphqlRequest added in v0.0.7

type ManageGraphqlRequest struct {
	Endpoint string `json:"endpoint"`
	Body     string `json:"body"`
}

type Tool

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

func NewTool

func NewTool(
	graphqlURL string,
	configServerURL string,
	interceptors ...func(ctx context.Context, req *http.Request) error,
) *Tool

func (*Tool) Register

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

Jump to

Keyboard shortcuts

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