We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kwenhwang/hrfco-service'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# π TypeScript Netlify Functions λ°°ν¬ μ²΄ν¬λ¦¬μ€νΈ
## β
μλ£λ μμ
λ€
### π§ **μ½λ μ€λΉ**
- [x] Python β TypeScript λ³ν μλ£
- [x] 4κ° Netlify Functions μμ±
- [x] TypeScript μ»΄νμΌ μ€λ₯ μμ
- [x] λ‘컬 ν
μ€νΈ μ±κ³΅ (284-184 bytes)
- [x] Git μ μ₯μ μ΄κΈ°ν λ° μ»€λ°
### π **νμΌ κ΅¬μ‘°**
```
netlify/functions/
βββ utils.ts # νκΈ μ²λ¦¬ μ νΈλ¦¬ν°
βββ search-station.ts # κ΄μΈ‘μ κ²μ
βββ get-water-info.ts # μμ€ν± μ‘°ν
βββ recommend-stations.ts # μΆμ² μμ€ν
βββ openai-functions.ts # Function μ μ
```
### π― **μ±λ₯ κ²μ¦**
- [x] μλ΅ ν¬κΈ°: 184-284 bytes (1KB λ―Έλ§)
- [x] νκΈ ν
μ€νΈ μ²λ¦¬ μ μ
- [x] OpenAI Function Calling μ€ν μ€μ
- [x] TypeScript μ»΄νμΌ μ±κ³΅
## π **λ€μ λ¨κ³: μ€μ λ°°ν¬**
### 1. **GitHub μ μ₯μ μμ±**
```bash
# GitHubμμ μ μ μ₯μ μμ± ν
git remote add origin https://github.com/username/hrfco-netlify-functions.git
git push -u origin main
```
### 2. **Netlify λ°°ν¬**
1. Netlify λμ보λ μ μ
2. "New site from Git" μ ν
3. GitHub μ μ₯μ μ°κ²°
4. λΉλ μ€μ :
- Build command: `npm run build`
- Publish directory: `public`
- Functions directory: `netlify/functions`
### 3. **νκ²½λ³μ μ€μ **
Netlify β Site settings β Environment variables:
```
HRFCO_API_KEY = FE18B23B-A81B-4246-9674-E8D641902A42
```
## π§ͺ **λ°°ν¬ ν ν
μ€νΈ κ³ν**
### **Functionλ³ ν
μ€νΈ**
```bash
# 1. search-station ν
μ€νΈ
curl -X POST https://[λ°°ν¬μ£Όμ]/.netlify/functions/search-station \
-d '{"location_name": "νκ°", "limit": 3}'
# 2. get-water-info ν
μ€νΈ
curl -X POST https://[λ°°ν¬μ£Όμ]/.netlify/functions/get-water-info \
-d '{"query": "μμΈ μμ", "limit": 2}'
# 3. recommend-stations ν
μ€νΈ
curl -X POST https://[λ°°ν¬μ£Όμ]/.netlify/functions/recommend-stations \
-d '{"location": "λΆμ°", "radius": 20}'
# 4. openai-functions ν
μ€νΈ
curl https://[λ°°ν¬μ£Όμ]/.netlify/functions/openai-functions
```
### **μ±κ³΅ κΈ°μ€**
- β
λͺ¨λ μλν¬μΈνΈ 200 μλ΅
- β
μλ΅ ν¬κΈ° 1KB λ―Έλ§ μ μ§
- β
νκΈ μ§μλͺ
μ μ μ²λ¦¬
- β
OpenAI Function μ μ λ°ν
## π― **μ΅μ’
λͺ©ν λ¬μ± νμΈ**
### **End-to-End μλ리μ€**
1. **μ¬μ©μ**: ChatGPTμμ "νκ° μμ μ΄λ?" μ§λ¬Έ
2. **OpenAI**: `get_water_info_by_location` ν¨μ νΈμΆ
3. **Netlify**: νκΈ μ§μλͺ
μ²λ¦¬ λ° HRFCO API μ‘°ν
4. **μλ΅**: νκ° μ μ κ΄μΈ‘μ μ€μκ° μμ λ°μ΄ν° λ°ν
### **ν΅μ¬ μ±κ³Ό μ§ν**
- π― μμ°μ΄ β μ λΆ λ°μ΄ν° μμ μλν
- π μλ΅ ν¬κΈ° 95% μ΅μ ν (1KB λ―Έλ§)
- π 1,366κ° κ΄μΈ‘μ μ§λ₯ν κ²μ
- π μλ²λ¦¬μ€ λ°°ν¬λ‘ 무μ ν νμ₯μ±
---
**π μ€λΉ μλ£**: TypeScript Netlify Functions λ°°ν¬ μ€λΉ μλ£!