[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J17JC321WF1HEGSEVRA6GE":3,"skill-same:01M6J17JC321WF1HEGSEVRA6GE":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6J17JC321WF1HEGSEVRA6GE","liter-llm-using-the-mcp-server",null,"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\u002Fliter-llm","xberg-io","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F241328462?v=4","01M6BYYMACFMK5WNT338Y71K58","Xberg.io","01M6J160RA8VS7XVE01W9305F3",266,"MIT","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Fliter-llm-using-the-mcp-server\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"mcp server","liter llm","server","liter llm using the mcp server","MCP","decide","when","mcp-server","calling","launcher","auto","use","tool","Tools","playbook","authentication","sdk","cli","2026-11-10 10:12:30",false,"---\ntype: Playbook\ntitle: Using The Mcp Server\ndescription: 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.\nx-ai-rulez:\n  kind: skill\n  id: liter-llm-using-the-mcp-server\n  metadata:\n    name: liter-llm-using-the-mcp-server\n---\n\n# Using the MCP Server\n\nThe `liter-llm` MCP server exposes 22 tools that mirror the proxy's REST\nendpoints, so an MCP-compatible client (Claude Code, Claude Desktop) can call\n174 LLM providers as tools with no glue code.\n\n## Standalone skill installation\n\nInstalling this skill alone does not register an MCP server or include the plugin launcher.\nInstall the CLI (for example, `brew install xberg-io\u002Ftap\u002Fliter-llm`), then configure your MCP client with\n`liter-llm mcp --transport stdio` as its stdio command. The full product plugin supplies registration where\nthe runtime supports MCP.\n\n## How it runs in this plugin\n\nThe plugin auto-registers the server. Its command is the bundled launcher\n`scripts\u002Fmcp-launch.sh`, which execs `liter-llm mcp --transport stdio`. On first\nrun the launcher resolves a `liter-llm` binary: it reuses one on `PATH`, then\ntries `npx`\u002F`uvx`, then Homebrew, then downloads a prebuilt\nfrom the tool's latest GitHub release. Override with\n`LITER_LLM_LAUNCHER=auto|npx|uvx|brew|download`.\n\nTo run it manually:\n\n```bash\nliter-llm mcp --transport stdio          # for Claude Code \u002F Claude Desktop\nliter-llm mcp --transport http --port 3001\n```\n\n## Configure model routing\n\nProvider-backed tools use the proxy model registry. Create `liter-llm-proxy.toml` in the\nworking directory, or pass `--config \u002Fabsolute\u002Fpath\u002Fliter-llm-proxy.toml` when launching:\n\n```toml\n[[models]]\nname = \"gpt-4o\"\nprovider_model = \"openai\u002Fgpt-4o\"\n```\n\nSupply `OPENAI_API_KEY` in the MCP process environment, then call `chat` using the\nconfigured name `gpt-4o`. `list_models` shows configured names; an unknown model is a\nrequest error. Missing credentials are also reported on provider-backed requests.\nGemini filters host credentials: install with `--skip-settings` and configure the selected\nprovider through `gemini extensions config liter-llm \"OpenAI key\"`. Local stdio does not\nneed a separate proxy virtual key.\n\n## The 22 tools\n\nModality tools: `chat`, `embed`, `generate_image`, `speech`, `transcribe`,\n`moderate`, `rerank`, `search`, `ocr`.\n\nModel listing: `list_models`.\n\nFile operations: `create_file`, `list_files`, `retrieve_file`, `delete_file`,\n`file_content`.\n\nBatch operations: `create_batch`, `list_batches`, `retrieve_batch`,\n`cancel_batch`.\n\nResponses API: `create_response`, `retrieve_response`, `cancel_response`.\n\n## Authentication\n\nLocal stdio trusts the invoking local client by default, so the registered command starts\nwithout extra proxy authentication configuration. Provider API keys still come from environment\nvariables and are needed for provider-backed requests.\n\nTo apply a restricted virtual key, configure `mcp.stdio_key_id`; an unknown key fails startup.\nSet `mcp.stdio_trust_local = false` to require an explicit virtual key. HTTP transport retains\nits authentication policy; the local stdio default does not disable HTTP authorization.\n\n## When to prefer MCP over the CLI or SDK\n\n- **Prefer MCP** inside an agent session: the agent invokes tools directly, with\n  no code to write or process to manage.\n- **Prefer the SDK** when building application software in a specific language.\n- **Prefer the proxy** when many apps or teams need a shared OpenAI-compatible\n  endpoint with keys, budgets, and rate limits.\n","# Using the MCP Server\n\nThe `liter-llm` MCP server exposes 22 tools that mirror the proxy's REST\nendpoints, so an MCP-compatible client (Claude Code, Claude Desktop) can call\n174 LLM providers as tools with no glue code.\n\n## Standalone skill installation\n\nInstalling this skill alone does not register an MCP server or include the plugin launcher.\nInstall the CLI (for example, `brew install xberg-io\u002Ftap\u002Fliter-llm`), then configure your MCP client with\n`liter-llm mcp --transport stdio` as its stdio command. The full product plugin supplies registration where\nthe runtime supports MCP.\n\n## How it runs in this plugin\n\nThe plugin auto-registers the server. Its command is the bundled launcher\n`scripts\u002Fmcp-launch.sh`, which execs `liter-llm mcp --transport stdio`. On first\nrun the launcher resolves a `liter-llm` binary: it reuses one on `PATH`, then\ntries `npx`\u002F`uvx`, then Homebrew, then downloads a prebuilt\nfrom the tool's latest GitHub release. Override with\n`LITER_LLM_LAUNCHER=auto|npx|uvx|brew|download`.\n\nTo run it manually:\n\n```bash\nliter-llm mcp --transport stdio          # for Claude Code \u002F Claude Desktop\nliter-llm mcp --transport http --port 3001\n```\n\n## Configure model routing\n\nProvider-backed tools use the proxy model registry. Create `liter-llm-proxy.toml` in the\nworking directory, or pass `--config \u002Fabsolute\u002Fpath\u002Fliter-llm-proxy.toml` when launching:\n\n```toml\n[[models]]\nname = \"gpt-4o\"\nprovider_model = \"openai\u002Fgpt-4o\"\n```\n\nSupply `OPENAI_API_KEY` in the MCP process environment, then call `chat` using the\nconfigured name `gpt-4o`. `list_models` shows configured names; an unknown model is a\nrequest error. Missing credentials are also reported on provider-backed requests.\nGemini filters host credentials: install with `--skip-settings` and configure the selected\nprovider through `gemini extensions config liter-llm \"OpenAI key\"`. Local stdio does not\nneed a separate proxy virtual key.\n\n## The 22 tools\n\nModality tools: `chat`, `embed`, `generate_image`, `speech`, `transcribe`,\n`moderate`, `rerank`, `search`, `ocr`.\n\nModel listing: `list_models`.\n\nFile operations: `create_file`, `list_files`, `retrieve_file`, `delete_file`,\n`file_content`.\n\nBatch operations: `create_batch`, `list_batches`, `retrieve_batch`,\n`cancel_batch`.\n\nResponses API: `create_response`, `retrieve_response`, `cancel_response`.\n\n## Authentication\n\nLocal stdio trusts the invoking local client by default, so the registered command starts\nwithout extra proxy authentication configuration. Provider API keys still come from environment\nvariables and are needed for provider-backed requests.\n\nTo apply a restricted virtual key, configure `mcp.stdio_key_id`; an unknown key fails startup.\nSet `mcp.stdio_trust_local = false` to require an explicit virtual key. HTTP transport retains\nits authentication policy; the local stdio default does not disable HTTP authorization.\n\n## When to prefer MCP over the CLI or SDK\n\n- **Prefer MCP** inside an agent session: the agent invokes tools directly, with\n  no code to write or process to manage.\n- **Prefer the SDK** when building application software in a specific language.\n- **Prefer the proxy** when many apps or teams need a shared OpenAI-compatible\n  endpoint with keys, budgets, and rate limits.\n",{"type":42,"title":43,"x-ai-rulez":44,"description":7},"Playbook","Using The Mcp Server",{"id":5,"kind":45,"metadata":46},"skill",{"name":5},"main","81dd58501327dc68d81676f236766c08c0d31deb","plugin\u002F.ai-rulez\u002Fskills\u002Fliter-llm-using-the-mcp-server",27,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm","https:\u002F\u002Fdocs.liter-llm.xberg.io","https:\u002F\u002Fgithub.com\u002Fxberg-io","https:\u002F\u002Fxberg.io","Open-source content intelligence with a Rust core: documents, web, LLMs and code, with native bindings for every major language.","2026-11-14 23:17:35",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add xberg-io\u002Fliter-llm --skill liter-llm-using-the-mcp-server",{"tool":63,"command":64},"bunx","bunx skills add xberg-io\u002Fliter-llm --skill liter-llm-using-the-mcp-server",{"tool":66,"command":67},"pnpm","pnpm dlx skills add xberg-io\u002Fliter-llm --skill liter-llm-using-the-mcp-server","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Fliter-llm-using-the-mcp-server\u002FSKILL.md",true,[71],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"index.md","REFERENCE","参考文档",240,"https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fplugin\u002F.ai-rulez\u002Fskills\u002Fliter-llm-using-the-mcp-server\u002Findex.md",[78,100,105,123,140,163],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":37},"01M6J1DRP0968S21HH1C4HR9RK","liter-llm","Universal LLM API client for 174 providers with native bindings for 14 languages. Use when writing code that calls LLM APIs via liter-llm in Python, TypeScript, Rust, Go, Java, C#, Ruby, PHP, Elixir, WASM, or C, when running the OpenAI-compatible proxy, or when calling LLMs through the MCP server. Covers chat, streaming, tool calling, embeddings, image generation, speech, transcription, moderation, web search, OCR, reranking, provider routing, middleware, and configuration.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm\u002FSKILL.md",[],[20,85,86,87,88,89,90,23,91,92,19,93,94,95,96,97,21,98,99,25],"ocr","web search","search","rust","middleware","ruby","writing","image","code","api","io","streaming","llms","native","elixir",{"skillNo":101,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":37},"01M6J1DK94H9KDPW62F1E96VRR","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm-using-the-mcp-server\u002FSKILL.md",[],[23,19,22,21,20,28,24,34,31,27,29,30,36,35,32,25],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":37},"01M6J1DEEPNVQ3E5CX5ZF69416","liter-llm-tool-calling","Use when defining functions\u002Ftools for an LLM to call through liter-llm, or requesting structured JSON outputs. Covers tool schemas, tool_calls handling, and response formats.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm-tool-calling\u002FSKILL.md",[],[112,31,27,113,20,114,115,116,117,30,118,119,120,32,121,122,25],"tool calling","liter llm tool calling","llm tool","for","calls","call","functions","json","formats","structured","outputs",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":37},"01M6J1DBN4XD93NN04WA8ZP75H","liter-llm-streaming-responses","Use when streaming tokens incrementally from an LLM via liter-llm over SSE or async iterators. Covers chat_stream, delta handling, and null-content chunks.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm-streaming-responses\u002FSKILL.md",[],[130,20,96,131,132,133,134,135,30,136,137,138,139,25],"liter llm streaming responses","chat","delta","via","tokens","async","content","sse","chunks","stream",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":37},"01M6J1D76FTYTKSPWNNRVZ2PX3","liter-llm-running-the-proxy","Use when running the `liter-llm api` OpenAI-compatible gateway — virtual keys, per-key rate limits, budgets, cost tracking, and model routing. Covers the TOML config and the 22 REST endpoints.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm-running-the-proxy\u002FSKILL.md",[],[147,148,20,149,150,151,152,153,154,30,94,155,156,157,158,159,160,161,162,25],"proxy","liter llm running the proxy","running","openai-compatible","virtual","gateway","model","toml","cost","routing","REST","endpoints","keys","config","limits","llm api",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":37},"01M6J1D2W434JGGHXR8SP91PZ3","liter-llm-embeddings-and-search","Use when generating embeddings, calling the 12 web-search providers, or running OCR over documents with the 4 OCR providers through liter-llm. Covers embed, search, and ocr methods plus reranking.","https:\u002F\u002Fgithub.com\u002Fxberg-io\u002Fliter-llm\u002Fblob\u002Fmain\u002Fskills\u002Fliter-llm-embeddings-and-search\u002FSKILL.md",[],[87,170,20,171,85,172,27,30,173,174,175,176,177,178,179,149,25],"liter llm embeddings and search","embeddings","methods","documents","embed","with","web","web-search","Providers","reranking"]