Catalog MCP
Catalog MCP
用于从本地业务对象摄取存储库浏览 Oracle HDL 业务对象元数据的独立只读 MCP 服务器。
目录索引将 attributes/*.json 视为事实来源。manifest.json 是可选的补充元数据,仅在与已索引的属性文档匹配时使用。
本地设置
创建一个 Python 3.10+ 的虚拟环境。
安装依赖项。
如果不想使用默认的同级路径,请将
CATALOG_MCP_DATA_ROOT指向业务对象摄取存储库。
'/Users/justin/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/bin/python3' -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
cp .env.example .env您可以选择将服务器的作用域限定为一个或多个确切的业务对象:
CATALOG_MCP_ALLOWED_OBJECTS=Worker或者:
CATALOG_MCP_ALLOWED_OBJECTS=Worker,Location运行服务器
.venv/bin/python -m catalog_mcp.server服务器默认通过 stdio 运行。
您也可以使用签入的启动器,它会将 CATALOG_MCP_DATA_ROOT 默认设置为此笔记本电脑上的同级业务对象存储库:
./scripts/run_catalog_mcp.sh在 Codex 中注册
将服务器添加到本地 Codex MCP 配置中:
codex mcp add businessObjectCatalog -- /Users/justin/Documents/Codex/Projects/MCP/scripts/run_catalog_mcp.sh验证注册:
codex mcp list
codex mcp get businessObjectCatalog测试
.venv/bin/pytest运行端到端压力矩阵:
.venv/bin/python scripts/pressure_test_catalog.py公共 MCP 接口
工具:
catalog_healthget_catalog_statslist_catalog_entriesget_catalog_entryget_catalog_componentget_catalog_attributesearch_catalogsearch_catalog_attributesget_related_entriesrefresh_catalog_index
资源:
catalog://summarycatalog://product-areascatalog://statscatalog://entries/{entry_id}
精确范围检索
如果代理已经知道对象、组件或字段,请优先使用精确检索,而不是广泛搜索。
示例:
{"identifier":"Worker"}{"identifier":"Worker","component_name":"Worker"}{"identifier":"Worker","component_name":"Worker","attribute_name":"WorkerNumber"}Related MCP Connectors
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Read-only MCP server over the APIs.io catalog — discover APIs, providers, tags & artifacts.
Repository knowledge graph MCP server for codebase understanding and debugging.
Read-only MCP server exposing a user ORANO library to their own AI agent.