1. บทนำ

ทักษะของ Agent เป็นรูปแบบโอเพนซอร์สแบบน้ำหนักเบาสำหรับขยายความสามารถของ AI Agent ด้วยความรู้และเวิร์กโฟลว์เฉพาะทาง MCP เป็นมาตรฐานสำหรับการเชื่อมต่อแอปพลิเคชัน AI กับระบบภายนอก
ข้อกำหนดของปลั๊กอิน Agent เป็นข้อกำหนดโอเพนซอร์สที่ไม่ขึ้นกับผู้ให้บริการสำหรับการแพ็กเกจทักษะของ Agent และเซิร์ฟเวอร์ MCP เป็นปลั๊กอินแบบพกพา
ปลั๊กอิน Google Cloud สำหรับ Agent การเขียนโค้ด AI จะแพ็กเกจทักษะ Google Cloud ที่เกี่ยวข้องและเซิร์ฟเวอร์ MCP เป็นชุดที่ติดตั้งได้เพื่อให้ AI Agent ใน Google Cloud มีประสิทธิภาพมากขึ้น
ใน Codelab นี้ คุณจะได้เรียนรู้เกี่ยวกับปลั๊กอินตัวหนึ่งที่ชื่อว่า Google Cloud Developer plugin รวมถึงวิธีติดตั้งและใช้ปลั๊กอินนี้ใน Antigravity
สิ่งที่คุณจะได้ทำ
- ทำความเข้าใจปลั๊กอิน Agent
- ติดตั้งและสำรวจ Google Cloud Developer plugin ใน Antigravity
- ทดสอบทักษะและเซิร์ฟเวอร์ MCP ที่ติดตั้งโดย Google Cloud Developer plugin ด้วยพรอมต์ 2-3 รายการ
สิ่งที่คุณต้องมี
- เว็บเบราว์เซอร์ เช่น Chrome
- โปรเจ็กต์ Google Cloud
- Antigravity และ Antigravity CLI ที่ติดตั้งในเครื่องของคุณ
2. สำรวจปลั๊กอิน Agent
ปลั๊กอิน Agent เป็นรูปแบบแพ็กเกจแบบพกพาสำหรับรวมทักษะของ Agent และเซิร์ฟเวอร์ MCP ไว้ในไดเรกทอรีที่มีลักษณะดังนี้
my-plugin/
├── plugin.json
├── skills/
│ └── my-skill/
│ ├── SKILL.md
│ ├── scripts/
│ └── references/
├── mcp.json
└── com.example.client/
plugin.jsonระบุปลั๊กอินskills/มีทักษะของ Agentmcp.jsonอธิบายเซิร์ฟเวอร์ MCP- เนมสเปซส่วนขยายโดเมนย้อนกลับช่วยให้ไคลเอ็นต์แต่ละรายเพิ่มลักษณะการทำงานที่กำหนดเองได้
ที่เก็บทักษะของ Google Agent มีทักษะของ Agent สำหรับผลิตภัณฑ์และเทคโนโลยีของ Google รวมถึง Google Cloud นอกจากนี้ยังมี ปลั๊กอิน ที่รวมทักษะของ Agent และเซิร์ฟเวอร์ MCP ไว้ในชุดที่ติดตั้งได้ เช่น Google Cloud Developer plugin
Google Cloud Developer plugin ให้คำแนะนำ Google Cloud สำหรับ Agent การเขียนโค้ด ได้แก่ การเริ่มต้นใช้งานโปรเจ็กต์แรก การตรวจสอบสิทธิ์และการเลือกข้อมูลเข้าสู่ระบบ รวมถึงการตรวจสอบที่สำคัญต่อความปลอดภัยสำหรับคำสั่ง gcloud CLI รวมถึงเซิร์ฟเวอร์ MCP ของ Google Developer Knowledge สำหรับเอกสารประกอบ Google Cloud ที่อิงตามข้อมูลจริงและเป็นปัจจุบัน
3. ติดตั้ง Google Cloud Developer plugin
Antigravity CLI เป็นวิธีที่ง่ายที่สุดในการติดตั้งปลั๊กอิน Agent สำหรับทั้งระบบนิเวศ Antigravity (Antigravity, Antigravity CLI, Antigravity IDE)
มาติดตั้ง Google Cloud Developer plugin ใน Antigravity CLI โดยชี้ไปที่เส้นทางของปลั๊กอินกัน
agy plugin install https://github.com/google/skills/plugins/cloud/google-cloud-developer
คุณควรเห็นปลั๊กอินที่ติดตั้งพร้อมทักษะบางอย่างและเซิร์ฟเวอร์ MCP ดังนี้
Cloning plugin from https://github.com/google/skills.git...
[ok] google-cloud-developer
✔ skills : 5 processed
- agents : skipped (not found)
- commands : skipped (not found)
✔ mcpServers : 1 processed
- hooks : skipped (not found)
4. สำรวจ Google Cloud Developer plugin
ตอนนี้มาสำรวจ Google Cloud Developer plugin กัน
ก่อนอื่นให้ตรวจสอบว่าปลั๊กอินแสดงอยู่ใน Antigravity CLI ดังนี้
agy plugin list
{
"imports": [
{
"name": "google-cloud-developer",
"source": "antigravity",
"importedAt": "2026-09-04T10:41:05Z",
"components": [
"skills",
"mcpServers"
]
}
]
}
Antigravity CLI จะติดตั้งปลั๊กอินทั่วโลกในโฟลเดอร์ .gemini/config/plugins/ ซึ่งหมายความว่าปลั๊กอินจะพร้อมใช้งานสำหรับ Antigravity, Antigravity CLI และ Antigravity IDE
ในโฟลเดอร์ .gemini/config/plugins/google-cloud-developer คุณจะเห็น Google Cloud Developer plugin พร้อมไฟล์ Manifest ของปลั๊กอิน ทักษะ และเซิร์ฟเวอร์ MCP ดังนี้
google-cloud-developer/
├── ...
├── skills/
│ ├── finding-google-skills/
│ ├── gcloud/
│ ├── google-cloud-recipe-auth/
│ ├── google-cloud-recipe-onboarding/
│ └── retrieving-developer-knowledge/
├── mcp.json
└── plugin.json
คุณจะเห็นทักษะในการเริ่มต้นใช้งานโปรเจ็กต์แรก การตรวจสอบสิทธิ์และการเลือกข้อมูลเข้าสู่ระบบ รวมถึงการตรวจสอบที่สำคัญต่อความปลอดภัยสำหรับคำสั่ง gcloud CLI นอกจากนี้ยังมีเซิร์ฟเวอร์ MCP ของ Google Developer Knowledge สำหรับเอกสารประกอบ Google Cloud ที่อิงตามข้อมูลจริงและเป็นปัจจุบัน
นอกจากนี้ คุณยังเปลี่ยนไปใช้ Antigravity และถามในแชทว่ามีการติดตั้งทักษะใดไว้บ้างได้ด้วย
Which skills are available?
ระบบควรแสดงทักษะ Antigravity ในตัว รวมถึงทักษะจาก Google Cloud Developer plugin ดังนี้
...
2. Google Cloud Developer Plugin Skills
Installed via the google-cloud-developer plugin in
~/.gemini/config/plugins/google-cloud-developer/skills/:
finding-google-skills: Dynamically locates and loads specialized Google product skills on-demand from the remote catalog index (e.g., GKE, BigQuery, Vertex AI, Firebase).
gcloud: Validation guardrails, syntax rules, and data reduction for executing gcloud CLI commands safely.
google-cloud-recipe-auth: Guidance on authentication and authorization patterns (ADC, service accounts, IAM, and workload identity).
google-cloud-recipe-onboarding: Step-by-step walkthrough for onboarding new Google Cloud projects, billing accounts, and first deployments.
retrieving-developer-knowledge: Integration with the developer-knowledge MCP server to retrieve official Google developer documentation and API references.
นอกจากนี้ ให้ไปที่การตั้งค่า > การปรับแต่ง คุณควรเห็นว่าทักษะเหล่านี้พร้อมใช้งานที่นั่นด้วย

หมายเหตุ: ในการปรับแต่งจะมีส่วนเซิร์ฟเวอร์ MCP ที่ติดตั้ง และปัจจุบันส่วนนี้จะไม่แสดงเซิร์ฟเวอร์ MCP เป็นส่วนหนึ่งของปลั๊กอิน

อย่างไรก็ตาม คุณสามารถถาม Antigravity ในแชทเกี่ยวกับเซิร์ฟเวอร์ MCP ได้
Which MCP servers are available?
ระบบควรจดจำ Developer Knowledge MCP ที่ติดตั้งเป็นส่วนหนึ่งของปลั๊กอินได้
Based on your Antigravity configuration and cached tool definitions, here are the MCP servers and their statuses:
1. Actively Configured Plugin Server
Configured in
~/.gemini/config/plugins/google-cloud-developer/mcp.json
:
developer-knowledge
Type / URL: Streamable HTTP (https://developerknowledge.googleapis.com/mcp)
Provided Tools:
search_documents: Search official Google developer documentation
get_documents: Retrieve document content
answer_query: Synthesize developer query answers
5. ลองใช้ Google Cloud Developer plugin
เปิดใช้ Developer Knowledge API
ก่อนอื่นให้ตรวจสอบว่าได้เปิดใช้ Developer Knowledge API ในโปรเจ็กต์ Google Cloud แล้ว ซึ่งจำเป็นสำหรับเซิร์ฟเวอร์ MCP ของ Developer Knowledge
- ในคอนโซล Google Cloud ให้ค้นหา Developer Knowledge API
- ในหน้า Developer Knowledge API ให้คลิกเปิดใช้ API
ตอนนี้มาลองใช้พรอมต์บางรายการเพื่อดูว่า Google Cloud Developer plugin ช่วยในสถานการณ์ต่างๆ ได้อย่างไร
คุณลองใช้พรอมต์เหล่านี้ใน Antigravity หรือ Antigravity CLI ได้ เนื่องจากปลั๊กอินพร้อมใช้งานทั่วโลก
การเริ่มต้นใช้งาน
หากคุณเพิ่งเริ่มใช้ Google Cloud คุณสามารถเริ่มต้นด้วยการถามคำถามพื้นฐานเกี่ยวกับการเริ่มต้นใช้งานได้ดังนี้
I'm new to Google Cloud. How can I create a new project with billing enabled?
คุณควรเห็นทักษะ google-cloud-recipe-onboarding ทำงานอยู่
Worked for 1m ˅
Explored 1 file ˅
> Analyzed google-cloud-recipe-onboarding/SKILL.md
คุณควรได้รับคำตอบพร้อมวิธีการทีละขั้นตอนดังนี้
To get started with Google Cloud, you will need an active Google Cloud account and an authorized terminal session:
Google Cloud Account & Console: If you haven't already, sign up and access the Google Cloud Console where you can manage accounts, projects, and set up a Cloud Billing account (new accounts are eligible for the $300 Free Trial).
...
การตรวจสอบสิทธิ์
ลองถามคำถามเกี่ยวกับการตรวจสอบสิทธิ์ดังนี้
How can I authenticate my local machine with Google Cloud?
คุณควรเห็นทักษะ google-cloud-recipe-auth ทำงานอยู่
Worked for 1m ˅
Explored 1 file ˅
> Analyzed google-cloud-recipe-auth/SKILL.md
คุณควรได้รับคำสั่งในการตรวจสอบสิทธิ์ดังนี้
To authenticate your local machine with Google Cloud, there are two primary methods depending on whether you want to use the CLI or run code/client libraries locally:
1. Authenticate the CLI (gcloud)
Use this to run gcloud, bq, and gsutil management commands in your terminal:
bash
gcloud auth login
This opens a web browser asking you to log in with your Google Account and grant permissions.
If you are on a remote server without a web browser, use:
bash
...
Developer Knowledge
นอกจากนี้ คุณยังถามคำถามเพื่อให้ระบบตอบจากเอกสารประกอบอย่างเป็นทางการได้ด้วย
เช่น
What's the difference between Cloud Run and GKE according to the official docs?
คุณจะเห็นทักษะที่เกี่ยวข้องทำงานอยู่ ซึ่งจะใช้เซิร์ฟเวอร์ MCP developer-knowledge
Exploring 2 files ˅
* Analyzed retrieving-developer-knowledge/SKILL.md
* Analyzed answer_query.json
MCP Tool: developer-knowledge / answer_query ˅
Tool arguments
```json
{
"query": "What is the difference between Cloud Run and Google Kubernetes Engine (GKE) according to official Google Cloud documentation?"
}
ค้นหาทักษะอื่นๆ ของ Google
สุดท้ายแต่ไม่ท้ายสุด Google Cloud Developer plugin สามารถค้นหาและโหลดทักษะตามความต้องการได้
เช่น คุณสามารถถามได้ดังนี้
I want to start using Firebase
คุณควรเห็นทักษะ finding-google-skills ทำงานอยู่ และค้นหาและติดตั้งทักษะ Firebase ที่เกี่ยวข้อง
Explored 1 file ˅
* Analyzed finding-google-skills/SKILL.md
Ran `curl -sS https://raw.githubusercontent.com/google/skills/main/index.json | jq -r '.skills[ >`
Exploring 3 files, 2 searches ˅
* Reading skills catalog
* Searched firebase
* Fetching Firebase skill
6. การทำความสะอาดข้อมูล
ปิดใช้ Developer Knowledge API ดังนี้
- ในคอนโซล Google Cloud ให้ค้นหา Developer Knowledge API
- ในหน้า Developer Knowledge API ให้คลิกจัดการ แล้วคลิกปิดใช้ API
ถอนการติดตั้ง Google Cloud Developer plugin ด้วย Antigravity CLI ดังนี้
agy plugin uninstall google-cloud-developer
Uninstalled plugin "google-cloud-developer"
7. ขอแสดงความยินดี
ขอแสดงความยินดี คุณติดตั้งและใช้ Google Cloud Developer plugin ใน Antigravity เรียบร้อยแล้ว ดูข้อมูลเพิ่มเติมได้จากแหล่งข้อมูลต่อไปนี้