refactor(mcp): extract order services into independent project

Remove Kingdee sync, business CLI/MCP tools, and internal order-query routing
now owned by the separate kingdee-orders-mcp project. Keep Wiki retrieval,
file assets and ingest available in code while its deployed service is off.
Retain legacy response fields with business access disabled, and document
migration ownership and rollback without exposing credentials or data.

Validation: 174 Wiki tests pass. Independent order service verified with
36 template parity checks, authenticated HTTP queries, and a real sync.
This commit is contained in:
Codex
2026-10-31 07:41:18 +00:00
parent 6c451c3eb6
commit 2396bd2d3e
25 changed files with 47 additions and 5793 deletions
-23
View File
@@ -28,25 +28,6 @@ OBSIDIAN_SOURCE_CATALOG_DIR=_sources/catalog
# SQLite source-file locator. Leave empty to use _meta/file-assets.sqlite.
OBSIDIAN_FILE_ASSET_DB=
# --- Business Facts / Kingdee Sales Orders (optional) ---
#
# Exact operational statistics use <vault>/_meta/business-facts.sqlite.
# Run `obsidian-wiki business config kingdee` to create the local private
# .runtime/kingdee.env file for real Kingdee credentials and token settings.
# Do not put real app secrets or access tokens in this example file.
OBSIDIAN_BUSINESS_FACTS_DB=
# Optional intercompany dedupe for multi-company sales data. When configured,
# business templates exclude orders where both the sales organization and the
# ordering customer match internal parties. This removes internal transfer
# orders while preserving direct external-customer orders to factories.
# Comma-separated name substrings, e.g. 北极大,捷康,众创.
OBSIDIAN_BUSINESS_INTERNAL_PARTIES=
# Optional exact org/customer codes for internal parties, comma-separated.
OBSIDIAN_BUSINESS_INTERNAL_PARTY_IDS=
# Set true only when auditing internal transfer orders.
OBSIDIAN_BUSINESS_INCLUDE_INTERNAL_ORDERS=false
# --- Source File MCP Server (optional) ---
#
# Run with: obsidian-wiki-mcp
@@ -71,10 +52,6 @@ OBSIDIAN_MCP_HOST=127.0.0.1
OBSIDIAN_MCP_PORT=8765
OBSIDIAN_MCP_PATH=/mcp
OBSIDIAN_MCP_ENABLED_TOOLS=file-assets
# Direct order queries without Wiki/OpenCode: set the managed service with
# scripts/mcp_service.sh tools set business
# Optional separate existing business database; default is <vault>/_meta/business-facts.sqlite.
# OBSIDIAN_MCP_BUSINESS_DB=/path/to/business-facts.sqlite
# Optional public URLs shown to remote agents in capabilities/config output.
# Set PUBLIC_BASE_URL when /mcp is behind DNS/tunnel/reverse proxy.
OBSIDIAN_MCP_PUBLIC_BASE_URL=