resources

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsulGuideRawURLs = []string{
	"https://github.com/hashicorp/consul/blob/main/website/content/api-docs",
	"https://github.com/hashicorp/consul/tree/main/website/content/docs",
}

Anonymous access could cause rate limiting, so we point to the raw files in the main branch, hence caching the URLs

Functions

func RegisterResources

func RegisterResources(hcServer *server.MCPServer, logger *log.Logger)

RegisterResources adds the new resource

Types

type ApiDoc

type ApiDoc struct {
	Name string
	URL  string
}

type GitHubAPIResponse

type GitHubAPIResponse struct {
	Payload struct {
		Tree struct {
			Items []GitHubFileInfo `json:"items"`
		} `json:"tree"`
	} `json:"payload"`
}

type GitHubFileInfo

type GitHubFileInfo struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	ContentType string `json:"contentType"`
}

Jump to

Keyboard shortcuts

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