lvke-mcp
This server is a minimal demonstration scaffold for the lvke-mcp project. It exposes a single echo tool that takes a required message string parameter and returns it unchanged. The tool is read-only, non-destructive, and executes synchronously (task support is forbidden); it has no persistent state or side effects. There are no other tools, resources, or background tasks. It is purely a reference template for building new MCP servers – actual domain business capabilities (e.g., project planning, data acquisition) are provided by separate production servers, not this scaffold.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lvke-mcpRun deep research on the EV battery market and generate a report."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
绿科 MCP 服务集合(独立发行版 lvke-mcp)
本目录是独立的 MCP(Model Context Protocol)服务发行版,包名 lvke-mcp,
有自己的 pyproject.toml、src/ 布局和自有 runtime(src/lvke_mcp/runtime/)。
独立边界(MCP_INDEPENDENCE_PLAN §6.1、§10): MCP 服务不读取、不调用、不依赖
Hermes(hermes_cli / tools / 根 pyproject)的任何代码、配置、环境变量或文件系统路径。
MCP 运行所需的配置(数据目录、临时目录、profile、Tavily key)全部来自 LVKE_MCP_*
自有环境变量,缺省落在 ~/.lvke/。不读取任何 HERMES_* 环境变量。 本目录内的
业务实现是 MCP 自有的领域代码,不是 Hermes 的复用层。
架构状态(2026-08-06)
WP-01(独立 pyproject + runtime 骨架)已完成构建:
mcp_servers/pyproject.toml、src/lvke_mcp/runtime/(10 个直接搬移模块 +config.py/jobs.py两个新模块)、 参考 serversrc/lvke_mcp/servers/scaffold/。验收标准(§29.3):scaffold server 在 未安装 Hermes 且不依赖当前仓库根目录虚拟环境的干净 venv 中完成initialize、tools/list、call_tool、resources/list、resources/read。纵向切片(§29.4)已完成:全部正式服务和支撑服务均由
src/lvke_mcp/servers/提供入口,业务实现位于domains/,基础设施实现位于adapters/和runtime/。仓库根目录下的旧 server 兼容包已删除。独立性扫描升级为 AST v2(2026-08-04):
scripts/independence_scan.py改用ast解析,只统计真实 import / 动态加载 /HERMES_*环境变量读取,不再把 docstring、注释、字符串字面量计为依赖。当前结果:forward(MCP → 外部)= 0,即src/lvke_mcp不调用任何其他项目代码; 新发行版只扫描和运行src/lvke_mcp自有代码,不保留旧顶层导入入口。
Related MCP server: MCP Business AI Transformation
核心业务工具面(十三个领域服务)
Server | 核心对象 | 职责 |
|
| 不可变项目上下文、输入适用性、修订与下游失效 |
|
| 受控内容/本地/分块导入、安全扫描、解析恢复与 Resource |
|
| 搜索、去重发现、受控批量采集、原始来源快照 |
|
| 摄入、检索、字段候选、表格画像、显式归一化比较、冲突与证据包 |
|
| 通用可研 FinanceSpec 确认与确定性财务计算 |
|
| Agent 主导的 DR 计划、混合来源、可恢复 checkpoint、质量与引用审计 |
|
| 只消费 run_id 的十三表、XLSX 与 lineage |
|
| 研报草稿、修订、校验、DOCX 与内部发布 |
|
| 月度资产收购模型、治理、工件、专用十三表与发布 |
|
| 财务表、研报与联合交付包的统一审查、整改复测、签审和正式固化 |
|
| 证据化知识候选、独立复核和 reviewed-first 发布 |
|
| 可研项目阶段编排、对象 lineage、stale、checkpoint/resume、technical/formal 校验和交付发布 |
|
| 零材料受控假设与 |
聚合参考服务
第 14 个进程 lvke-reference 原样路由档案、模板、客户、专家、政策、统计、
行业、环境和地图实现。finance-calc 的七类纯计算由
lvke-finance-model.finance_calculate 路由;excel-bridge 的五类工作簿检查由
lvke-source-files.source_inspect_workbook 路由。旧实现模块继续作为内部库存在,
种子数据、档案索引、公式和返回业务字段不迁移。
公开面固定为 14 个 Lvke MCP 进程、169 个工具。完整输入/输出 schema 仍由服务端
执行;tools/list 只发布紧凑输入投影,大型完整 schema 通过
lvke://schemas/<server>/<tool>/input Resource 按需读取。紧凑投影始终保留顶层参数、
必填项、容器类型及数组元素类型,只省略可按 Resource 读取的深层结构。以下稳定别名不依赖工具名:
finance-spec-v3、asset-acquisition-spec、review-target、
review-finding-disposition、report-preparation、project-planning-candidate,以及
project-planning-validate/confirm/prepare/create,
均位于 lvke://schemas/ 下。85 项旧工具迁移关系见
dev-docs/config/mcp-compression-migration.json;
第二轮 32 项迁移见
dev-docs/config/mcp-compression-migration-v2.json。
统一 Resource 入口为 lvke-feasibility-delivery.lvke_list_resources 和
lvke_read_resource。asset-acquisition 域可分页列举并读取 spec、run、scenario
matrix、工件、十三表 package、XLSX 和 13 个 CSV;URI 中的 workspace 必须与显式
workspace_id 一致,二进制内容以 base64 返回。
工作簿聚合契约为 source_inspect_workbook(workspace_id, file_id, operation, sheet?, range?, options?);旧路径调用须先 source_import_local_path。地图聚合入口
公开 geo_query(..., limit?),距离矩阵的确定性模式固定为
haversine_with_highway_estimate,不伪装成在线导航路线。
规划行业路由清单显式覆盖能源前缀和 solar_power 资产;合法 ProjectContext
不得因缺少 route 而回退到 generic 行业。
目录结构
mcp_servers/
├── pyproject.toml # 独立发行版 lvke-mcp
├── README.md # 本文档
├── dev-docs/ # 工程文档(架构、计划、验证与报告)
├── src/lvke_mcp/
│ ├── runtime/ # MCP 自有运行时(config/workspace/storage/resources/
│ │ # jobs/transport/stdio/errors/responses/schemas/logging)
│ ├── contracts/ # 领域契约(pydantic / JSON Schema),随切片填充
│ ├── domains/ # 领域业务层,随切片迁入
│ └── servers/
│ ├── scaffold/ # 参考 server(无 sys.path hack,零 Hermes 依赖)
│ └── <domain>/ # 14 个公开领域与参考 server
├── skills/ # Skill 源码;Codex 插件发布 15 个非前端父 Skill
├── plugins/lvke-mcp/ # Codex 插件:14 个 MCP + 15 个 Skill
├── scripts/ # 独立性扫描与基线工具
└── tests/构建与安装
本项目使用 conda 管理环境(不用 venv)。环境名 lvke-mcp:
cd mcp_servers
conda create -y -n lvke-mcp python=3.13
conda run -n lvke-mcp python -m pip install -e .
conda run -n lvke-mcp python -m pip install pytestconda 环境默认会把用户级
~/.local/lib/pythonX.Y/site-packages挂进sys.path且优先级高于环境自身,导致外部包 shadow 本项目的 exact-pin 依赖。 本环境已放置zzz-no-user-site.pth将其摘除,保证与旧 venv 同等隔离; 重建环境后需要重新放置,见「重建环境」。
单独运行一个 server(调试用)
scaffold(参考 server,运行后会通过 stdio 接收 JSON-RPC):
cd mcp_servers
conda run -n lvke-mcp lvke-mcp-scaffold
# 或
conda run -n lvke-mcp python -m lvke_mcp.servers.scaffold.server领域 server:
conda run -n lvke-mcp python -m lvke_mcp.servers.lvke_data_acquisition.server
conda run -n lvke-mcp python -m lvke_mcp.servers.lvke_finance_model.server
# 其余 server 使用 lvke_mcp.servers.<server>.server重建环境
删除并重建后,必须重新隔离 user site,否则 ~/.local 里的包会 shadow
本项目 exact-pin 依赖(曾导致 starlette 未真正装进环境):
SP="$(conda run -n lvke-mcp python -c 'import sysconfig;print(sysconfig.get_paths()["purelib"])')"
printf '%s\n' 'import site, sys; sys.path[:] = [p for p in sys.path if p != getattr(site, "USER_SITE", None)]' \
> "$SP/zzz-no-user-site.pth"
# 自检:应输出 none
conda run -n lvke-mcp python -c "import sys;print([p for p in sys.path if '/.local/lib/python' in p] or 'none')"在 Codex 中启用
使用 plugins/lvke-mcp/ 中的 Codex 插件发布 14 个 stdio MCP 和 15 个非前端 Skill。
完整安装、更新、范围和验证说明见
dev-docs/config/CODEX_USER_CONFIG.md。
本产品只有 MCP + Codex Skills;Tavily 是唯一联网 provider。产品不提供前端、语音、 协同办公、登录、身份、tenant、角色、RBAC、权限管理、安全审查或专业签审。
共用约定
响应格式:内部旧 handler 保留
success/data/source包装;正式服务使用明确字段, 并至少返回success/status/resource_uris/warnings/blockers/next_actions。错误码命名:
<server-name>.<error-tag>,如mcp_lvke_archive.not_found。日志:使用 stderr(避免污染 stdio 协议),统一前缀
[mcp-<server>]。本地对象:MCP 交换对象存放于工作区
mcp_objects/,ID/URI 安全校验、原子写入且 内容不可变。测试:外部行为基线位于
tests/fixtures/baseline/,协议测试工具和 stdio smoke 驱动位于src/lvke_mcp/testing/。Agent 协调契约:正式 SDK Server 和 stdio fallback 都在响应中附加
coordination.contract_version=agent-coordination.v1。其中包含当前阶段、输入/输出对象 ID、质量状态、证据资格、结构化next_actions、重试策略、恢复令牌和 lineage。该字段只帮助 Codex 在 MCP 重启、分支或失败后继续协调;它不把 MCP 变成工作流引擎,也不生成报告正文。职责边界:MCP 负责来源固化、确定性计算、十三表、版本和门禁;Codex 负责意图理解、 候选选择、冲突解释、章节写作和补资料循环;Skills 负责调用顺序和停止条件。
partial、missing_inputs、blocked、incomplete、failed和upstream_failure均不是业务成功。MCP 2.0 协议面:共用 runtime 同时支持 2024-11-05 至 2025-11-25 的 legacy initialize 握手和 2026-07-28 的逐请求
_metaenvelope。server/discover、tools/list和resources/list只返回 private cache hint。规范input_required仅向 modern 客户端透传,legacy 客户端收到可操作的 blocked 结果。Tasks 仅在 服务显式注册持久化TaskAdapter后启用;现有短同步工具均为taskSupport=forbidden。stdio 仍是生产默认,Streamable HTTP 只通过共享适配器显式构建。
开发新 MCP server
参考 src/lvke_mcp/servers/scaffold/:复制其 server.py 到 lvke_mcp/servers/<new-name>/
后修改 SERVER_NAME / SERVER_VERSION 并注册具体工具。scaffold 的 build_server()
返回 lvke_mcp.runtime.transport.OfficialStdioServer,main() 调 serve_forever()。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
- echoB
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
AI research on companies and industries — one MCP tool per research domain.
MCP server for VC pitch-deck scoring, thesis-fit matching, and deal-flow management.
Hosted MCP server for real-world data: business registries, sanctions, companies, domains, crypto.
Related MCP Servers
- FlicenseAqualityFmaintenanceAn enterprise-grade MCP server that provides specialized tools for legal reasoning and analysis, automatically detecting legal domains and offering domain-specific guidance, templates, and citation formatting.333
- FlicenseNot gradedqualityCmaintenanceEnterprise-grade MCP server with multi-agent system for business AI transformation across finance, healthcare, retail, and other domains. Provides specialized AI agents for data analysis, API execution, business validation, and report generation with real-time monitoring and observability.
- FlicenseNot gradedqualityFmaintenanceProvides 667 specialized tools for financial and operational tasks, including fund accounting, compliance, DeFi, and tax management. It enables users to integrate extensive financial intelligence and automated workflows into any MCP-compatible client.1
- AlicenseBqualityDmaintenanceAn extensible framework that exposes quantitative research functions and financial data connectors, such as FRED, via an MCP server. It enables users to perform complex financial modelling, data retrieval, and autonomous research loops with built-in guardrails and pluggable components.64MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/walkingzzzy/lvke-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server