@netpad/mcp-server 0.2.0 → 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/CHANGELOG.md +130 -0
- package/README.md +226 -104
- package/dist/index.js +6309 -850
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,136 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.0] - 2026-01-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
This major release expands the MCP server from 22 tools to **75 tools**, adding comprehensive support for applications, workflows, marketplace, conversational forms, and data browsing.
|
|
13
|
+
|
|
14
|
+
#### Application Management Tools (7 new tools)
|
|
15
|
+
- `list_application_templates` - List available application templates (contact-app, support-portal, event-registration, etc.)
|
|
16
|
+
- `get_application_template` - Get detailed template information with forms, workflows, and contracts
|
|
17
|
+
- `create_application` - Generate code to create a new NetPad application
|
|
18
|
+
- `generate_application_contract` - Generate API contracts defining inputs, outputs, and side effects
|
|
19
|
+
- `generate_application_release` - Generate release configuration with semantic versioning
|
|
20
|
+
- `generate_export_bundle` - Generate export bundle structure for sharing
|
|
21
|
+
- `preview_application_config` - Preview application configuration before creation
|
|
22
|
+
|
|
23
|
+
#### Marketplace & npm Integration Tools (8 new tools)
|
|
24
|
+
- `list_marketplace_categories` - List marketplace categories (business, events, feedback, etc.)
|
|
25
|
+
- `search_marketplace` - Search marketplace for applications with filters
|
|
26
|
+
- `publish_to_marketplace` - Generate code to publish an application to marketplace
|
|
27
|
+
- `install_from_marketplace` - Generate code to install from marketplace
|
|
28
|
+
- `generate_npm_package` - Generate npm package.json with netpad configuration
|
|
29
|
+
- `sync_to_npm` - Generate code to sync application to npm registry
|
|
30
|
+
- `import_from_npm` - Generate code to import application from npm
|
|
31
|
+
- `validate_npm_package_name` - Validate npm package name format
|
|
32
|
+
|
|
33
|
+
#### Workflow Automation Tools (10 new tools)
|
|
34
|
+
- `list_workflow_node_types` - List 25+ workflow node types across categories
|
|
35
|
+
- `list_workflow_templates` - List workflow templates (form-to-email, lead-qualification, etc.)
|
|
36
|
+
- `get_workflow_template` - Get detailed workflow template configuration
|
|
37
|
+
- `create_workflow` - Generate code to create a workflow
|
|
38
|
+
- `add_workflow_node` - Generate code to add nodes to workflow
|
|
39
|
+
- `connect_workflow_nodes` - Generate code to connect workflow nodes
|
|
40
|
+
- `configure_workflow_trigger` - Generate trigger configuration
|
|
41
|
+
- `test_workflow` - Generate workflow test code
|
|
42
|
+
- `get_workflow_execution_history` - Generate execution history retrieval code
|
|
43
|
+
- `preview_workflow_config` - Preview workflow configuration
|
|
44
|
+
|
|
45
|
+
#### Conversational & Search Form Tools (11 new tools)
|
|
46
|
+
- `list_conversational_templates` - List AI-powered conversational form templates
|
|
47
|
+
- `get_conversational_template` - Get template details (it-helpdesk, customer-feedback, etc.)
|
|
48
|
+
- `create_conversational_form` - Create conversational forms with topics, personas, and extraction
|
|
49
|
+
- `configure_rag_settings` - Configure RAG (Retrieval-Augmented Generation) for forms
|
|
50
|
+
- `add_rag_document` - Generate code to upload documents for RAG
|
|
51
|
+
- `list_search_operators` - List search operators by field type
|
|
52
|
+
- `create_search_form` - Create MongoDB search forms with configurable operators
|
|
53
|
+
- `configure_search_operators` - Configure operators for specific fields
|
|
54
|
+
- `test_conversational_form` - Generate conversational form test code
|
|
55
|
+
- `test_search_form` - Generate search form test code
|
|
56
|
+
|
|
57
|
+
#### Enhanced Template Tools (5 new tools)
|
|
58
|
+
- `list_template_categories` - List 10 template categories
|
|
59
|
+
- `list_form_templates` - List 24 pre-built form templates
|
|
60
|
+
- `get_form_template` - Get detailed template with all fields and configuration
|
|
61
|
+
- `create_form_from_template` - Create form from template with customizations
|
|
62
|
+
- `preview_template_config` - Preview template configuration
|
|
63
|
+
|
|
64
|
+
#### Data Browser & Connection Tools (12 new tools)
|
|
65
|
+
- `list_connection_types` - List supported MongoDB connection types
|
|
66
|
+
- `generate_connection_config` - Generate connection vault configuration
|
|
67
|
+
- `list_query_templates` - List pre-built query templates
|
|
68
|
+
- `get_query_template` - Get specific query template
|
|
69
|
+
- `generate_data_browser_query` - Generate find/aggregate/distinct/count queries
|
|
70
|
+
- `generate_aggregation_pipeline` - Generate complex aggregation pipelines
|
|
71
|
+
- `generate_index_recommendations` - Get index suggestions based on query patterns
|
|
72
|
+
- `generate_schema_analysis` - Generate schema inference code
|
|
73
|
+
- `generate_data_export` - Generate data export code (JSON/CSV/XLSX)
|
|
74
|
+
- `generate_connection_test` - Generate connection test code
|
|
75
|
+
- `generate_list_databases` - Generate database listing code
|
|
76
|
+
- `generate_list_collections` - Generate collection listing code
|
|
77
|
+
|
|
78
|
+
#### New Resources (9 new resources)
|
|
79
|
+
- `netpad://reference/application-templates` - Application templates reference
|
|
80
|
+
- `netpad://reference/workflow-nodes` - Workflow node types reference
|
|
81
|
+
- `netpad://reference/workflow-templates` - Workflow templates reference
|
|
82
|
+
- `netpad://reference/conversational-templates` - Conversational form templates
|
|
83
|
+
- `netpad://reference/search-operators` - Search operators by field type
|
|
84
|
+
- `netpad://reference/form-templates` - 24 form templates
|
|
85
|
+
- `netpad://reference/template-categories` - Template categories
|
|
86
|
+
- `netpad://reference/connection-types` - MongoDB connection types
|
|
87
|
+
- `netpad://reference/query-templates` - Query templates
|
|
88
|
+
|
|
89
|
+
#### Form Templates (24 templates)
|
|
90
|
+
Added comprehensive form template library across 10 categories:
|
|
91
|
+
- **Business**: Contact Form, Lead Capture, Quote Request, Newsletter Signup
|
|
92
|
+
- **Events**: Event Registration, RSVP, Volunteer Signup, Webinar Registration
|
|
93
|
+
- **Feedback**: Customer Satisfaction, NPS Survey, Product Feedback, General Feedback
|
|
94
|
+
- **Support**: Support Ticket, Appointment Booking
|
|
95
|
+
- **E-commerce**: Order Form, Return Request
|
|
96
|
+
- **Healthcare**: Patient Intake (encrypted), Health Screening
|
|
97
|
+
- **HR**: Job Application
|
|
98
|
+
- **Finance**: Expense Report
|
|
99
|
+
- **Education**: Course Enrollment, Scholarship Application
|
|
100
|
+
- **Real Estate**: Property Inquiry, Rental Application
|
|
101
|
+
|
|
102
|
+
#### Conversational Form Templates (4 templates)
|
|
103
|
+
- `it-helpdesk` - IT support ticket collection through conversation
|
|
104
|
+
- `customer-feedback` - Customer experience feedback collection
|
|
105
|
+
- `lead-qualification` - Sales lead qualification with scoring
|
|
106
|
+
- `patient-intake` - Healthcare patient information gathering
|
|
107
|
+
|
|
108
|
+
#### Workflow Templates (5 templates)
|
|
109
|
+
- `form-to-email` - Send email notifications on form submission
|
|
110
|
+
- `form-to-database` - Save submissions to MongoDB
|
|
111
|
+
- `lead-qualification` - Qualify and route leads based on criteria
|
|
112
|
+
- `webhook-to-database` - Process incoming webhooks to database
|
|
113
|
+
- `scheduled-report` - Generate and send scheduled reports
|
|
114
|
+
|
|
115
|
+
### Changed
|
|
116
|
+
|
|
117
|
+
- Package version bumped from 0.1.0 to 2.0.0
|
|
118
|
+
- Description updated to reflect 75 tools
|
|
119
|
+
- Added keywords for new features (workflow, applications, marketplace, etc.)
|
|
120
|
+
|
|
121
|
+
### Technical Details
|
|
122
|
+
|
|
123
|
+
- 6 new tool modules added:
|
|
124
|
+
- `application-management-tools.ts` - Application lifecycle management
|
|
125
|
+
- `marketplace-tools.ts` - Marketplace and npm integration
|
|
126
|
+
- `workflow-tools.ts` - Workflow automation
|
|
127
|
+
- `conversational-search-tools.ts` - Conversational and search forms
|
|
128
|
+
- `template-tools.ts` - Enhanced form templates
|
|
129
|
+
- `data-browser-tools.ts` - MongoDB data browser
|
|
130
|
+
- Total tool count: 75 tools
|
|
131
|
+
- Total resources: 16 resources
|
|
132
|
+
- Built with TypeScript and tsup
|
|
133
|
+
- Uses @modelcontextprotocol/sdk v1.0.0
|
|
134
|
+
- Requires Node.js 18+
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
8
138
|
## [0.1.0] - 2025-01-03
|
|
9
139
|
|
|
10
140
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# @netpad/mcp-server
|
|
2
2
|
|
|
3
|
-
An MCP (Model Context Protocol) server
|
|
3
|
+
An MCP (Model Context Protocol) server for AI-assisted NetPad application development. This comprehensive toolkit provides **75 tools** for building forms, workflows, applications, and data-driven experiences with the NetPad platform.
|
|
4
|
+
|
|
5
|
+
## What's New in v2.0.0
|
|
6
|
+
|
|
7
|
+
- **Application Management**: Create, release, and manage NetPad applications with contracts
|
|
8
|
+
- **Marketplace & npm Integration**: Publish to marketplace and sync with npm registry
|
|
9
|
+
- **Workflow Automation**: 25+ node types for building automation workflows
|
|
10
|
+
- **Conversational Forms**: AI-powered data collection with RAG support
|
|
11
|
+
- **Search Forms**: MongoDB-powered search interfaces with configurable operators
|
|
12
|
+
- **25+ Form Templates**: Pre-built templates across 10 categories
|
|
13
|
+
- **Data Browser**: MongoDB connection management and query tools
|
|
4
14
|
|
|
5
15
|
## Features
|
|
6
16
|
|
|
@@ -8,20 +18,41 @@ An MCP (Model Context Protocol) server that helps developers build form applicat
|
|
|
8
18
|
- **Form Generation**: Generate complete form configurations from natural language descriptions
|
|
9
19
|
- **Field Configuration**: Create individual field configs with validation, conditional logic, and computed fields
|
|
10
20
|
- **Multi-Page Wizards**: Generate step-by-step form configurations
|
|
21
|
+
- **25+ Templates**: Pre-built templates for business, events, feedback, support, healthcare, and more
|
|
11
22
|
- **Validation**: Configure and validate form schemas
|
|
12
23
|
|
|
13
24
|
### Application Development
|
|
25
|
+
- **Application Management**: Create and manage NetPad applications with releases and contracts
|
|
26
|
+
- **Marketplace Publishing**: Publish applications to the NetPad marketplace
|
|
27
|
+
- **npm Integration**: Sync applications to npm for distribution
|
|
14
28
|
- **Next.js Scaffolding**: Generate complete Next.js applications with forms
|
|
15
|
-
- **Workflow Integration**: Connect forms to NetPad workflows for processing
|
|
16
|
-
- **MongoDB Queries**: Generate queries for form submission data
|
|
17
29
|
- **API Routes**: Generate Next.js API routes for form operations
|
|
18
30
|
|
|
19
|
-
###
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
31
|
+
### Workflow Automation
|
|
32
|
+
- **Visual Workflows**: Build automation with 25+ node types
|
|
33
|
+
- **Triggers**: Form submission, webhook, schedule, manual, API
|
|
34
|
+
- **Logic Nodes**: Conditional routing, switch, filter, loop
|
|
35
|
+
- **Data Nodes**: Transform, code execution, variable management
|
|
36
|
+
- **Integrations**: MongoDB, HTTP, Email, Slack, Google Sheets
|
|
37
|
+
|
|
38
|
+
### Conversational Forms & RAG
|
|
39
|
+
- **AI-Powered Forms**: Natural language data collection
|
|
40
|
+
- **Topic Management**: Define conversation topics with priority and depth
|
|
41
|
+
- **RAG Integration**: Knowledge-guided conversations with document retrieval
|
|
42
|
+
- **Persona Configuration**: Professional, friendly, casual, or empathetic styles
|
|
43
|
+
|
|
44
|
+
### Search Forms
|
|
45
|
+
- **MongoDB Search**: Build search interfaces for your data
|
|
46
|
+
- **Configurable Operators**: equals, contains, between, regex, and more
|
|
47
|
+
- **Result Views**: Table, cards, or list layouts
|
|
48
|
+
- **Smart Dropdowns**: Distinct values with counts
|
|
49
|
+
|
|
50
|
+
### Data Browser
|
|
51
|
+
- **Connection Management**: Atlas, self-hosted, and Atlas Data API support
|
|
52
|
+
- **Query Templates**: Pre-built queries for common operations
|
|
53
|
+
- **Aggregation Pipelines**: Complex data analysis
|
|
54
|
+
- **Schema Analysis**: Infer collection schemas
|
|
55
|
+
- **Index Recommendations**: Optimize query performance
|
|
25
56
|
|
|
26
57
|
## Installation
|
|
27
58
|
|
|
@@ -42,7 +73,7 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
42
73
|
```json
|
|
43
74
|
{
|
|
44
75
|
"mcpServers": {
|
|
45
|
-
"netpad
|
|
76
|
+
"netpad": {
|
|
46
77
|
"command": "npx",
|
|
47
78
|
"args": ["@netpad/mcp-server"]
|
|
48
79
|
}
|
|
@@ -57,7 +88,7 @@ Add to `~/.cursor/mcp.json`:
|
|
|
57
88
|
```json
|
|
58
89
|
{
|
|
59
90
|
"mcpServers": {
|
|
60
|
-
"netpad
|
|
91
|
+
"netpad": {
|
|
61
92
|
"command": "npx",
|
|
62
93
|
"args": ["@netpad/mcp-server"]
|
|
63
94
|
}
|
|
@@ -65,9 +96,9 @@ Add to `~/.cursor/mcp.json`:
|
|
|
65
96
|
}
|
|
66
97
|
```
|
|
67
98
|
|
|
68
|
-
## Available Tools (
|
|
99
|
+
## Available Tools (75 total)
|
|
69
100
|
|
|
70
|
-
### Form Building Tools
|
|
101
|
+
### Form Building Tools (6)
|
|
71
102
|
|
|
72
103
|
| Tool | Description |
|
|
73
104
|
|------|-------------|
|
|
@@ -78,17 +109,89 @@ Add to `~/.cursor/mcp.json`:
|
|
|
78
109
|
| `generate_multipage_config` | Generate multi-page wizard configuration |
|
|
79
110
|
| `validate_form_config` | Validate a form configuration |
|
|
80
111
|
|
|
81
|
-
### Application
|
|
112
|
+
### Application Management Tools (7)
|
|
82
113
|
|
|
83
114
|
| Tool | Description |
|
|
84
115
|
|------|-------------|
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
116
|
+
| `list_application_templates` | List available application templates |
|
|
117
|
+
| `get_application_template` | Get detailed template information |
|
|
118
|
+
| `create_application` | Generate code to create a new application |
|
|
119
|
+
| `generate_application_contract` | Generate API contract for an application |
|
|
120
|
+
| `generate_application_release` | Generate release configuration |
|
|
121
|
+
| `generate_export_bundle` | Generate export bundle structure |
|
|
122
|
+
| `preview_application_config` | Preview application configuration |
|
|
123
|
+
|
|
124
|
+
### Marketplace & npm Tools (8)
|
|
125
|
+
|
|
126
|
+
| Tool | Description |
|
|
127
|
+
|------|-------------|
|
|
128
|
+
| `list_marketplace_categories` | List marketplace categories |
|
|
129
|
+
| `search_marketplace` | Search marketplace for applications |
|
|
130
|
+
| `publish_to_marketplace` | Generate code to publish an application |
|
|
131
|
+
| `install_from_marketplace` | Generate code to install from marketplace |
|
|
132
|
+
| `generate_npm_package` | Generate npm package.json for application |
|
|
133
|
+
| `sync_to_npm` | Generate code to sync application to npm |
|
|
134
|
+
| `import_from_npm` | Generate code to import from npm |
|
|
135
|
+
| `validate_npm_package_name` | Validate npm package name |
|
|
136
|
+
|
|
137
|
+
### Workflow Tools (10)
|
|
138
|
+
|
|
139
|
+
| Tool | Description |
|
|
140
|
+
|------|-------------|
|
|
141
|
+
| `list_workflow_node_types` | List available workflow node types |
|
|
142
|
+
| `list_workflow_templates` | List workflow templates |
|
|
143
|
+
| `get_workflow_template` | Get detailed workflow template |
|
|
144
|
+
| `create_workflow` | Generate code to create a workflow |
|
|
145
|
+
| `add_workflow_node` | Generate code to add a node |
|
|
146
|
+
| `connect_workflow_nodes` | Generate code to connect nodes |
|
|
147
|
+
| `configure_workflow_trigger` | Generate trigger configuration |
|
|
148
|
+
| `test_workflow` | Generate workflow test code |
|
|
149
|
+
| `get_workflow_execution_history` | Generate execution history code |
|
|
150
|
+
| `preview_workflow_config` | Preview workflow configuration |
|
|
151
|
+
|
|
152
|
+
### Conversational & Search Form Tools (11)
|
|
90
153
|
|
|
91
|
-
|
|
154
|
+
| Tool | Description |
|
|
155
|
+
|------|-------------|
|
|
156
|
+
| `list_conversational_templates` | List conversational form templates |
|
|
157
|
+
| `get_conversational_template` | Get template details |
|
|
158
|
+
| `create_conversational_form` | Create AI-powered conversational form |
|
|
159
|
+
| `configure_rag_settings` | Configure RAG for a form |
|
|
160
|
+
| `add_rag_document` | Upload document for RAG |
|
|
161
|
+
| `list_search_operators` | List available search operators |
|
|
162
|
+
| `create_search_form` | Create MongoDB search form |
|
|
163
|
+
| `configure_search_operators` | Configure field operators |
|
|
164
|
+
| `test_conversational_form` | Generate test code |
|
|
165
|
+
| `test_search_form` | Generate search test code |
|
|
166
|
+
|
|
167
|
+
### Template Tools (5)
|
|
168
|
+
|
|
169
|
+
| Tool | Description |
|
|
170
|
+
|------|-------------|
|
|
171
|
+
| `list_template_categories` | List all template categories |
|
|
172
|
+
| `list_form_templates` | List 25+ form templates |
|
|
173
|
+
| `get_form_template` | Get detailed template |
|
|
174
|
+
| `create_form_from_template` | Create form from template |
|
|
175
|
+
| `preview_template_config` | Preview template configuration |
|
|
176
|
+
|
|
177
|
+
### Data Browser Tools (12)
|
|
178
|
+
|
|
179
|
+
| Tool | Description |
|
|
180
|
+
|------|-------------|
|
|
181
|
+
| `list_connection_types` | List supported connection types |
|
|
182
|
+
| `generate_connection_config` | Generate connection configuration |
|
|
183
|
+
| `list_query_templates` | List query templates |
|
|
184
|
+
| `get_query_template` | Get specific query template |
|
|
185
|
+
| `generate_data_browser_query` | Generate MongoDB queries |
|
|
186
|
+
| `generate_aggregation_pipeline` | Generate aggregation pipelines |
|
|
187
|
+
| `generate_index_recommendations` | Get index suggestions |
|
|
188
|
+
| `generate_schema_analysis` | Generate schema analysis code |
|
|
189
|
+
| `generate_data_export` | Generate data export code |
|
|
190
|
+
| `generate_connection_test` | Generate connection test code |
|
|
191
|
+
| `generate_list_databases` | Generate list databases code |
|
|
192
|
+
| `generate_list_collections` | Generate list collections code |
|
|
193
|
+
|
|
194
|
+
### Reference Tools (5)
|
|
92
195
|
|
|
93
196
|
| Tool | Description |
|
|
94
197
|
|------|-------------|
|
|
@@ -98,117 +201,136 @@ Add to `~/.cursor/mcp.json`:
|
|
|
98
201
|
| `list_validation_options` | List validation rule options |
|
|
99
202
|
| `list_theme_options` | List theme customization options |
|
|
100
203
|
|
|
101
|
-
### Helper Tools
|
|
204
|
+
### Helper Tools (11)
|
|
102
205
|
|
|
103
206
|
| Tool | Description |
|
|
104
207
|
|------|-------------|
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
208
|
+
| `scaffold_nextjs_app` | Generate a complete Next.js application |
|
|
209
|
+
| `generate_workflow_integration` | Generate workflow integration code |
|
|
210
|
+
| `generate_mongodb_query` | Generate MongoDB queries for form data |
|
|
211
|
+
| `generate_api_route` | Generate Next.js API routes |
|
|
212
|
+
| `generate_react_code` | Generate React components |
|
|
213
|
+
| `get_use_case_template` | Get pre-built use case templates |
|
|
214
|
+
| `suggest_form_fields` | Get field recommendations |
|
|
215
|
+
| `get_best_practices` | Get best practices guides |
|
|
108
216
|
| `debug_form_config` | Analyze form configuration for issues |
|
|
109
|
-
| `explain_error` | Explain error codes
|
|
217
|
+
| `explain_error` | Explain error codes with solutions |
|
|
110
218
|
| `get_documentation` | Access documentation topics |
|
|
111
219
|
|
|
112
|
-
##
|
|
220
|
+
## Form Templates (24)
|
|
113
221
|
|
|
114
|
-
|
|
222
|
+
Pre-built templates across 10 categories:
|
|
115
223
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
224
|
+
| Category | Templates |
|
|
225
|
+
|----------|-----------|
|
|
226
|
+
| **Business** | Contact Form, Lead Capture, Quote Request, Newsletter Signup |
|
|
227
|
+
| **Events** | Event Registration, RSVP, Volunteer Signup, Webinar Registration |
|
|
228
|
+
| **Feedback** | Customer Satisfaction, NPS Survey, Product Feedback, General Feedback |
|
|
229
|
+
| **Support** | Support Ticket, Appointment Booking |
|
|
230
|
+
| **E-commerce** | Order Form, Return Request |
|
|
231
|
+
| **Healthcare** | Patient Intake, Health Screening |
|
|
232
|
+
| **HR** | Job Application |
|
|
233
|
+
| **Finance** | Expense Report |
|
|
234
|
+
| **Education** | Course Enrollment, Scholarship Application |
|
|
235
|
+
| **Real Estate** | Property Inquiry, Rental Application |
|
|
126
236
|
|
|
127
|
-
|
|
237
|
+
## Conversational Form Templates
|
|
128
238
|
|
|
129
|
-
|
|
130
|
-
User: Scaffold a Next.js app for this contact form
|
|
131
|
-
|
|
132
|
-
Claude: [Uses scaffold_nextjs_app tool]
|
|
133
|
-
Here's your complete Next.js application:
|
|
134
|
-
- package.json with all dependencies
|
|
135
|
-
- Form page component with submission handling
|
|
136
|
-
- Layout with Material-UI theming
|
|
137
|
-
- Environment variable template
|
|
138
|
-
- Setup instructions
|
|
139
|
-
```
|
|
239
|
+
AI-powered data collection templates:
|
|
140
240
|
|
|
141
|
-
|
|
241
|
+
| Template | Use Case |
|
|
242
|
+
|----------|----------|
|
|
243
|
+
| `it-helpdesk` | IT support ticket collection |
|
|
244
|
+
| `customer-feedback` | Customer experience feedback |
|
|
245
|
+
| `lead-qualification` | Sales lead qualification |
|
|
246
|
+
| `patient-intake` | Healthcare patient information |
|
|
142
247
|
|
|
143
|
-
|
|
144
|
-
User: I want to save form submissions to MongoDB and send a notification email
|
|
145
|
-
|
|
146
|
-
Claude: [Uses generate_workflow_integration with 'full_pipeline' type]
|
|
147
|
-
Here's the integration code:
|
|
148
|
-
- NetPad client setup
|
|
149
|
-
- Form submission handler
|
|
150
|
-
- Workflow trigger with payload
|
|
151
|
-
- Status polling and error handling
|
|
152
|
-
- Example workflow configuration
|
|
153
|
-
```
|
|
248
|
+
## Workflow Templates
|
|
154
249
|
|
|
155
|
-
|
|
250
|
+
Pre-built automation patterns:
|
|
156
251
|
|
|
157
|
-
|
|
158
|
-
|
|
252
|
+
| Template | Description |
|
|
253
|
+
|----------|-------------|
|
|
254
|
+
| `form-to-email` | Send email on form submission |
|
|
255
|
+
| `form-to-database` | Save submissions to MongoDB |
|
|
256
|
+
| `lead-qualification` | Qualify and route leads |
|
|
257
|
+
| `webhook-to-database` | Process webhooks to database |
|
|
258
|
+
| `scheduled-report` | Generate scheduled reports |
|
|
259
|
+
|
|
260
|
+
## Resources
|
|
261
|
+
|
|
262
|
+
The server exposes documentation as MCP resources:
|
|
263
|
+
|
|
264
|
+
### Documentation
|
|
265
|
+
- `netpad://docs/readme` - Main documentation
|
|
266
|
+
- `netpad://docs/architecture` - Architecture guide
|
|
267
|
+
- `netpad://docs/quick-start` - Quick start guide
|
|
268
|
+
- `netpad://docs/examples` - Code examples
|
|
269
|
+
|
|
270
|
+
### References
|
|
271
|
+
- `netpad://reference/field-types` - Field type reference
|
|
272
|
+
- `netpad://reference/operators` - Operator reference
|
|
273
|
+
- `netpad://reference/formulas` - Formula function reference
|
|
274
|
+
- `netpad://reference/application-templates` - Application templates
|
|
275
|
+
- `netpad://reference/workflow-nodes` - Workflow node types
|
|
276
|
+
- `netpad://reference/workflow-templates` - Workflow templates
|
|
277
|
+
- `netpad://reference/conversational-templates` - Conversational form templates
|
|
278
|
+
- `netpad://reference/search-operators` - Search operators
|
|
279
|
+
- `netpad://reference/form-templates` - Form templates
|
|
280
|
+
- `netpad://reference/template-categories` - Template categories
|
|
281
|
+
- `netpad://reference/connection-types` - MongoDB connection types
|
|
282
|
+
- `netpad://reference/query-templates` - Query templates
|
|
159
283
|
|
|
160
|
-
|
|
161
|
-
## Error: 401
|
|
284
|
+
## Example Interactions
|
|
162
285
|
|
|
163
|
-
|
|
286
|
+
### Create an Application
|
|
164
287
|
|
|
165
|
-
**Solutions:**
|
|
166
|
-
1. Verify your API key is correct in environment variables
|
|
167
|
-
2. Check that the key starts with np_live_ or np_test_
|
|
168
|
-
3. Ensure the key has not been revoked in the NetPad dashboard
|
|
169
|
-
4. For test environments, use np_test_ prefixed keys
|
|
170
288
|
```
|
|
289
|
+
User: Create a customer feedback application with a survey form and email workflow
|
|
171
290
|
|
|
172
|
-
|
|
291
|
+
Claude: [Uses create_application, create_form_from_template, create_workflow tools]
|
|
292
|
+
Here's your complete application:
|
|
293
|
+
- Customer Feedback Application with NPS survey
|
|
294
|
+
- Workflow to send thank-you emails
|
|
295
|
+
- MongoDB storage for responses
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### Build a Search Interface
|
|
173
299
|
|
|
174
300
|
```
|
|
175
|
-
User:
|
|
176
|
-
|
|
177
|
-
Claude: [Uses
|
|
178
|
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
Tips:
|
|
185
|
-
- Ensure HIPAA compliance for health data
|
|
186
|
-
- Add clear consent checkboxes for data usage
|
|
301
|
+
User: I need a search form for my products collection
|
|
302
|
+
|
|
303
|
+
Claude: [Uses create_search_form tool]
|
|
304
|
+
Here's your search form with:
|
|
305
|
+
- Text search on name and description
|
|
306
|
+
- Category dropdown with distinct values
|
|
307
|
+
- Price range filter
|
|
308
|
+
- Results in table layout with pagination
|
|
187
309
|
```
|
|
188
310
|
|
|
189
|
-
|
|
311
|
+
### Create a Conversational Form
|
|
190
312
|
|
|
191
|
-
|
|
313
|
+
```
|
|
314
|
+
User: I want an AI-powered IT helpdesk intake form
|
|
192
315
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
| `explain-conditional-logic` | Explain how conditional logic works |
|
|
316
|
+
Claude: [Uses create_conversational_form with it-helpdesk template]
|
|
317
|
+
Here's your conversational form:
|
|
318
|
+
- Professional AI persona
|
|
319
|
+
- Topics: Issue type, urgency, description, environment
|
|
320
|
+
- Automatic data extraction to structured format
|
|
321
|
+
```
|
|
200
322
|
|
|
201
|
-
|
|
323
|
+
### Generate MongoDB Queries
|
|
202
324
|
|
|
203
|
-
|
|
325
|
+
```
|
|
326
|
+
User: I need to analyze form submissions by month
|
|
204
327
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
- `netpad://reference/formulas` - Formula function reference
|
|
328
|
+
Claude: [Uses generate_aggregation_pipeline tool]
|
|
329
|
+
Here's the aggregation pipeline:
|
|
330
|
+
- Groups submissions by year/month
|
|
331
|
+
- Counts per period
|
|
332
|
+
- Sorted chronologically
|
|
333
|
+
```
|
|
212
334
|
|
|
213
335
|
## Development
|
|
214
336
|
|
|
@@ -244,7 +366,7 @@ Or test via command line:
|
|
|
244
366
|
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js
|
|
245
367
|
|
|
246
368
|
# Call a tool
|
|
247
|
-
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"
|
|
369
|
+
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_form_templates","arguments":{}}}' | node dist/index.js
|
|
248
370
|
```
|
|
249
371
|
|
|
250
372
|
## Related Packages
|