İçeriğe geç

LM Studio kurulumu

Yerel modellerinizi LM Studio üzerinden Yargı PRO’ya bağlayın.

İndirme: lmstudio.ai/download

Gereksinim: Bilgisayarınızda Node.js kurulu olmalı → nodejs.org/en/download

İşletim sisteminize göre aşağıdaki kodu çalıştırın:

macOS / Linux

Terminal komutu
node - <<'YARGI'
const fs=require("fs"),os=require("os"),path=require("path");
const home=os.homedir();
const candidates=[path.join(home,".lmstudio"),path.join(home,".cache","lm-studio")];
const dir=candidates.find(d=>fs.existsSync(d))||candidates[0];
const file=path.join(dir,"mcp.json");
fs.mkdirSync(dir,{recursive:true});
let cfg={};try{cfg=JSON.parse(fs.readFileSync(file,"utf8"))}catch{}
if(typeof cfg!=="object"||cfg===null||Array.isArray(cfg))cfg={};
if(typeof cfg.mcpServers!=="object"||cfg.mcpServers===null)cfg.mcpServers={};
cfg.mcpServers["yargi-mcp-pro"]={command:"npx",args:["-y","mcp-remote@latest","https://app.yargipro.com/mcp"]};
fs.writeFileSync(file,JSON.stringify(cfg,null,2)+"\n");
console.log("yargi-mcp-pro eklendi -> "+file);
YARGI
npx -y mcp-remote@latest https://app.yargipro.com/mcp

Windows

powershell
@'
const fs=require("fs"),os=require("os"),path=require("path");
const home=os.homedir();
const candidates=[path.join(home,".lmstudio"),path.join(home,".cache","lm-studio")];
const dir=candidates.find(d=>fs.existsSync(d))||candidates[0];
const file=path.join(dir,"mcp.json");
fs.mkdirSync(dir,{recursive:true});
let cfg={};try{cfg=JSON.parse(fs.readFileSync(file,"utf8"))}catch{}
if(typeof cfg!=="object"||cfg===null||Array.isArray(cfg))cfg={};
if(typeof cfg.mcpServers!=="object"||cfg.mcpServers===null)cfg.mcpServers={};
cfg.mcpServers["yargi-mcp-pro"]={command:"cmd",args:["/c","npx","-y","mcp-remote@latest","https://app.yargipro.com/mcp"]};
fs.writeFileSync(file,JSON.stringify(cfg,null,2)+"\n");
console.log("yargi-mcp-pro eklendi -> "+file);
'@ | node -
npx.cmd -y mcp-remote@latest https://app.yargipro.com/mcp

Komutu çalıştırdığınızda tarayıcıda WorkOS giriş sayfası açılır; hesabınızla giriş yapın. Terminalde Press Ctrl+C to exit yazısını gördüğünüzde MCP başarıyla kurulmuş demektir. Terminal penceresini kapatabilirsiniz; token bilgisayarınıza kaydedilir. Ardından LM Studio'yu açın; yeniden giriş yapmanız gerekmez. Bağlantıyı sağ kenar çubuğundaki Program sekmesinden kontrol edebilirsiniz.


← Tüm platformları görüntüle