| refactor: extract shared url_parse for http/https/ws/wss Extract URL parsing into infra/url_parse.c, replacing 6 duplicate hand-written parsers across the codebase. Supports http, https, ws, wss schemes with host, port, path extraction. Consumers migrated: mcp_client, cmd_llm, feishu_http, weixin_channel, tool_fetch_url, xiaozhi_channel. Fixes: empty host validation, wss:// scheme bypass in fetch_url, path buffer expanded to 256 bytes for long query strings. Verified on QEMU emulator: feishu WSS connect, fetch_url HTTPS, set_llm URL parsing all pass. Signed-off-by: zhouwenjie1 <zhouwenjie1@xiaomi.com> | 1 个月前 |
| mcp: add HTTP transport for remote MCP clients Add HTTP transport to mcp_server alongside existing stdio transport. Remote MCP clients can now discover and call all device tools via standard MCP protocol over POST /mcp on the ws_server port (28789). - mcp_server.c: add HTTP JSON-RPC handler (initialize, tools/list, tools/call) bridging to main tool_registry - mcp_server.h: declare mcp_server_try_handle_http() - ws_server.c: add MCP to request routing chain (A2A -> MCP -> WS) | 1 个月前 |
| mcp: add HTTP transport for remote MCP clients Add HTTP transport to mcp_server alongside existing stdio transport. Remote MCP clients can now discover and call all device tools via standard MCP protocol over POST /mcp on the ws_server port (28789). - mcp_server.c: add HTTP JSON-RPC handler (initialize, tools/list, tools/call) bridging to main tool_registry - mcp_server.h: declare mcp_server_try_handle_http() - ws_server.c: add MCP to request routing chain (A2A -> MCP -> WS) | 1 个月前 |
| refactor: extract shared url_parse for http/https/ws/wss Extract URL parsing into infra/url_parse.c, replacing 6 duplicate hand-written parsers across the codebase. Supports http, https, ws, wss schemes with host, port, path extraction. Consumers migrated: mcp_client, cmd_llm, feishu_http, weixin_channel, tool_fetch_url, xiaozhi_channel. Fixes: empty host validation, wss:// scheme bypass in fetch_url, path buffer expanded to 256 bytes for long query strings. Verified on QEMU emulator: feishu WSS connect, fetch_url HTTPS, set_llm URL parsing all pass. Signed-off-by: zhouwenjie1 <zhouwenjie1@xiaomi.com> | 1 个月前 |