Skip to main content
Glama
Edition Intelligence Platform

Edition Intelligence Platform

EDITION インテリジェンス・プラットフォーム

日本で活動するAIエージェントのための、欠けていたインフラストラクチャ。

メモリAPI + 規制チェックAPI + 手続き知識 + MCPサーバー — 日本のビジネス環境に特化して構築されています。


課題

日本企業と連携するAIエージェントは、汎用ツールでは解決できない壁に直面します:

  • 敬語: *「ワインをお持ちすれば喜ばれるかと存じます」*のような文章は、主語を隠し、重層的な敬語を使い、不確実性を表現します。汎用的な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

3層アーキテクチャ:

  • エピソード — 生の会話ログ

  • 事実 — 構造化された知識(LLMにより自動抽出)

  • コンテキスト — エンティティ/トピックごとの要約された状態

2. 規制API — 10業界 + 観光ルール

以下を網羅する構築済みの規制データベース:

  • ECサイト、不動産、人材派遣、飲食、建設

  • 医療、金融、運輸、教育、宿泊

  • 観光カテゴリー:ビザ、免税、乗り継ぎ、医療、マナー

全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つのツール

ツール

説明

memory_store

エピソードの保存 + 事実の自動抽出

memory_recall

エピソード間のセマンティック検索

memory_facts

構造化された事実のリスト表示

memory_context

コンテキスト要約の取得

memory_extract

テキストからの事実抽出

regulation_check

業界ごとの規制チェック

regulation_industries

対象業界のリスト表示

regulation_tourist

観光規制の検索

クイックスタート

バックエンド

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/docs

MCPサーバー (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

/api/v1/memory/episodes

エピソードの保存 (事実の自動抽出には auto_extract=true を設定)

POST

/api/v1/memory/episodes/search

セマンティック検索

POST

/api/v1/memory/facts

事実の追加

GET

/api/v1/memory/facts

事実のリスト表示

GET

/api/v1/memory/context

コンテキスト要約

POST

/api/v1/memory/extract

テキストからの事実抽出

規制

メソッド

エンドポイント

説明

POST

/api/v1/regulation/check

規制チェック (10業界 + LLM RAG)

GET

/api/v1/regulation/industries

業界リスト

GET

/api/v1/regulation/tourist

観光カテゴリー

技術スタック

レイヤー

技術

API

FastAPI (Python)

メモリストア

SQLite + ChromaDB (ベクトル検索)

MCP

TypeScript SDK v1.29

LLM

Gemini / Claude / GPT (事実抽出 + RAG)

なぜ Mem0 / Letta / Zep ではないのか?

これらは優れた汎用メモリツールですが、以下の機能がありません:

  • 日本語の敬語レベル(丁寧語 / 尊敬語 / 謙譲語)の解析

  • 敬語パターンからの暗黙的な社会的階層の検出

  • 日本語の話し方に基づく信頼度スコアリング(断定 vs 推測 vs 伝聞)

  • 日本の規制データベースの包含

このプロジェクトが存在する理由は、日本のビジネス環境は構造的に異なっており、それをナビゲートするためには専用に構築されたインフラストラクチャが必要だからです。

ライセンス

MIT

Available Tools

31 tools
calendar_checkA
Read-onlyIdempotent

日本のビジネスカレンダー情報を検索します。祝日、決算期、贈答シーズン、行政締切、季節性ビジネスの5カテゴリ。

Inputs: query (required).

calendar_listA
Read-onlyIdempotent

日本のビジネスカレンダーの全カテゴリ一覧を取得します。

Inputs: no named parameters.

daily_life_listA
Read-onlyIdempotent

日本の日常生活知識のトピック一覧を取得します。

Inputs: no named parameters.

disaster_listA
Read-onlyIdempotent

日本の災害・安全知識のトピック一覧を取得します。

Inputs: no named parameters.

entertainment_listA
Read-onlyIdempotent

日本のエンタメ知識のトピック一覧を取得します。

Inputs: no named parameters.

food_listA
Read-onlyIdempotent

日本の食文化知識のトピック一覧を取得します。

Inputs: no named parameters.

foreign_entry_checkB
Read-onlyIdempotent

外国企業・外国人の日本進出に必要な基盤知識を検索します。法人設立、経営管理ビザ、銀行口座開設、物件探し、税務届出、従業員雇用(労働法・解雇規制・社会保険)の6カテゴリ。

Inputs: query (required).

foreign_entry_listA
Read-onlyIdempotent

外国企業・外国人の日本進出に関する知識カテゴリの一覧を取得します。

Inputs: no named parameters.

language_listB
Read-onlyIdempotent

日本語知識のトピック一覧を取得します。

Inputs: no named parameters.

memory_contextA
Read-onlyIdempotent

現在のセッション状態(有効な事実・合意事項のサマリー)を取得します。エージェントのプロンプトに注入して文脈を維持するために使います。

Inputs: session_id.

memory_extractA
Idempotent

テキストからファクト(主語→述語→目的語の三つ組)を自動抽出します。日本語の敬語・主語省略・社会的階層を分析して構造化します。store=trueにすると抽出結果をメモリに永続保存します(書き込み発生)。store=false(デフォルト)なら読み取り専用で、保存せずに抽出結果のみ返します。memory_storeとの違い: memory_storeはエピソード全体を保存、memory_extractはテキストからファクトのみを抽出。

Inputs: text (required), store, context_hint.

memory_factsA
Read-onlyIdempotent

現在有効なファクト(構造化された事実)の一覧を取得します。ファクトは「主語→述語→目的語」の三つ組で、確度と有効期限を持ちます。

Inputs: valid_only.

memory_recallA
Read-onlyIdempotent

過去の記憶をセマンティック検索で呼び出します。「前回の会議で○○部長が仰った件」のような曖昧な日本語クエリにも対応します。

Inputs: query (required), limit.

memory_storeA

会話やイベントのエピソードを永続記憶に保存します。日本語の文脈(敬語レベル、主語省略、暗黙の了解)も構造化して保持します。auto_extract=trueにすると、テキストからファクト(主語→述語→目的語の三つ組)を自動抽出します。

Inputs: content (required), role, session_id, auto_extract.

organization_checkA
Read-onlyIdempotent

日本の組織構造・商慣行を検索します。役職体系、系列、支払慣行、契約慣行、業界団体。

Inputs: query (required).

organization_listA
Read-onlyIdempotent

日本の組織構造・商慣行の全カテゴリ一覧を取得します。

Inputs: no named parameters.

protocol_checkA
Read-onlyIdempotent

日本のビジネスプロトコル(根回し、稟議、報連相、名刺交換、席順、贈答)を検索します。

Inputs: query (required).

protocol_listA
Read-onlyIdempotent

日本のビジネスプロトコルの一覧を取得します。

Inputs: no named parameters.

regional_checkA
Read-onlyIdempotent

日本の地域別ビジネス情報を検索します。主要都市の特性、自治体の助成金・補助金、地域条例、商慣習の違い。

Inputs: query (required).

regional_listA
Read-onlyIdempotent

日本の地域別ビジネス情報の全カテゴリ一覧を取得します。

Inputs: no named parameters.

regulation_checkA
Read-onlyIdempotent

特定のビジネスアクションに必要な日本の規制・許認可情報を回答します。10業種の詳細データベース + 訪日旅行者向け規制に対応。

Inputs: action (required), industry, entity_type.

regulation_industriesA
Read-onlyIdempotent

日本の規制データベースに登録されている業種の一覧を取得します。

Inputs: no named parameters.

regulation_touristA
Read-onlyIdempotent

訪日旅行者向けの規制・マナー情報のカテゴリ一覧を取得します。ビザ、免税、交通、宿泊、医療、マナーの6カテゴリ。

Inputs: no named parameters.

travel_listA
Read-onlyIdempotent

日本の旅行知識のトピック一覧を取得します。

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 31 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      6
      75 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Torify 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 via
      MIT