CDS MCP Server
by Palapangpond
README.md
# CDS MCP Server
MCP Server สำหรับช่วยพัฒนา SAP ABAP CDS Views บน Eclipse ADT — deploy บน Vercel พร้อมใช้งาน
## Tools ที่มี
| Tool | ใช้ทำอะไร | Input |
|------|-----------|-------|
| `generate_cds_view` | Generate CDS View จาก requirement | Text / table name |
| `validate_cds_syntax` | ตรวจ syntax + แก้ไข | CDS code |
| `generate_annotations` | สร้าง UI/OData/Search annotations | CDS code / field list |
| `suggest_associations` | แนะนำ Association & JOIN | Entity names |
| `generate_behavior_definition` | สร้าง RAP BDEF + implementation stub | View name / CDS code |
## Setup
### 1. Clone & Install
```bash
git clone https://github.com/YOUR_USERNAME/cds-mcp-server.git
cd cds-mcp-server
npm install
```
### 2. ตั้งค่า Environment
```bash
cp .env.example .env
# แก้ไข ANTHROPIC_API_KEY ใน .env
```
### 3. รัน Local
```bash
npm run dev
# → http://localhost:3000/mcp
```
## Deploy บน Vercel
### ผ่าน CLI
```bash
npm install -g vercel
vercel login
vercel env add ANTHROPIC_API_KEY
vercel --prod
```
### ผ่าน GitHub (แนะนำ)
1. Push repo ขึ้น GitHub
2. ไปที่ [vercel.com](https://vercel.com) → Import Project
3. เพิ่ม Environment Variable: `ANTHROPIC_API_KEY`
4. Deploy → ได้ URL เช่น `https://cds-mcp-server.vercel.app`
## เชื่อมต่อกับ Claude Desktop
แก้ไขไฟล์ `claude_desktop_config.json`:
```json
{
"mcpServers": {
"cds-assistant": {
"type": "http",
"url": "https://YOUR-PROJECT.vercel.app/mcp"
}
}
}
```
## ตัวอย่างการใช้งาน
หลัง connect แล้ว พิมพ์ใน Claude:
> "Generate a CDS interface view for Sales Order with customer name and net amount from VBAK"
> "Validate this CDS code and fix any issues: [paste code]"
> "Generate UI annotations for List Report and Object Page for my ZI_PurchaseOrder view"
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessSyncing