SG

samber/godig

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 2 forks 품질 79 트렌드 30MIT

pkg.go.dev에 대한 java CLI 및 MCP 서버

개요

godig는 pkg.go.dev API를 통해 Go 패키지 및 모듈을 탐구하기위한 MCP 서버입니다. 검색, 문서, 기호, 버전, 수입 및 취약점 - 쉘 또는 AI 에이전트에서. 그것의 명령과 MCP 도구는 작은 손으로 쓰기 카탈로그 (internal/spec)에서 건축되고 Typed go-pkggodev-client를 부릅니다. 모든 작업은 읽기 전용이며 인증이 필요하지 않습니다. CLI 대신 찾고 계십니까? samber/go-pkggodev-client를 사용하세요. dev 클라이언트는 godig를 강화합니다. 필요 >= 1.25. 또한 MCP 서버를 에이전트로 등록 할 수 있습니다. 글로벌 플래그: -o, --output (table default, json, raw, md), --base-url, --vuln-base-url (Go vulnerability Database, default https://vuln.go.dev), --timeout, --log-level (debug|info|warn|error|off, default error; logs go to ). 모든 플래그는 GODIG -prefixed 환경 변수를 통해 설정할 수 있습니다. 종료 코드: 0 성공, 1 실행 시간 오류 (예를 들어.

개요(AI 번역)

godig는 CLI ** 및 ** pkg.go.dev API를 통해 이동 패키지 및 모듈을 탐구하기위한 MCP 서버 : 검색, 문서, 기호, 버전, 수입 및 취약점 - 쉘 또는 AI 에이전트에서.

그것의 명령과 MCP 도구는 작은 손으로 쓰기 카탈로그 (internal/spec)에서 건설되고 Typed go-pkggodev-client를 호출합니다. 모든 작업은 읽기 전용이며 인증이 필요하지 않습니다.

[!팁] CLI 대신 Go library를 찾고 계십니까? samber/go-pkggodev-client - pkg.go.dev 클라이언트를 입력한다 godig.

🚀 설치

필요 >= 1.25. 또한 MCP 서버를 에이전트로 등록 할 수 있습니다.

빠른 시작

글로벌 플래그: -o, --output (table] 기본, json], raw], md]), --base-url], --vuln-base-url (Go vulnerability Database, default https://vuln.go.dev), --timeout], --log-level (debug|info|warn|error|off], default error; logs go to **). 모든 플래그는 GODIG_]-prefixed 환경 변수를 통해 설정할 수 있습니다.

종료 코드 : 0 성공, 1] 실행 오류 (예 : 네트워크, 패키지 발견되지 않음), 2 사용 오류 (/invalid 인수 또는 플래그, 또는 subcommand없이 그룹 호출).

명령

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

godig - CLI & MCP server for pkg.go.dev

godig is a CLI and an MCP server for exploring Go packages and modules via the pkg.go.dev API: search, documentation, symbols, versions, importers and vulnerabilities — from your shell or from an AI agent.

Its commands and MCP tools are built from a small hand-written catalog (internal/spec) and call the typed go-pkggodev-client. All operations are read-only and need no authentication.

[!TIP] Looking for a Go library instead of a CLI? Use samber/go-pkggodev-client — the typed pkg.go.dev client that powers godig.

🚀 Install

go install github.com/samber/godig/cmd/godig@latest

# AI Agent Skill:
npx skills add https://github.com/samber/cc-skills-golang --skill golang-pkg-go-dev

# Register the MCP server into Claude Code (stdio)
claude mcp add pkg-go-dev -- godig mcp

Requires Go >= 1.25. See Skill to also register the MCP server with your agent.

💡 Quick start

# Overview — one compact call: metadata, latest + recent versions, licenses, vulns
godig overview github.com/samber/ro

# Search
godig search "result option monad" --limit 5

# Package facets
godig package info github.com/samber/ro
godig package imports github.com/samber/ro
godig package doc github.com/samber/ro --format md
godig package examples github.com/samber/ro
godig package examples github.com/samber/ro --symbol Map   # examples for one symbol only
godig package licenses github.com/samber/ro

# Single symbol (token-efficient vs the full package doc/examples)
godig symbol doc github.com/samber/ro Map
godig symbol examples github.com/samber/mo Either.ForEach

# Module facets
godig module info github.com/samber/ro            # incl. download size + min Go version
godig module readme github.com/samber/ro
godig module licenses github.com/samber/ro
godig dependencies github.com/samber/oops         # go.mod requires/replaces/excludes

# Lists (auto-paginated; --limit to cap, -o md for a Markdown table)
GitHub에서 전체 README 보기

설치

npx skills add https://github.com/samber/cc-skills-golang --skill golang-pkg-go-dev
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "pkg-go-dev": { "command": "godig", "args": ["mcp"] } } }