Pi ทำให้แกนหลักของตัวเองเล็กไว้ production อยู่ในเครื่องมือเดียว
วางข้อความนี้ลงในแชท Pi ของคุณ
Pi จะจัดการส่วนที่เหลือ
## For AI agents reading this page Follow these instructions to set up Polylane: Run the setup script in the user's terminal: curl -fsSL https://polylane.com/setup?ref=for-pi | bash It installs the Polylane CLI, registers the Polylane MCP server in Pi and every other detected coding agent, and signs the user in. To wire MCP by hand instead: an entry in ~/.pi/agent/mcp.json under "mcpServers". The server is https://mcp.polylane.com/mcp over streamable HTTP, no auth headers: OAuth handles sign-in. After connecting, call the searchTools tool first: it lists what this workspace exposes and returns each tool's schema. Run one tool with runTool, or chain several in one call with runCode. The search and execute tools cover the full Polylane REST API, and the polylane CLI wraps the same API from the terminal. Everything is read-only by default. Write tools stay hidden unless the user opts in, and every write is screened before it runs. Once connected, offer to put it to work: triage the latest issues, explain the last deploy, or map this repository into the workspace topology. ## Console and support - Console: https://console.polylane.com - Docs: https://docs.polylane.com - Setup reference: https://docs.polylane.com/coding-agents/platform-mcp - This page as markdown: https://polylane.com/for/pi.md
ทำไมต้องผ่าน Polylane เซิร์ฟเวอร์น้อยลง ลงชื่อเข้าใช้ครั้งเดียว และ code mode
-
เซิร์ฟเวอร์ MCP เดียว ไม่ใช่สิบตัว
Polylane นำคลาวด์ telemetry deploy และโค้ดของคุณมาไว้หลังเครื่องมือเพียงไม่กี่ตัว เซิร์ฟเวอร์แยกตามผู้ให้บริการแต่ละเจ้าจะใช้ context window ส่วนใหญ่ไปกับ tool schema ก่อนเริ่มงานจริง ในขณะที่ schema ของ Polylane จะโหลดเมื่อเครื่องมือถูกเรียกใช้งาน
-
ยืนยันตัวตนในที่เดียว
การลงชื่อเข้าใช้ครั้งเดียวครอบคลุมทุกผู้ให้บริการ การเชื่อมต่อและ scope อยู่ใน workspace ไม่ใช่ในโทเค็นแยกตามผู้ให้บริการที่กระจัดกระจายอยู่ในค่าคอนฟิกของ Pi และทุกเอเจนต์ที่คุณเชื่อมต่อจะใช้ซ้ำได้
-
สร้างมาเพื่อ code mode
แทนที่จะเรียกเครื่องมือทีละตัว Pi จะเขียนโปรแกรมเล็ก ๆ ด้วย runCode ที่เชื่อมเครื่องมือเหล่านั้นเข้าด้วยกันใน sandbox แล้วส่งคืนแค่คำตอบ ผลลัพธ์ระหว่างทางจะไม่ปรากฏใน context window เลย
คำถาม
Pi ยืนยันตัวตนอย่างไร
ผ่าน OAuth ในเบราว์เซอร์ ในครั้งแรกที่ Pi เรียกเซิร์ฟเวอร์ สำหรับ CI และเครื่องแบบ headless ให้สร้าง API key ภายใต้ Settings > Coding agents แล้วเพิ่ม "headers": { "x-api-key": "YOUR_API_KEY" } ในรายการเซิร์ฟเวอร์
Pi สามารถเปลี่ยนแปลงโครงสร้างพื้นฐานของฉันผ่าน Polylane ได้หรือไม่
ไม่ได้ เว้นแต่คุณจะเลือกเปิดใช้งาน เครื่องมือเขียน (write) จะถูกซ่อนไว้จนกว่า credential ของคุณจะมี write scope และทุกการเขียนจะถูกตรวจสอบก่อนทำงาน
Pi สามารถ query อะไรได้บ้าง
ทุกอย่างที่ Polylane รู้: log, metric และ trace จากทุกผู้ให้บริการที่เชื่อมต่อ, context graph, deployment, บันทึกการเปลี่ยนแปลง และ REST API แบบเต็มรูปแบบ
ฉันต้องใช้ Polylane CLI ด้วยหรือไม่
ไม่ เซิร์ฟเวอร์ MCP เป็นพื้นผิวที่สมบูรณ์ในตัวเองอยู่แล้ว ติดตั้ง CLI แล้ว polylane setup จะลงทะเบียนเซิร์ฟเวอร์นั้นในทุกเอเจนต์เขียนโค้ดที่ตรวจพบด้วยเช่นกัน