Skip to main content

using-the-mcp-server

Use when calling LLM APIs through the liter-llm MCP server's 22 tools, and to decide when MCP beats the CLI or SDK. Covers the tool surface, the auto-installing launcher, and authentication.

소스 정보

저장소
xberg-io/plugins
최근 소스 활동
2026년 7월 12일 05:08
감지된 SKILL.md 언어
영어
스타
26
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
using-the-mcp-server
description
Use when calling LLM APIs through the liter-llm MCP server's 22 tools, and to decide when MCP beats the CLI or SDK. Covers the tool surface, the auto-installing launcher, and authentication.
<!-- AI-RULEZ :: GENERATED FILE — DO NOT EDIT Content-Hash: blake3:08655420ed4ca451d289d65aa8e9269df597b713ae5a601f56b7b951ed1841aa Source-Hash: blake3:994b83e19a30ce07bfdfeb4caf56e995dc024de32e00f13b45cd995d0e441086 Schema-Version: v1 --> # Using the MCP Server The `liter-llm` MCP server exposes 22 tools that mirror the proxy's REST endpoints, so an MCP-compatible client (Claude Code, Claude Desktop) can call 143 LLM providers as tools with no glue code. ## How it runs in this plugin The plugin auto-registers the server. Its command is the bundled launcher `scripts/mcp-launch.sh`, which execs `liter-llm mcp --transport stdio`. On first run the launcher resolves a `liter-llm` binary: it reuses one on `PATH`, then tries `npx`/`uvx`, then Homebrew, then downloads a checksum-verified prebuilt from the tool's latest GitHub release. Override with `LITER_LLM_LAUNCHER=auto|npx|uvx|brew|download`. To run it manually: ```bash liter-llm mcp --transport stdio # for Claude Code / Claude Desktop liter-llm mcp --transport http --port 3001 ``` ## The 22 tools Modality tools: `chat`, `embed`, `generate_image`, `speech`, `transcribe`, `moderate`, `rerank`, `search`, `ocr`. Model listing: `list_models`. File operations: `create_file`, `list_files`, `retrieve_file`, `delete_file`, `file_content`. Batch operations: `create_batch`, `list_batches`, `retrieve_batch`, `cancel_batch`. Responses API: `create_response`, `retrieve_response`, `cancel_response`. ## Authentication stdio has no per-request auth headers, so the server binds auth once at startup via `[mcp]` config: set `mcp.stdio_key_id` to bind a specific virtual key, or `mcp.stdio_trust_local = true` for fully trusted local environments. Provider keys still come from env vars. ## When to prefer MCP over the CLI or SDK - **Prefer MCP** inside an agent session: the agent invokes tools directly, with no code to write or process to manage. - **Prefer the SDK** when building application software in a specific language. - **Prefer the proxy** when many apps or teams need a shared OpenAI-compatible endpoint with keys, budgets, and rate limits.
GitHub에서 보기