importer

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

README

Agent Directory Importer

CI codecov Go Reference

The Agent Directory Importer is a Go library that makes it possible to import different types of records (for example MCP server definitions) into an Agent Directory node.

For detailed usage, see the Directory CLI reference.

Installation

go get github.com/agntcy/dir-importer

Development

Common tasks are exposed via Taskfile:

task build    # go build ./...
task test     # unit tests
task lint     # golangci-lint
task license  # license check
task tidy     # go mod tidy

To enable the pre-commit hook that runs golangci-lint on staged Go files:

task deps

Contributing

See CONTRIBUTING.md and CODE_OF_CONDUCT.md.

Security

Please report security vulnerabilities following the guidance in SECURITY.md.

Copyright Notice and License

Distributed under Apache 2.0 License. See LICENSE for more information. Copyright AGNTCY Contributors (https://github.com/agntcy)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new importer instance (MCP registry/file, A2A file, or Agent Skill directory).

Types

type Importer

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

Importer implements the Importer interface for MCP registry using a pipeline architecture.

func (*Importer) DryRun

func (i *Importer) DryRun(ctx context.Context) *types.ImportResult

func (*Importer) Run

func (i *Importer) Run(ctx context.Context) *types.ImportResult

Directories

Path Synopsis
toolhost
Package toolhost runs the enricher agent loop: chat completions (via ChatCompleter) with MCP tools over stdio (no third-party MCP host runtime).
Package toolhost runs the enricher agent loop: chat completions (via ChatCompleter) with MCP tools over stdio (no third-party MCP host runtime).
Package skill parses Agent Skills directories (https://agentskills.io/specification).
Package skill parses Agent Skills directories (https://agentskills.io/specification).

Jump to

Keyboard shortcuts

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