Edition Intelligence Platform
EDITION 智能平台
为在日本运营的 AI 智能体提供的缺失基础设施。
记忆 API + 法规检查 API + 程序化知识 + MCP 服务器 —— 专为日本商业环境打造。
问题所在
与日本企业合作的 AI 智能体常会遇到通用工具无法解决的障碍:
敬语 (Keigo):像 “ワインをお持ちすれば喜ばれるかと存じます” 这样的句子隐藏了主语,使用了多层敬语,并表达了不确定性 —— 通用 NLP 会将其视为噪声
隐性协议:日本商业沟通很少直接表达意图
法规迷宫:10 多个行业存在重叠的国家/地方性法规,且大多数文档仅提供日语版本
缺乏持久化上下文:智能体在会话之间会丢失所有记忆
Related MCP server: Torify — Japanese Locale APIs for AI Agents
本平台的功能
1. 记忆 API — 具备日语感知能力的持久化记忆
存储片段,通过敬语分析、社会层级检测和置信度评分自动提取结构化事实。
Input: "佐藤部長にはワインをお持ちすれば喜ばれるかと存じます"
Output:
Subject: 佐藤 (役職: 部長)
Predicate: 好む
Object: ワイン
Keigo: Level 2 (尊敬語)
Hierarchy: superior
Confidence: 0.7 (推測 — not stated as fact)
Tense: present三层架构:
片段 (Episodes) — 原始对话日志
事实 (Facts) — 结构化知识(通过 LLM 自动提取)
上下文 (Context) — 每个实体/主题的摘要状态
2. 法规 API — 10 个行业 + 游客规则
预置法规数据库,涵盖:
电商网站、房地产、人力资源、餐饮服务、建筑
医疗保健、金融、交通、教育、住宿
游客类别:签证、免税、过境、医疗、礼仪
所有 10 个行业均包含分步程序指南(共 65 个步骤)—— 涵盖操作内容、方式、地点、所需文件、费用、时间表和常见陷阱。
curl -X POST /api/v1/regulation/check \
-d '{"industry": "food_service", "query": "What licenses do I need to open a restaurant in Tokyo?"}'3. MCP 服务器 — 为 Claude、Cursor 等提供的 8 个工具
工具 | 描述 |
| 存储片段 + 自动提取事实 |
| 跨片段语义搜索 |
| 列出结构化事实 |
| 获取上下文摘要 |
| 从文本中提取事实 |
| 按行业检查法规 |
| 列出涵盖的行业 |
| 游客法规查询 |
快速入门
后端
git clone https://github.com/hiroshic9-png/edition.git
cd edition
python3 -m venv venv && source venv/bin/activate
pip install fastapi 'uvicorn[standard]' pydantic sqlalchemy aiosqlite chromadb python-dotenv google-genai
# Set your LLM key (any one of these)
echo 'GEMINI_API_KEY=your_key' > .env
# or ANTHROPIC_API_KEY or OPENAI_API_KEY
python -m uvicorn backend.api.main:app --reload
# → http://localhost:8000/docsMCP 服务器 (适用于 Claude Desktop / Cursor)
cd mcp-server && npm install && npm run build && npm start添加到 claude_desktop_config.json:
{
"mcpServers": {
"edition": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"],
"env": {
"EDITION_API_URL": "http://localhost:8000",
"EDITION_API_KEY": "your_api_key"
}
}
}
}API 端点
记忆
方法 | 端点 | 描述 |
POST |
| 存储片段 (设置 |
POST |
| 语义搜索 |
POST |
| 添加事实 |
GET |
| 列出事实 |
GET |
| 上下文摘要 |
POST |
| 从文本中提取事实 |
法规
方法 | 端点 | 描述 |
POST |
| 检查法规 (10 个行业 + LLM RAG) |
GET |
| 列出行业 |
GET |
| 游客类别 |
技术栈
层级 | 技术 |
API | FastAPI (Python) |
记忆存储 | SQLite + ChromaDB (向量搜索) |
MCP | TypeScript SDK v1.29 |
LLM | Gemini / Claude / GPT (事实提取 + RAG) |
为什么不用 Mem0 / Letta / Zep?
这些都是优秀的通用记忆工具。但它们无法:
解析日语敬语级别 (丁寧語 / 尊敬語 / 謙譲語)
从敬语模式中检测隐性社会层级
根据日语表达模式(断定 vs 推测 vs 传闻)进行置信度评分
包含日本法规数据库
本项目存在的意义在于:日本商业环境在结构上是独特的,智能体需要专门构建的基础设施来应对这些挑战。
许可证
MIT
Available Tools
31 toolscalendar_checkARead-onlyIdempotent
日本のビジネスカレンダー情報を検索します。祝日、決算期、贈答シーズン、行政締切、季節性ビジネスの5カテゴリ。
Inputs: query (required).
calendar_listARead-onlyIdempotent
日本のビジネスカレンダーの全カテゴリ一覧を取得します。
Inputs: no named parameters.
daily_life_listARead-onlyIdempotent
日本の日常生活知識のトピック一覧を取得します。
Inputs: no named parameters.
daily_life_searchARead-onlyIdempotent
日本の日常生活に関する知識を検索します。住所・郵便システム、ゴミ分別ルール、公共料金(電気・ガス・水道・NHK)、医療・健康保険制度。外国人が日本で生活するために必要な実用知識。
Inputs: query (required).
disaster_listARead-onlyIdempotent
日本の災害・安全知識のトピック一覧を取得します。
Inputs: no named parameters.
disaster_searchARead-onlyIdempotent
日本の災害・安全に関する知識を検索します。地震(震度スケール・緊急地震速報・耐震基準)、台風・水害(警戒レベル・計画運休)、緊急連絡先(110/119/多言語対応)、防災準備(防災バッグ・ハザードマップ・避難所マナー)。
Inputs: query (required).
entertainment_listARead-onlyIdempotent
日本のエンタメ知識のトピック一覧を取得します。
Inputs: no named parameters.
entertainment_searchARead-onlyIdempotent
日本のエンターテインメント・ポップカルチャーに関する知識を検索します。推し活(チケット取得・転売法)、アニメ聖地巡礼、ライブマナー(ペンライト・コール)、季節イベント(花見・花火・初詣)。
Inputs: query (required).
food_listARead-onlyIdempotent
日本の食文化知識のトピック一覧を取得します。
Inputs: no named parameters.
food_searchARead-onlyIdempotent
日本の食文化に関する知識を検索します。食事マナー(箸のタブー・乾杯・割り勘)、料理分類(懐石・定食・ラーメン・郷土料理)、飲食店ガイド(食券機・居酒屋・回転寿司・おまかせ)、アレルギー・食制限(ハラル・ベジタリアン対応)。
Inputs: query (required).
foreign_entry_checkBRead-onlyIdempotent
外国企業・外国人の日本進出に必要な基盤知識を検索します。法人設立、経営管理ビザ、銀行口座開設、物件探し、税務届出、従業員雇用(労働法・解雇規制・社会保険)の6カテゴリ。
Inputs: query (required).
foreign_entry_listARead-onlyIdempotent
外国企業・外国人の日本進出に関する知識カテゴリの一覧を取得します。
Inputs: no named parameters.
language_listBRead-onlyIdempotent
日本語知識のトピック一覧を取得します。
Inputs: no named parameters.
language_searchARead-onlyIdempotent
日本語の構造的知識を検索します。敬語体系(尊敬語・謙譲語・丁寧語)、助数詞(数え方)、名前・住所の構造パターン、ビジネス日本語(電話応対・クッション言葉・メールテンプレート)。
Inputs: query (required).
memory_contextARead-onlyIdempotent
現在のセッション状態(有効な事実・合意事項のサマリー)を取得します。エージェントのプロンプトに注入して文脈を維持するために使います。
Inputs: session_id.
memory_extractAIdempotent
テキストからファクト(主語→述語→目的語の三つ組)を自動抽出します。日本語の敬語・主語省略・社会的階層を分析して構造化します。store=trueにすると抽出結果をメモリに永続保存します(書き込み発生)。store=false(デフォルト)なら読み取り専用で、保存せずに抽出結果のみ返します。memory_storeとの違い: memory_storeはエピソード全体を保存、memory_extractはテキストからファクトのみを抽出。
Inputs: text (required), store, context_hint.
memory_factsARead-onlyIdempotent
現在有効なファクト(構造化された事実)の一覧を取得します。ファクトは「主語→述語→目的語」の三つ組で、確度と有効期限を持ちます。
Inputs: valid_only.
memory_recallARead-onlyIdempotent
過去の記憶をセマンティック検索で呼び出します。「前回の会議で○○部長が仰った件」のような曖昧な日本語クエリにも対応します。
Inputs: query (required), limit.
memory_storeA
会話やイベントのエピソードを永続記憶に保存します。日本語の文脈(敬語レベル、主語省略、暗黙の了解)も構造化して保持します。auto_extract=trueにすると、テキストからファクト(主語→述語→目的語の三つ組)を自動抽出します。
Inputs: content (required), role, session_id, auto_extract.
organization_checkARead-onlyIdempotent
日本の組織構造・商慣行を検索します。役職体系、系列、支払慣行、契約慣行、業界団体。
Inputs: query (required).
organization_listARead-onlyIdempotent
日本の組織構造・商慣行の全カテゴリ一覧を取得します。
Inputs: no named parameters.
protocol_checkARead-onlyIdempotent
日本のビジネスプロトコル(根回し、稟議、報連相、名刺交換、席順、贈答)を検索します。
Inputs: query (required).
protocol_listARead-onlyIdempotent
日本のビジネスプロトコルの一覧を取得します。
Inputs: no named parameters.
regional_checkARead-onlyIdempotent
日本の地域別ビジネス情報を検索します。主要都市の特性、自治体の助成金・補助金、地域条例、商慣習の違い。
Inputs: query (required).
regional_listARead-onlyIdempotent
日本の地域別ビジネス情報の全カテゴリ一覧を取得します。
Inputs: no named parameters.
regulation_checkARead-onlyIdempotent
特定のビジネスアクションに必要な日本の規制・許認可情報を回答します。10業種の詳細データベース + 訪日旅行者向け規制に対応。
Inputs: action (required), industry, entity_type.
regulation_industriesARead-onlyIdempotent
日本の規制データベースに登録されている業種の一覧を取得します。
Inputs: no named parameters.
regulation_touristARead-onlyIdempotent
訪日旅行者向けの規制・マナー情報のカテゴリ一覧を取得します。ビザ、免税、交通、宿泊、医療、マナーの6カテゴリ。
Inputs: no named parameters.
searchARead-onlyIdempotent
EDITION全14ドメインを横断検索します。1回のリクエストで規制・プロトコル・カレンダー・地域・組織・進出手続き・旅行・エンタメ・日常生活・日本語・食文化・災害安全の全12ドメインを同時検索。
Inputs: query (required).
travel_listARead-onlyIdempotent
日本の旅行知識のトピック一覧を取得します。
Inputs: no named parameters.
travel_searchARead-onlyIdempotent
日本の旅行・観光に関する知識を検索します。交通(新幹線・ICカード・タクシー)、宿泊(旅館マナー・ホテル)、飲食(ラーメン地域差・箸マナー・チップ不要)、実用情報(SIM・ATM・緊急連絡先・マナー)。
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Each tool targets a distinct domain or function, with clear boundaries between categories like calendar, disaster, food, and memory. Even the general search tool is explicitly for cross-domain queries, avoiding ambiguity with domain-specific searches.
Most tools follow a consistent domain_action pattern (e.g., calendar_check, daily_life_search). Memory tools use a different but internally consistent memory_ prefix, and the single 'search' tool stands out. Overall, the pattern is mostly predictable.
With 31 tools, the server is on the heavier side for a single platform. While the breadth of Japanese business and cultural knowledge justifies many tools, the count still feels slightly bloated, especially with many list/search pairs.
The tool surface covers a wide range of domains relevant to Japanese business and culture, including memory management. However, it lacks update or delete operations for any domain, limiting write functionality beyond memory storage.
Maintenance
Related MCP Connectors
Summon Japan: one MCP endpoint for free Japan data tools and human hands for physical tasks.
Free Japanese public-data tools for AI agents: holidays, business days, wareki, tax, postcodes.
17+ Japan MCP tools (weather/calendar v2/local-pack/enrich). x402 on Base, wallet-free trial.
Japan POI tools for AI agents: 2.94M facilities, station catchments, chains, grants and signals
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides Japanese UX conventions as an MCP server to help AI generate correct Japanese UI elements like proper name order, furigana, phone formats, and polite language. It includes tools for form generation, validation, keigo suggestions, and cultural adaptation for developers building Japanese-facing products.675 npmMIT
- AlicenseNot gradedqualityDmaintenanceTorify gives AI agents the Japanese locale primitives that standard libraries lack — imperial era date conversion (wareki), qualified invoice number validation with NTA registry lookup, corporate number lookup (法人番号), postal code resolution, name romanization (Hepburn), and kanji-to-kana conversion via Yahoo! JLP. 31 endpoints total. No authentication required for MCP. Pay-per-call $0.02/call viaMIT
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with comprehensive Japanese market intelligence through 27 MCP tools, covering corporate data, macroeconomics, financials, and environmental data from 14 integrated sources.-
- AlicenseAqualityDmaintenanceMCP server providing AI agents with access to Japanese data APIs (address, furigana, transit, diet, holiday, weather, houjin) via a pay-per-use x402 payment protocol.2866 npm2Apache 2.0