kundali-chart-mcp 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,17 +112,65 @@ Then restart your IDE. That's it.
|
|
|
112
112
|
|
|
113
113
|
---
|
|
114
114
|
|
|
115
|
-
## 🏗 Self-Host
|
|
115
|
+
## 🏗 Self-Host Your Own
|
|
116
|
+
|
|
117
|
+
Don't want to use the shared backend? Deploy in 5 minutes.
|
|
118
|
+
|
|
119
|
+
### Prerequisites
|
|
120
|
+
|
|
121
|
+
- [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli) installed
|
|
122
|
+
- An Azure account ([free trial](https://azure.microsoft.com/free) works)
|
|
123
|
+
|
|
124
|
+
### Deploy
|
|
116
125
|
|
|
117
126
|
```bash
|
|
118
|
-
|
|
127
|
+
# Login to Azure
|
|
128
|
+
az login
|
|
129
|
+
|
|
130
|
+
# Create resource group
|
|
131
|
+
az group create --name kundali-rg --location eastus
|
|
132
|
+
|
|
133
|
+
# Create storage account (needs globally unique name)
|
|
134
|
+
az storage account create --name kundalistorage$RANDOM \
|
|
135
|
+
--resource-group kundali-rg --location eastus --sku Standard_LRS
|
|
136
|
+
|
|
137
|
+
# Create function app
|
|
138
|
+
az functionapp create --name kundali-mcp-func \
|
|
139
|
+
--resource-group kundali-rg \
|
|
140
|
+
--storage-account kundalistorage \
|
|
141
|
+
--consumption-plan-location eastus \
|
|
142
|
+
--runtime python --runtime-version 3.11 \
|
|
143
|
+
--os-type Linux --functions-version 4
|
|
144
|
+
|
|
145
|
+
# Deploy the code
|
|
119
146
|
./deploy.sh
|
|
120
147
|
```
|
|
121
148
|
|
|
149
|
+
### Use your own URL
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
kundali-chart-mcp https://kundali-mcp-func.azurewebsites.net
|
|
153
|
+
kundali-chart-mcp-setup
|
|
154
|
+
```
|
|
155
|
+
|
|
122
156
|
---
|
|
123
157
|
|
|
124
|
-
## 📡 API
|
|
158
|
+
## 📡 Direct API (without MCP)
|
|
159
|
+
|
|
160
|
+
You can also call the backend directly — no MCP client needed.
|
|
161
|
+
|
|
162
|
+
### Base URL
|
|
163
|
+
```
|
|
164
|
+
https://kundali-mcp-func.azurewebsites.net/api/kundali/{toolName}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Health check
|
|
168
|
+
```bash
|
|
169
|
+
curl -X POST https://kundali-mcp-func.azurewebsites.net/api/kundali/health \
|
|
170
|
+
-H "Content-Type: application/json" -d '{}'
|
|
171
|
+
```
|
|
125
172
|
|
|
173
|
+
### Generate kundali
|
|
126
174
|
```bash
|
|
127
175
|
curl -X POST https://kundali-mcp-func.azurewebsites.net/api/kundali/generate_kundali \
|
|
128
176
|
-H "Content-Type: application/json" -d '{
|
|
@@ -136,6 +184,29 @@ curl -X POST https://kundali-mcp-func.azurewebsites.net/api/kundali/generate_kun
|
|
|
136
184
|
}'
|
|
137
185
|
```
|
|
138
186
|
|
|
187
|
+
### List available tools
|
|
188
|
+
```bash
|
|
189
|
+
curl -X POST https://kundali-mcp-func.azurewebsites.net/api/kundali/list_available_chart_types \
|
|
190
|
+
-H "Content-Type: application/json" -d '{}'
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Response format
|
|
194
|
+
|
|
195
|
+
All endpoints return JSON:
|
|
196
|
+
```json
|
|
197
|
+
{
|
|
198
|
+
"name": "Rahul",
|
|
199
|
+
"birth_details": {
|
|
200
|
+
"datetime": "1990-08-15T06:30:00",
|
|
201
|
+
"latitude": 19.076,
|
|
202
|
+
"longitude": 72.8777,
|
|
203
|
+
"timezone": "Asia/Kolkata"
|
|
204
|
+
},
|
|
205
|
+
"planetary_positions": [...],
|
|
206
|
+
"houses": [...]
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
139
210
|
---
|
|
140
211
|
|
|
141
212
|
## 📝 License
|