Learning
Kiro IDE

Haladó használat

MCP integráció, Kiro CLI, Autopilot keretezés, modellválasztás és spec-ek verziókövetése.

Haladó használat

MCP szerver integráció

Az MCP (Model Context Protocol) révén a Kiro külső eszközökhöz és adatforrásokhoz csatlakozhat. A konfiguráció a .kiro/mcp.json fájlban történik:

{
  "mcpServers": {
    "brave-search": {
      "command": "uvx",
      "args": ["mcp-server-brave-search"],
      "env": {
        "BRAVE_API_KEY": "your-api-key"
      },
      "disabled": false,
      "autoApprove": ["search"]
    },
    "github": {
      "command": "uvx",
      "args": ["mcp-server-github"],
      "env": {
        "GITHUB_TOKEN": "your-token"
      }
    },
    "supabase": {
      "command": "uvx",
      "args": ["mcp-server-supabase"],
      "env": {
        "SUPABASE_URL": "your-url",
        "SUPABASE_KEY": "your-key"
      }
    }
  }
}

MCP-eszközök elérhetők lesznek a chat-ben és a hook-okban:

Search the Brave Search MCP for the latest Next.js 15 breaking
changes and update our steering/tech.md accordingly.

Kiro CLI – terminálból való használat

# Projekt nyitása
kiro .

# Chat módban futtatás
kiro chat "Explain the authentication flow in this project"

# Spec generálás
kiro spec "Add email notification system for order status updates"

# Hook futtatás manuálisan
kiro hooks run "Auto Test Generator"

Autopilot mód haladó használata

Az Autopilot módban a Kiro jóváhagyás nélkül hajt végre változtatásokat. Érdemes pontosan definiálni, mire vonatkozik:

[Autopilot ON]
Generate unit tests for all functions in src/utils/ that
don't have corresponding test files yet. Use Vitest, match
the existing test patterns in the project.

Több modell kombinálása

A Kiro lehetővé teszi a modell explicit kiválasztását. Összetett architektúrális döntéseknél érdemes erősebb modellt kérni:

[Model: Claude Opus 4]
Review this entire service layer architecture and suggest
improvements for scalability. Consider our tech stack (Next.js,
Supabase) and the anticipated growth from 100 to 100,000 users.

Spec-ek verziókövetése

Mivel a spec fájlok a Git repóban élnek, visszakövethető, miért lett egy feature így implementálva:

git log .kiro/specs/user-auth/
git show HEAD~3:.kiro/specs/user-auth/requirements.md

Rövid összefoglaló

  • Az MCP integráció lehetővé teszi, hogy a Kiro külső eszközöket és adatforrásokat használjon.
  • A Kiro CLI lehetővé teszi a terminálból való agentic fejlesztést.
  • A spec fájlok Git-be kerülnek, ezért az architektúrális döntések visszakereshetők.

On this page