Skip to content

Commit 7adaf74

Browse files
chore: release packages (#386)
Releases: freee-mcp@0.23.0 [skip ci] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a38d2be commit 7adaf74

4 files changed

Lines changed: 25 additions & 25 deletions

File tree

.changeset/canonical-log-line.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/user-agent-logging.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# freee-mcp
22

3+
## 0.23.0
4+
5+
### Minor Changes
6+
7+
- [`a38d2be`](https://github.com/freee/freee-mcp/commit/a38d2be7717d624d30824a3f0e45ba0fb29a80f9): Remote モードのロギングを canonical log line パターンに再構成 ([#385](https://github.com/freee/freee-mcp/pull/385))
8+
9+
1 HTTP リクエスト = 1 ログ行 = 1 trace の形式で、リクエスト単位のメタデータ
10+
(method, status, duration, tool_calls, api_calls, errors) を 1 本の JSON ログに集約して出力します。
11+
既存の個別イベントログ (API request completed, Tool call completed 等) は削除。
12+
13+
- 新規ログフィールド: request_id, source_ip, user_id, session_id, http.\*, mcp.tool_calls[], api_calls[], errors[]
14+
- エラー発生時は `Error.cause` チェーンと stack trace を `errors[].chain` に含める (serialize-error 経由)
15+
- プライバシー保護: query 値や request body などユーザー入力はログに一切含まれない (型システムで強制)
16+
- 400/500 エラーも canonical log で自動捕捉 (従来ログに残らなかった 400 系をカバー)
17+
- pino.redact による defense-in-depth で stray log 経路からの漏洩も防止
18+
19+
### Patch Changes
20+
21+
- [`a38d2be`](https://github.com/freee/freee-mcp/commit/a38d2be7717d624d30824a3f0e45ba0fb29a80f9): Remote モードの canonical log line に inbound `user_agent` フィールドを追加、外部 freee API 向けの outbound User-Agent に transport mode (`stdio` / `remote`) を含めた ([#385](https://github.com/freee/freee-mcp/pull/385))
22+
23+
- Remote: MCP クライアントから届いた `User-Agent` ヘッダを 256 文字に切り詰め、`scrubErrorMessage` で数値 ID とメールをマスクした上で canonical log line に記録。Datadog で `@user_agent:ClaudeDesktop*` のように MCP クライアント別の分析が可能になる
24+
- Outbound: freee API への fetch で送る User-Agent を `freee-mcp/<version> (MCP Server; stdio; +url)` / `freee-mcp/<version> (MCP Server; remote; +url)` の 2 形式に分離。freee 側ログでどの transport からの呼び出しかを区別できる
25+
- 新モジュール `src/server/user-agent.ts` (`getUserAgent()` / `setUserAgentTransportMode()`) が `src/constants.ts` の旧 `USER_AGENT` 定数を置き換える。初期化はエントリポイント (`src/index.ts`, `src/sign/index.ts`, `src/server/http-server.ts`) で 1 度だけ実行
26+
327
## 0.22.1
428

529
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "freee-mcp",
4-
"version": "0.22.1",
4+
"version": "0.23.0",
55
"bin": {
66
"freee-mcp": "./bin/freee-mcp.js",
77
"freee-remote-mcp": "./bin/freee-remote-mcp.js",

0 commit comments

Comments
 (0)