mcphost

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mcphost 는 어시스턴트의 도구 호스트다. Nullus MCP 서버(internal/mcp)를 요청마다 in-memory transport 로 띄워 MCP 클라이언트로 부른다 — 외부 클라이언트(Claude Code)와 같은 도구 표면을 쓴다. 도구는 REST 의 얇은 클라이언트이고, 그 요청에 질문한 사용자의 인증 헤더를 싣는다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opener

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

Opener 는 요청마다 도구 세션을 연다. serverURL 은 API 자신(루프백)이다.

func NewOpener

func NewOpener(serverURL, version string) *Opener

func (*Opener) Open

func (o *Opener) Open(ctx context.Context, creds port.Credentials) (port.ToolSession, error)

Open 은 조회 도구만 있는 MCP 서버를 띄우고 클라이언트를 붙인다. 변경 도구는 목록에서 아예 빠진다 (MCP AllowWrite=false) — 모델이 부를 방법이 없다.

Jump to

Keyboard shortcuts

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