From 0b463793be4edeebc4083dc72e362e4b5c813297 Mon Sep 17 00:00:00 2001 From: Magiczerowxy Date: Sat, 31 Oct 2026 10:28:19 +0800 Subject: [PATCH] page-chat 0.1.5: README names the settings.json gateway port (#542) page-chat 0.1.5 documents the gateway port it now reads from magpie's settings.json (#534's follow-up). The README order now matches chat's code at 20a3898: MAGPIE_CHAT_GATEWAY, then MAGPIE_ADDR, then settings.json's port, then 127.0.0.1:3425. settings.json is listed as read for fonts and the port. Run: read the diff against packages/chat's gateway lookup at 20a3898. It is docs plus the version bump; no code changed, so no tests were run. Co-authored-by: Magiczerowxy --- packages/chat/README.md | 4 ++-- packages/chat/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": [