İçeriğe geç

Zcode kurulumu

Zcode yapılandırmasına Yargı PRO sunucusunu ekleyin.

İndirme: zcode.z.ai/en

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

  1. Zcode'u indirip kurun.
  2. İşletim sisteminize göre aşağıdaki kodu terminale yapıştırıp çalıştırın:

macOS / Linux

Terminal komutu
node - <<'YARGI'
const fs=require("fs"),os=require("os"),path=require("path");
const dir=path.join(os.homedir(),".zcode","cli"),file=path.join(dir,"config.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.mcp!=="object"||cfg.mcp===null)cfg.mcp={};
if(typeof cfg.mcp.servers!=="object"||cfg.mcp.servers===null)cfg.mcp.servers={};
cfg.mcp.servers["yargi-mcp-pro"]={type:"stdio",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 dir=path.join(os.homedir(),".zcode","cli"),file=path.join(dir,"config.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.mcp!=="object"||cfg.mcp===null)cfg.mcp={};
if(typeof cfg.mcp.servers!=="object"||cfg.mcp.servers===null)cfg.mcp.servers={};
cfg.mcp.servers["yargi-mcp-pro"]={type:"stdio",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

Kod, ~/.zcode/cli/config.json dosyasına yargi-mcp-pro'yu ekler. Tarayıcıda WorkOS giriş sayfası açıldığında 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 Zcode'u açın; yeniden giriş yapmanız gerekmez.

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