kiro

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package kiro provides the Kiro IDE power adapter.

Kiro Powers are capability packages that bundle MCP servers, steering files, and hooks. They use dynamic keyword-based activation to load context efficiently.

Power structure:

power-name/
├── POWER.md           # Frontmatter + onboarding + steering
├── mcp.json           # MCP server configuration (optional)
└── steering/          # Workflow-specific guidance (optional)
    ├── workflow-a.md
    └── workflow-b.md

Index

Constants

View Source
const (
	// AdapterName is the identifier for this adapter.
	AdapterName = "kiro"

	// PowerFileName is the main power definition file.
	PowerFileName = "POWER.md"

	// MCPFileName is the MCP server configuration file.
	MCPFileName = "mcp.json"

	// SteeringDir is the directory for steering files.
	SteeringDir = "steering"
)

Variables

This section is empty.

Functions

func InstallPower

func InstallPower(power *core.Power) error

InstallPower installs a power to the user's powers directory.

func UserPowersPath

func UserPowersPath() (string, error)

UserPowersPath returns the path to the user's powers directory.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical Power and Kiro IDE power format.

func (*Adapter) GeneratePowerDir

func (a *Adapter) GeneratePowerDir(power *core.Power, outputDir string) ([]string, error)

GeneratePowerDir creates a complete Kiro power directory structure.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) ParsePowerDir

func (a *Adapter) ParsePowerDir(dir string) (*core.Power, error)

ParsePowerDir reads a Kiro power directory and returns a canonical Power.

type MCPConfig

type MCPConfig struct {
	MCPServers map[string]MCPServerConfig `json:"mcpServers"`
}

MCPConfig represents the mcp.json structure.

type MCPServerConfig

type MCPServerConfig struct {
	Command string            `json:"command,omitempty"`
	Args    []string          `json:"args,omitempty"`
	Env     map[string]string `json:"env,omitempty"`
	URL     string            `json:"url,omitempty"`
}

MCPServerConfig represents an MCP server in mcp.json.

Jump to

Keyboard shortcuts

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