diff --git a/packages/chat/README.md b/packages/chat/README.md index 6ef540c..2fe95c6 100644 --- a/packages/chat/README.md +++ b/packages/chat/README.md @@ -40,8 +40,8 @@ A plugin page runs in a sandboxed frame with no network (`connect-src 'none'`). ### What the service reads and sends -- From magpie's config folder (`$XDG_CONFIG_HOME/magpie` or `~/.config/magpie`): `caller-keys.json` (the first gateway key, sent as `Authorization: Bearer` to the gateway, so the chat's usage is counted on that key), `providers.json` and `routing.json` (icons), `settings.json` (fonts), `library.json` and `library/` (MCP servers, instructions, skills). -- To magpie's gateway: `MAGPIE_CHAT_GATEWAY` if set, else `MAGPIE_ADDR`, else `http://127.0.0.1:3425`. The key goes there, so set `MAGPIE_CHAT_GATEWAY` only to a gateway you trust. +- From magpie's config folder (`$XDG_CONFIG_HOME/magpie` or `~/.config/magpie`): `caller-keys.json` (the first gateway key, sent as `Authorization: Bearer` to the gateway, so the chat's usage is counted on that key), `providers.json` and `routing.json` (icons), `settings.json` (fonts, and the gateway `port` when the build writes one there), `library.json` and `library/` (MCP servers, instructions, skills). +- To magpie's gateway: `MAGPIE_CHAT_GATEWAY` if set, else `MAGPIE_ADDR`, else the `port` from magpie's `settings.json` (the portable build writes its real port there, e.g. `18086`), else `http://127.0.0.1:3425`. The key goes there, so set `MAGPIE_CHAT_GATEWAY` only to a gateway you trust. - To your MCP servers: what the model asks their tools, with the headers you configured for them. A stdio server's command is run as you configured it. ### Who can use the service diff --git a/packages/chat/package.json b/packages/chat/package.json index 3785836..37a9b16 100644 --- a/packages/chat/package.json +++ b/packages/chat/package.json @@ -1,6 +1,6 @@ { "name": "@magpie-community/page-chat", - "version": "0.1.4", + "version": "0.1.5", "description": "在 magpie 窗口里加一个「对话」页面:用 magpie 自己的模型、MCP 服务器、指令和技能聊天,支持图片与 LaTeX。A chat page inside magpie's window: talk with magpie's own models, MCP servers, instructions and skills, with images and LaTeX.", "author": "Magic_zero (https://github.com/Magiczerowxy)", "files": [