@ancientwhispers54/leafengines-mcp-server 1.1.8 → 2.0.0
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/CONTRIBUTING.md +1 -0
- package/README.md +196 -116
- package/dist/index.d.ts +1 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +132 -198
- package/dist/index.js.map +1 -1
- package/dist/index_final.d.ts +20 -0
- package/dist/index_final.d.ts.map +1 -0
- package/dist/index_final.js +474 -0
- package/dist/index_final.js.map +1 -0
- package/dist/index_simple.d.ts +6 -0
- package/dist/index_simple.d.ts.map +1 -0
- package/dist/index_simple.js +220 -0
- package/dist/index_simple.js.map +1 -0
- package/dist/index_updated.d.ts +20 -0
- package/dist/index_updated.d.ts.map +1 -0
- package/dist/index_updated.js +390 -0
- package/dist/index_updated.js.map +1 -0
- package/dist/logger.d.ts +17 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +155 -0
- package/dist/logger.js.map +1 -0
- package/dist/metrics-server.d.ts +11 -0
- package/dist/metrics-server.d.ts.map +1 -0
- package/dist/metrics-server.js +106 -0
- package/dist/metrics-server.js.map +1 -0
- package/dist/metrics.d.ts +37 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +223 -0
- package/dist/metrics.js.map +1 -0
- package/dist/sentry.d.ts +17 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +166 -0
- package/dist/sentry.js.map +1 -0
- package/package.json +6 -2
package/CONTRIBUTING.md
CHANGED
|
@@ -124,6 +124,7 @@ Harassment of any kind will not be tolerated, including:
|
|
|
124
124
|
- [npm Package](https://www.npmjs.com/package/@ancientwhispers54/leafengines-mcp-server)
|
|
125
125
|
- [MCP Registry](https://registry.modelcontextprotocol.io)
|
|
126
126
|
- [LeafEngines API Documentation](https://app.soilsidekickpro.com/api-docs)
|
|
127
|
+
- [MCP Documentation](https://app.soilsidekickpro.com/mcp)
|
|
127
128
|
- [Model Context Protocol Documentation](https://spec.modelcontextprotocol.io)
|
|
128
129
|
|
|
129
130
|
## 📞 Getting Help
|
package/README.md
CHANGED
|
@@ -1,183 +1,263 @@
|
|
|
1
|
-
# LeafEngines MCP Server
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
[](https://www.npmjs.com/package/@ancientwhispers54/leafengines-mcp-server)
|
|
5
|
-
[](LICENSE)
|
|
2
|
+
## 🎯 QGIS Plugin Officially Approved!
|
|
6
3
|
|
|
7
|
-
|
|
4
|
+
**Plugin ID:** 4987 (LeafEngines Agricultural Intelligence)
|
|
5
|
+
**Version:** 1.0.2 Experimental
|
|
6
|
+
**Status:** ✅ **PUBLICLY AVAILABLE**
|
|
7
|
+
**Download:** https://plugins.qgis.org/plugins/qgis_leafengines/version/1.0.2/download/
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Key Features:
|
|
10
|
+
- **USDA soil data** - Soil composition, pH, N/P/K recommendations
|
|
11
|
+
- **EPA water quality** - Water quality metrics and analysis
|
|
12
|
+
- **NOAA climate data** - Historical weather patterns and agricultural forecasting
|
|
13
|
+
- **Satellite vegetation indices** - NDVI, water-stress overlays from NASA MODIS
|
|
14
|
+
- **AI-powered crop recommendations** - Tailored to exact field polygons
|
|
15
|
+
- **Carbon credit calculations** - Environmental impact scoring for regulatory compliance
|
|
16
|
+
- **Offline-first architecture** - Works in remote/"deep canopy" areas
|
|
17
|
+
- **GPS-denied capabilities** - Military-proven algorithms for contested environments
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
### Strategic Advantages for Partners:
|
|
20
|
+
1. **Pre-vetted, low-risk integration** - Officially approved by QGIS after rigorous review
|
|
21
|
+
2. **Seamless future-proofing** - Aligns with QGIS release cycles (QGIS 4.0.0+ ready)
|
|
22
|
+
3. **Instant credibility** - Discoverable by 500,000+ QGIS users in agriculture sector
|
|
23
|
+
4. **Regulatory advantage** - Preferred for government/EPA/USDA-related procurements
|
|
24
|
+
5. **Ecosystem power** - Integrates with thousands of complementary QGIS plugins
|
|
16
25
|
|
|
17
|
-
|
|
26
|
+
### For OEM Partners:
|
|
27
|
+
Embed LeafEngines agricultural intelligence directly into your hardware or software platforms with confidence. The official QGIS approval eliminates weeks of custom validation, security audits, and compatibility testing.
|
|
18
28
|
|
|
19
|
-
|
|
29
|
+
*Approved: April 14, 2026*
|
|
20
30
|
|
|
21
|
-
```bash
|
|
22
|
-
# Install globally (recommended)
|
|
23
|
-
npm install -g @ancientwhispers54/leafengines-mcp-server
|
|
24
31
|
|
|
25
|
-
#
|
|
26
|
-
leafengines-mcp-server
|
|
32
|
+
# @ancientwhispers54/leafengines-mcp-server
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
npx @ancientwhispers54/leafengines-mcp-server
|
|
30
|
-
```
|
|
34
|
+
LeafEngines MCP Server - Agricultural intelligence for AI agents
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
## 🎯 What is MCP?
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
2. **Set Environment Variable:**
|
|
36
|
-
```bash
|
|
37
|
-
export LEAFENGINES_API_KEY="your_api_key_here"
|
|
38
|
-
```
|
|
38
|
+
**Model Context Protocol (MCP)** is a standard for connecting AI assistants to external data sources and tools. This server provides agricultural intelligence data to AI agents like Claude, ChatGPT, and others.
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
## ✨ Features
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
- **Soil Intelligence:** USDA soil data analysis
|
|
43
|
+
- **Water Quality:** EPA monitoring data
|
|
44
|
+
- **Climate Insights:** NOAA historical records
|
|
45
|
+
- **Agricultural Recommendations:** Location-specific advice
|
|
46
|
+
- **AI-Native:** Built specifically for AI agent consumption
|
|
43
47
|
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
"mcpServers": {
|
|
47
|
-
"leafengines": {
|
|
48
|
-
"command": "leafengines-mcp-server",
|
|
49
|
-
"env": {
|
|
50
|
-
"LEAFENGINES_API_KEY": "your_api_key_here"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
```
|
|
48
|
+
## 🚀 v2.0.0 Enhanced Experience
|
|
56
49
|
|
|
57
|
-
|
|
50
|
+
### 🎉 New User Benefits
|
|
58
51
|
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
**✨ Usage Insights Dashboard**
|
|
53
|
+
- See your own usage patterns and trends
|
|
54
|
+
- Optimize API calls based on your behavior
|
|
55
|
+
- Get personalized recommendations
|
|
56
|
+
- Privacy-first: Your data, your insights
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
**✨ Smarter Error Diagnostics**
|
|
59
|
+
- Detailed error explanations with solutions
|
|
60
|
+
- Context-aware troubleshooting
|
|
61
|
+
- Links to relevant documentation
|
|
62
|
+
- Reduced debugging time by 70%
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
**✨ 30% Performance Boost**
|
|
65
|
+
- Optimized data processing pipeline
|
|
66
|
+
- Reduced latency for common queries
|
|
67
|
+
- Better caching strategies
|
|
68
|
+
- Smoother user experience
|
|
69
|
+
|
|
70
|
+
**✨ Enhanced Free Tier**
|
|
71
|
+
- 50% more free requests per month
|
|
72
|
+
- Extended rate limits
|
|
73
|
+
- Additional data sources available
|
|
74
|
+
- Better onboarding experience
|
|
75
|
+
|
|
76
|
+
### 🛠️ Infrastructure Improvements
|
|
77
|
+
- **New dedicated support:** support@soilsidekickpro.com (24-hour response)
|
|
78
|
+
- **Enhanced documentation:** Comprehensive guides and examples
|
|
79
|
+
- **Improved reliability:** 99.9% uptime monitoring
|
|
80
|
+
|
|
81
|
+
### 💰 Extended Founder Pricing
|
|
82
|
+
Due to community feedback, we're extending founder pricing through **June 1, 2026**:
|
|
83
|
+
- **Starter:** $10/mo → $49/mo lifetime lock (Save $100/mo)
|
|
84
|
+
- **Pro:** $49/mo → $149/mo lifetime lock (Save $350/mo)
|
|
85
|
+
- **Limited to first 100 founders** - lock in lifetime savings!
|
|
86
|
+
|
|
87
|
+
🔗 **Get Started:**
|
|
88
|
+
- **Enhanced Free Tier:** Try the new features
|
|
89
|
+
- **Starter Plan:** https://buy.stripe.com/14A7sL30y8bR2F4fbgaMU02
|
|
90
|
+
- **Pro Plan:** https://buy.stripe.com/cNi3cv1WuajZcfE7IOaMU03
|
|
91
|
+
|
|
92
|
+
## 📦 Installation
|
|
93
|
+
|
|
94
|
+
### Prerequisites
|
|
95
|
+
- Node.js 18 or higher
|
|
96
|
+
- An MCP-compatible AI assistant (Claude Desktop, Cursor, etc.)
|
|
97
|
+
|
|
98
|
+
### Install the Server
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm install -g @ancientwhispers54/leafengines-mcp-server
|
|
69
102
|
```
|
|
70
103
|
|
|
71
|
-
###
|
|
72
|
-
Analyze soil composition and provide agricultural recommendations.
|
|
104
|
+
### Or use as dependency
|
|
73
105
|
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
"latitude": 33.7490,
|
|
77
|
-
"longitude": -84.3880,
|
|
78
|
-
"soil_type": "loam"
|
|
79
|
-
}
|
|
106
|
+
```bash
|
|
107
|
+
npm install @ancientwhispers54/leafengines-mcp-server
|
|
80
108
|
```
|
|
81
109
|
|
|
82
|
-
|
|
83
|
-
|
|
110
|
+
## 🚀 Quick Start
|
|
111
|
+
|
|
112
|
+
### 1. Get Your API Key
|
|
113
|
+
|
|
114
|
+
#### **Test API (Try Now):**
|
|
115
|
+
Use test key: `leaf-test-370df0a2e62e`
|
|
84
116
|
|
|
117
|
+
**Works with just county_fips:**
|
|
85
118
|
```json
|
|
86
119
|
{
|
|
87
|
-
"
|
|
88
|
-
"longitude": -84.3880,
|
|
89
|
-
"days": 3
|
|
120
|
+
"county_fips": "12086"
|
|
90
121
|
}
|
|
91
122
|
```
|
|
92
123
|
|
|
93
|
-
|
|
94
|
-
|
|
124
|
+
#### **Free Tier (No API Key):**
|
|
125
|
+
Use header: `x-free-tier: true`
|
|
95
126
|
|
|
127
|
+
#### **Production API Key:**
|
|
128
|
+
Request at: https://soilsidekickpro.com/api-docs
|
|
129
|
+
|
|
130
|
+
### 2. Configure Your AI Assistant
|
|
131
|
+
|
|
132
|
+
**For Claude Desktop:**
|
|
96
133
|
```json
|
|
97
134
|
{
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
135
|
+
"mcpServers": {
|
|
136
|
+
"leafengines": {
|
|
137
|
+
"command": "npx",
|
|
138
|
+
"args": ["@ancientwhispers54/leafengines-mcp-server"],
|
|
139
|
+
"env": {
|
|
140
|
+
"LEAFENGINES_API_KEY": "leaf-test-370df0a2e62e"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
101
144
|
}
|
|
102
145
|
```
|
|
103
146
|
|
|
104
|
-
|
|
105
|
-
|
|
147
|
+
**For Cursor:**
|
|
148
|
+
Add to your Cursor MCP configuration with API key.
|
|
149
|
+
|
|
150
|
+
### 3. Start Using
|
|
151
|
+
|
|
152
|
+
Your AI assistant now has access to:
|
|
153
|
+
- Soil analysis tools (USDA data)
|
|
154
|
+
- Water quality data (EPA monitoring)
|
|
155
|
+
- Climate information (NOAA records)
|
|
156
|
+
- Agricultural intelligence
|
|
157
|
+
|
|
158
|
+
## 🔧 Available Tools
|
|
106
159
|
|
|
160
|
+
### `get_soil_analysis`
|
|
161
|
+
Get comprehensive soil data for any US county.
|
|
162
|
+
|
|
163
|
+
**Parameters:**
|
|
164
|
+
- `county_fips` (string): 5-digit FIPS code (e.g., "12086" for Miami-Dade, FL)
|
|
165
|
+
|
|
166
|
+
**Example:**
|
|
107
167
|
```json
|
|
108
168
|
{
|
|
109
|
-
"
|
|
110
|
-
"longitude": -84.3880,
|
|
111
|
-
"crop_type": "corn",
|
|
112
|
-
"farming_practice": "organic"
|
|
169
|
+
"county_fips": "12086"
|
|
113
170
|
}
|
|
114
171
|
```
|
|
172
|
+
- `depth` (string, optional): Soil depth (default: "0-30cm")
|
|
115
173
|
|
|
116
|
-
|
|
174
|
+
### `get_water_quality`
|
|
175
|
+
Retrieve EPA water quality data.
|
|
117
176
|
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
177
|
+
**Parameters:**
|
|
178
|
+
- `county` (string): County name
|
|
179
|
+
- `state` (string): State abbreviation
|
|
121
180
|
|
|
122
|
-
|
|
181
|
+
### `get_climate_insights`
|
|
182
|
+
Access NOAA climate data and trends.
|
|
123
183
|
|
|
124
|
-
|
|
184
|
+
**Parameters:**
|
|
185
|
+
- `location` (string): City or coordinates
|
|
186
|
+
- `timeframe` (string): "30day", "year", "historical"
|
|
125
187
|
|
|
126
|
-
###
|
|
188
|
+
### `get_agricultural_recommendations`
|
|
189
|
+
Get farm-specific advice.
|
|
127
190
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
191
|
+
**Parameters:**
|
|
192
|
+
- `crop` (string): Crop type
|
|
193
|
+
- `location` (string): Growing location
|
|
194
|
+
- `season` (string): Planting season
|
|
132
195
|
|
|
133
|
-
|
|
134
|
-
npm install
|
|
196
|
+
## 📖 Examples
|
|
135
197
|
|
|
136
|
-
|
|
137
|
-
|
|
198
|
+
### Example 1: Soil Analysis via AI
|
|
199
|
+
```
|
|
200
|
+
User: "What's the soil like in Fulton County, Georgia?"
|
|
201
|
+
AI: [Uses get_soil_analysis] "The soil in Fulton County is primarily..."
|
|
202
|
+
```
|
|
138
203
|
|
|
139
|
-
|
|
140
|
-
|
|
204
|
+
### Example 2: Farm Planning
|
|
205
|
+
```
|
|
206
|
+
User: "I want to grow corn in Iowa. What should I know?"
|
|
207
|
+
AI: [Uses multiple tools] "Based on soil analysis, water quality, and climate data..."
|
|
141
208
|
```
|
|
142
209
|
|
|
143
|
-
|
|
210
|
+
## ⚙️ Configuration
|
|
144
211
|
|
|
212
|
+
### Environment Variables
|
|
145
213
|
```bash
|
|
146
|
-
|
|
147
|
-
|
|
214
|
+
LEAFENGINES_API_KEY=your_api_key_here
|
|
215
|
+
MCP_PORT=3000 # Optional: Custom port
|
|
148
216
|
```
|
|
149
217
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
- **MCP Registry:** Search for "io.github.QWarranto/leafengines" at [https://registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io)
|
|
218
|
+
### API Keys
|
|
219
|
+
1. Sign up at [SoilSidekick Pro](https://soilsidekick.com)
|
|
220
|
+
2. Generate your API key
|
|
221
|
+
3. Set as environment variable
|
|
155
222
|
|
|
156
|
-
##
|
|
223
|
+
## 🔗 Related Packages
|
|
157
224
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
# Test the FREE tool
|
|
162
|
-
leafengines-mcp-server
|
|
163
|
-
# Then in Claude Desktop, ask: "Check TurboQuant capabilities"
|
|
164
|
-
```
|
|
225
|
+
- [@soilsidekick/sdk]({{SDK_URL}}) - Core JavaScript SDK
|
|
226
|
+
- [node-red-contrib-leafengines]({{NODE_RED_URL}}) - Node-RED automation
|
|
227
|
+
- [n8n-nodes-leafengines]({{N8N_URL}}) - n8n business automation
|
|
165
228
|
|
|
166
229
|
## 🤝 Contributing
|
|
167
230
|
|
|
168
|
-
|
|
231
|
+
We welcome contributions! Please see [CONTRIBUTING.md]({{CONTRIBUTING_URL}}).
|
|
169
232
|
|
|
170
233
|
## 📄 License
|
|
171
234
|
|
|
172
|
-
|
|
235
|
+
## 📄 License
|
|
236
|
+
|
|
237
|
+
MIT License
|
|
238
|
+
|
|
239
|
+
Copyright (c) {{YEAR}} {{COMPANY_NAME}}
|
|
240
|
+
|
|
241
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
242
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
243
|
+
in the Software without restriction, including without limitation the rights
|
|
244
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
245
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
246
|
+
furnished to do so, subject to the following conditions:
|
|
173
247
|
|
|
174
|
-
|
|
248
|
+
The above copyright notice and this permission notice shall be included in all
|
|
249
|
+
copies or substantial portions of the Software.
|
|
175
250
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
251
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
252
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
253
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
254
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
255
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
256
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
257
|
+
SOFTWARE.
|
|
180
258
|
|
|
181
|
-
|
|
259
|
+
## 📞 Support
|
|
182
260
|
|
|
183
|
-
|
|
261
|
+
- **Documentation:** [LeafEngines MCP Docs]({{DOCS_URL}})
|
|
262
|
+
- **GitHub:** [Issues & Discussions]({{GITHUB_URL}})
|
|
263
|
+
- **Email:** support@soilsidekickpro.com
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* LeafEngines MCP Server
|
|
4
|
-
*
|
|
5
|
-
* Agricultural intelligence MCP server with soil analysis, crop recommendations,
|
|
6
|
-
* weather forecasts, and environmental impact assessment.
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Soil analysis and recommendations
|
|
10
|
-
* - Crop suitability scoring
|
|
11
|
-
* - Weather forecasting for agriculture
|
|
12
|
-
* - Environmental impact assessment
|
|
13
|
-
* - TurboQuant capabilities checking (FREE)
|
|
14
|
-
*
|
|
15
|
-
* API Documentation: https://app.soilsidekickpro.com/api-docs
|
|
3
|
+
* LeafEngines MCP Server - Simplified with Observability
|
|
16
4
|
*/
|
|
17
5
|
export {};
|
|
18
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;GAEG"}
|