mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
feat(mcp): integrate netx via netx_mcp and improve MCP install
- Gate builtin netx tools; ops docs/skills use mcp__netx__* - Import Cursor mcpServers JSON; pass env_schema defaults to subprocess - Allow source_type=local; UTF-8 MCP stdio on Windows Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
bbd7b0300f
commit
a0a3f4b65f
17 changed files with 408 additions and 536 deletions
|
|
@ -2820,7 +2820,7 @@ def build_admin_router() -> APIRouter:
|
|||
_require_permission(ctx, "admin:tenant:write")
|
||||
source_type = str(payload.get("source_type") or "").strip().lower()
|
||||
source_ref = str(payload.get("source_ref") or "").strip()
|
||||
if source_type not in {"github", "npm", "pypi"} or not source_ref:
|
||||
if source_type not in {"github", "npm", "pypi", "local"} or not source_ref:
|
||||
return {"ok": False, "error": "invalid_source"}
|
||||
server_id = _safe_server_id(str(payload.get("server_id") or source_ref))
|
||||
manifest = McpServerManifest(
|
||||
|
|
@ -3169,7 +3169,7 @@ def build_admin_router() -> APIRouter:
|
|||
_require_permission(ctx, "admin:tenant:write")
|
||||
source_type = str(payload.get("source_type") or "").strip().lower()
|
||||
source_ref = str(payload.get("source_ref") or "").strip()
|
||||
if source_type not in {"github", "npm", "pypi"} or not source_ref:
|
||||
if source_type not in {"github", "npm", "pypi", "local"} or not source_ref:
|
||||
return {"ok": False, "error_code": "mcp_invalid_source", "error": "invalid_source"}
|
||||
manifest = McpServerManifest(
|
||||
server_id=_safe_server_id(str(payload.get("server_id") or source_ref)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue