feat(web,agent): hosting H1–H4 — proxy, invoke, MCP stdio, cross-module db
Close GAP-01–05 with ext/web streaming reverse proxy and HTTP→## invoke, transitive object method lookup, corpus_search plugin ensure, and agent MCP server stdio so downstream apps can drop Python side relays. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2e068e66d4
commit
fc543f1ca5
31 files changed
+2765
-102
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: web hosting live server
|
||||
description: Listen with proxy (→ mock upstream) and invoke routes for gold.rs.
|
||||
import web:ext/web/web.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import demo:web-hosting-helpers.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
*p = > plugin.native_path name="web"*
|
||||
1. `p`
|
||||
> plugin.load path=`p`
|
||||
2. *
|
||||
> sys.exit code=1
|
||||
|
||||
*pg = > web.page title="hosting-live"*
|
||||
*app = > web.app page=`pg` host=127.0.0.1 port=18141*
|
||||
*app = > `app`.proxy path="/proxy/sse" upstream="http://127.0.0.1:18142/sse" stream=True methods="POST"*
|
||||
*app = > `app`.invoke path="/api/echo" fn="demo.echo" method="POST" body="json"*
|
||||
> `app`.listen
|
||||
Reference in new issue
Block a user