Documentation
¶
Index ¶
- func FetchNPMReadme(ctx context.Context, packageName, outputPath string) error
- func FetchReadme(ctx context.Context, rawURL, outputPath string) error
- func GenerateLattice(ctx context.Context, dir string, cfgs map[string]config.Server, g *graph.Graph) error
- func ParseGitHubURL(rawURL string) (owner, repo, subpath, branch string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchNPMReadme ¶
FetchNPMReadme fetches the README of an NPM package and saves it to outputPath.
func FetchReadme ¶
FetchReadme downloads the README content (from subpath or root) and saves it to outputPath.
func GenerateLattice ¶
func GenerateLattice(ctx context.Context, dir string, cfgs map[string]config.Server, g *graph.Graph) error
GenerateLattice generates the `.mcp_lattice` folder containing skills, relations, and downloaded READMEs.
func ParseGitHubURL ¶
ParseGitHubURL parses a standard GitHub URL into (owner, repo, subpath, branch, error).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.