You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mcp-web,examples): add HTTP request support and DuckDB example
- Introduce 'http-request' capability to mcp-web.yaml, enabling RESTful operations
with read/write mode control and input validation
- Add DuckDB database example to oafp-examples.yaml, demonstrating local DB usage
These changes expand web automation features and provide new database usage guidance.
Copy file name to clipboardExpand all lines: ai/mcps/mcp-web.yaml
+91-5Lines changed: 91 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,13 @@ help:
6
6
desc : If defined starts a MCP server on the provided port
7
7
example : "8888"
8
8
mandatory: false
9
+
- name : readwrite
10
+
desc : If true, allows mutating HTTP methods in http-request (POST, PUT, PATCH, DELETE)
11
+
example : "true"
12
+
mandatory: false
9
13
10
14
todo:
15
+
- Init web context
11
16
- (if ): "isDef(args.onport)"
12
17
((then)):
13
18
- (httpdStart ): "${onport:-8080}"
@@ -65,9 +70,40 @@ todo:
65
70
readOnlyHint : true
66
71
idempotentHint: true
67
72
73
+
http-request:
74
+
name : http-request
75
+
description: Executes HTTP REST requests against a URL and returns the raw $rest response map (GET and HEAD are allowed in read-only mode; POST/PUT/PATCH/DELETE require readwrite=true).
76
+
inputSchema:
77
+
type : object
78
+
properties:
79
+
url:
80
+
type : string
81
+
description: The URL to request.
82
+
method:
83
+
type : string
84
+
description: HTTP method to use. HEAD is supported and does not require readwrite=true.
85
+
enum : [ GET, HEAD, POST, PUT, PATCH, DELETE ]
86
+
default : GET
87
+
data:
88
+
type : object
89
+
description: Optional request payload map for POST, PUT and PATCH methods.
90
+
headers:
91
+
type : object
92
+
description: Optional request headers map used for non-GET methods.
93
+
throwExceptions:
94
+
type : boolean
95
+
description: If true, non-2xx responses throw exceptions when using non-GET methods.
oafp libs="@jdbc-duckdb/jdbc-duckdb.js" in=db indbjdbc="jdbc:duckdb:test.db" data="select isFile, count(*) as number_of_files, sum(size) sum_size from data group by isFile" out=ctable
0 commit comments