AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Gokin Sdk

mcp-ginkida-gokin-sdk · by ginkida

Go framework for building AI agents with tool use, multi-agent orchestration, and planning. Supports OpenAI, Gemini, Anthropic, and Ollama.

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add mcp-ginkida-gokin-sdk

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-ginkida-gokin-sdk)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
Archived

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Gokin Sdk? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

gokin-sdk

[](https://go.dev) [](LICENSE)

Go framework for building AI agents with tool use, multi-agent orchestration, planning, and reflection. Supports Gemini, OpenAI, Anthropic (Claude), and Ollama as LLM providers.

Features

  • Multi-provider — Gemini, OpenAI, Anthropic, and Ollama with unified interface
  • Tool use — 29 built-in tools (bash, file I/O, git, grep, web search, and more)
  • Multi-agent — Runner/Coordinator for parallel and sequential agent execution
  • Planning — Beam search, MCTS, and A* strategies for complex task decomposition
  • Reflection — Self-correcting agents via reflector middleware
  • Smart routing — Adaptive task routing with strategy learning
  • MCP support — Model Context Protocol for external tool servers
  • Sessions — Persistent conversation state with auto-save
  • Security — Command sandboxing, path validation, permission system

Installation

go get github.com/ginkida/gokin-sdk

Requires Go 1.23 or later.

Quick Start

package main

import (
    "context"
    "fmt"
    "os"

    sdk "github.com/ginkida/gokin-sdk"
    "github.com/ginkida/gokin-sdk/provider/gemini"
    "github.com/ginkida/gokin-sdk/tools"
)

func main() {
    ctx := context.Background()

    client, err := gemini.New(ctx, os.Getenv("GEMINI_API_KEY"), "gemini-2.0-flash")
    if err != nil {
        panic(err)
    }
    defer client.Close()

    workDir, _ := os.Getwd()
    registry := sdk.NewRegistry()
    registry.MustRegister(tools.NewBash(workDir))
    registry.MustRegister(tools.NewRead())
    registry.MustRegister(tools.NewGlob(workDir))
    registry.MustRegister(tools.NewGrep(workDir))

    agent, err := sdk.NewAgent("assistant", client, registry,
        sdk.WithSystemPrompt("You are a helpful coding assistant."),
        sdk.WithMaxTurns(20),
        sdk.WithOnText(func(text string) {
            fmt.Print(text)
        }),
    )
    if err != nil {
        panic(err)
    }

    result, err := agent.Run(ctx, "Find all Go files and count lines of code")
    if err != nil {
        panic(err)
    }
    fmt.Printf("\nDone in %d turns\n", result.Turns)
}

Provider Examples

Gemini

client, err := gemini.New(ctx, os.Getenv("GEMINI_API_KEY"), "gemini-2.0-flash")

OpenAI

client, err := openai.New(os.Getenv("OPENAI_API_KEY"), "gpt-4o")

Works with any OpenAI-compatible API (vLLM, LM Studio, Together AI, Groq):

client, err := openai.New(apiKey, "model-name", openai.WithBaseURL("http://localhost:8000"))

Anthropic (Claude)

client, err := anthropic.New(os.Getenv("ANTHROPIC_API_KEY"), "claude-sonnet-4-5-20250929")

Ollama (local)

client, err := ollama.New("http://localhost:11434", "llama3")

Multi-Agent Execution

runner := sdk.NewRunner(client, registry,
    sdk.WithRunnerMaxTurns(10),
)

coordinator := sdk.NewCoordinator(runner, 3) // max 3 parallel agents

results, err := coordinator.RunParallel(ctx, []sdk.AgentTask{
    {Prompt: "Count Go files", Type: sdk.AgentTypeBash, Description: "Count files"},
    {Prompt: "Find TODO comments", Type: sdk.AgentTypeExplore, Description: "Find TODOs"},
})

Built-in Tools

| Category | Tools | |----------|-------| | File I/O | read, write, edit, glob, grep, delete, move, copy, mkdir, list_dir, tree, diff | | Execution | bash, run_tests, batch | | Git | git, git_branch, git_pr | | Search | web_fetch, web_search, semantic_search | | Agent | ask_user, ask_agent, task, task_output, task_stop, coordinate | | Planning | plan_mode, shared_memory |

Project Structure

gokin-sdk/
├── provider/          # LLM providers (gemini, openai, anthropic, ollama)
├── tools/             # Built-in tool implementations
├── plan/              # Planning engine (beam, MCTS, A*)
├── context/           # Context management and summarization
├── config/            # Configuration and loading
├── security/          # Sandboxing and validation
├── permission/        # Permission system
├── mcp/               # Model Context Protocol client
├── memory/            # Error store, project learning
├── tasks/             # Background task management
├── audit/             # Audit logging
├── session.go         # Session persistence
├── middleware.go       # Reflector and middleware
├── pool.go            # Client connection pool
├── examples/          # Usage examples
│   ├── simple/        # Basic agent
│   ├── openai/        # OpenAI / compatible APIs
│   ├── anthropic/     # Anthropic provider
│   ├── multi_agent/   # Parallel agents
│   ├── planner/       # Plan-driven execution
│   ├── smart_router/  # Adaptive routing
│   ├── mcp/           # MCP integration
│   └── session/       # Session persistence
└── ...

Examples

See the [examples/](examples/) directory for runnable demos:

  • [simple](examples/simple/) — Basic agent with Gemini
  • [openai](examples/openai/) — OpenAI and compatible APIs (vLLM, Groq, etc.)
  • [anthropic](examples/anthropic/) — Using Claude as the provider
  • [multiagent](examples/multiagent/) — Parallel task execution
  • [planner](examples/planner/) — Plan-driven agent with beam search
  • [smartrouter](examples/smartrouter/) — Adaptive task routing
  • [mcp](examples/mcp/) — External tool servers via MCP
  • [session](examples/session/) — Persistent conversations

License

MIT

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.