
CAST Imaging MCP Server
io.github.CAST-Extend由 GitHub 账号 CAST-Extend 发布v3.0.4更新于 Oct 24, 2026
MCP server exposing CAST Imaging software architecture insights to AI agents
概览
把 AI 助手接入 CAST Imaging,用于查看应用、事务、依赖关系、质量洞察与对象关系。
- 可以做什么
- 列出并比较整个组合中的应用,以及事务、数据图、依赖关系和质量洞察
- 分析单个应用的架构:架构图、统计信息、包、事务、数据图、API 清单、迁移顾问与 ISO 5055 视图
- 浏览数据库表与字段,并管理已保存视图和自定义聚合视图
- 搜索对象,查看详情、关系、调用链与源文件,并管理对象标签和文档
- 通过通用调度器执行结构化搜索函数
- 适用场景
- 适用于已部署 CAST Imaging 的团队,希望让助手回答架构问题:有哪些应用、事务与数据实体如何流转、质量问题或上云阻碍在哪里、对象之间如何调用。适合组合评审、现代化改造规划以及熟悉陌生代码库。
- 运行要求
- 需要可访问的 CAST Imaging 安装及 Imaging APIs 服务、在 Imaging 用户配置中生成的 CAST Imaging API 密钥,以及装有 Docker 的 Linux 主机(或 Windows 服务安装)。必填配置为 HOST_CONTROL_PANEL 和 SERVICE_HOST;客户端通过 HTTP 并使用 x-api-key 与 x-user-tenant 请求头连接。
安装
在 SourceWeft 中
- 打开 控制台中的 CAST Imaging MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
CAST Imaging MCP Server
Overview
The CAST Imaging MCP Server bridges the gap between AI agents and real software architecture by exposing comprehensive software intelligence through the Model Context Protocol (MCP). It allows the user to get insights about their applications ,transactions, dependencies, quality patterns, and architectural structures by prompting AI agents.
This service provides AI Agents with the understanding of your applications from portfolio-level inventories to granular object relationships. Whether you're exploring database schemas, analyzing transaction flows, investigating quality issues, the MCP server delivers precise, paginated data that enables informed architectural decisions.
Use Cases
- Portfolio-level exploration: List applications available in your CAST Imaging and provides detailed information about them.
- Application architecture analysis: Explore architectural graphs at different levels and visualize system structure.
- Transaction & data flow mapping: Analyze transactions, trace data entity interaction networks, explore complex objects and sequencing.
- Quality & security insights: Identify vulnerabilities, cloud readiness blockers and structural flaws in the applications.
- Database schema exploration: Browse database tables, columns, relationships, and constraints across applications.
- Object-level investigation: Search objects and their properties and analyze caller/callee relationships.
Table of Contents
- Prerequisites
- Quick Start
- Installation
- Configuration Reference
- Running (HTTP)
- Windows Installation
- VS Code + GitHub Copilot Setup
- Verification & Test Queries
- Toolsets & Tools
- Troubleshooting
- Security Notes
- Package Contents
- Support
Prerequisites
Required
- Linux system with Docker installed and running.
- CAST Imaging‑APIs service reachable from this host
- MCP‑aware client (e.g., GitHub Copilot in VS Code, Claude Desktop)
- CAST Imaging API Key (generate from your Imaging user profile)
Download
- Download the installer for CAST Imaging MCP server
The MCP server should run on a Linux system. CAST Imaging‑APIs may run on the same or a different Linux machine.
Quick Start
- Verify Imaging‑APIs is live:
- Extract the installer zip.
- Configure
config/app.configand.env. - Start the server with
./run.sh --install. - Configure client (VS Code Copilot or Claude) with your server URL.
- Test queries (see examples below).
Installation of CAST Imaging MCP server
1) Extract the installer
2) Verify CAST Imaging‑APIs
Make sure the Control Panel/registry is reachable and Imaging‑APIs is ready (see Quick Start step #1).
3) Configure server
Edit config/app.config:
Set your exposed port in .env (hidden file):
Tip: On Linux, files starting with a dot (like
.env) are hidden. Usels -ato view.
4) Start
This launches the Docker Compose stack and the MCP server.
If you use SSL_CA_BUNDLE, place the PEM file in a certificates/ folder next to docker-compose.yml. The compose file mounts that folder into the container at /app/certificates.
Configuration Reference
HOST_CONTROL_PANEL (Required)
Default: None (user needs to provide the value)
Description: IP or hostname of the machine running the Control Panel Service.
This is a service registry used by Imaging to register and discover its internal services. It is automatically deployed when you install Imaging. You should enter the IP address of the Linux machine running the Imaging Control Panel service.
PORT_CONTROL_PANEL
Default: 8098
Description: Control Panel registry port.
IMAGING_PAGE_SIZE
Default: 1000
Description: Sets the number of records the MCP server fetches per request (internal batching). Tune for throughput.
IMAGING_DISPLAY_PAGE_SIZE
Default: 20
Description: Sets how many records are shown per page in the user-facing response. Tune for UX.
IMAGING_CODE
Default: False
Description: Controls whether the agent can access source code via the MCP server.
It's false by default, as agents typically work on open repos. Enabling it can expose source code to anyone with MCP access, making it a potential security risk, especially relevant for clients like Claude desktop without direct repo access.
DEBUG_MODE
Default: false
Description: Debug mode will show teh activity in the logs. When set to true it will show the tool picked, the API called and the result for each user prompt. When set to false, it will only show the tool picked and the corresponding API called.
IMAGING_DOMAIN
Default: default
Description: Imaging domain/tenant used to fetch data in multi-tenant environments.
CONTROL_PANEL_SSL_ENABLED
Default: false
Description: Set to true when Control Panel config/eureka endpoints run on HTTPS.
MCP_TOOL_SURFACE_PROFILE
Default: full
Description: Selects the MCP tool exposure profile. Use full to expose the complete toolset, or intents for the meta-tool surface.
MCP_INTENTS_HIDDEN_FUNCTIONS
Default: empty
Description: Comma-separated list of structural functions to hide when MCP_TOOL_SURFACE_PROFILE is set to intents.
SERVICE_HOST (Required)
Default: None (user needs to provide the value)
Description: IP/hostname of the machine on which the MCP Server is running.
SSL_CA_BUNDLE
Default: empty
Description: Optional path to a PEM CA bundle for private/self-signed certificate chains. With the Docker installer, place the PEM under ./certificates/ and reference it as /app/certificates/<file>.pem.
Running (HTTP)
Start the server with:
Windows Installation
This section provides detailed steps for installing and configuring the CAST Imaging MCP Server on Windows systems.
Prerequisites for Windows
- Windows system
- CAST Imaging‑APIs service running and accessible
- MCP‑aware client (e.g., GitHub Copilot in VS Code, Claude Desktop)
- CAST Imaging API Key (generate from your Imaging user profile)
1) Download and Extract
- Download the installer package for windows.
- Extract the zip file to your preferred location
- Navigate to the extracted directory
Package contents:
2) Verify CAST Imaging‑APIs
Make sure the Control Panel/registry is reachable and Imaging‑APIs is ready:
3) Configure Server
Edit configuration.conf with your environment settings:
4) Install as Windows Service
Run the installation using the batch script:
This installs the MCP server as a Windows service. After successful installation, you'll see a Windows service named "CAST Imaging MCP Server" in your services list.
5) Verify Installation
Check that the service is running:
- Open Services (services.msc)
- Look for "CAST Imaging MCP Server"
- Ensure status is "Running"
Windows-Specific Operations
Update MCP Server
To update an existing installation:
No configuration changes needed for updates.
Uninstall MCP Server
To completely remove the MCP server:
This removes the Windows service and cleans up all MCP-related files.
Get Help
For available commands:
Available commands:
Windows Troubleshooting
VS Code + GitHub Copilot Setup
This section provides detailed steps for for connecting the CAST Imaging MCP Server with Github Copilot.
1) Install GitHub Copilot on your VS code
- Open the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
- Search for "GitHub Copilot" and click Install.
- Sign in to GitHub when prompted
2) Generate CAST Imaging API Key
- Login to your CAST Imaging
- Navigate to your profile section.
- Generate a new API key (copy and save this key securely as you'll need it in the next steps)
3) Create MCP configuration (.vscode/mcp.json)
- Open any folder in VS Code and create a .vscode folder in its root. Inside that, create mcp.json file.
4) (Alternative) Manual registration flow
If VS Code doesn’t auto‑pick the server:
- Open Copilot Chat → gear icon → Select tools that are available to chat
- + Add More Tools… → + Add MCP Server… → choose HTTP
- Enter
http(s)://<your-mcp-server-host:port>/mcp/and confirm - VS Code writes
.vscode/copilot/mcp.json→ add the header block:
5) Project instructions for Copilot
Copy copilot-instructions.md from the installer into your VScode by creating a folder named .github and then pasting the copilot-instructions.md file inside it. This will help the agent in proving better responses.
Verification & Test Queries
Connectivity checks
Try in Copilot/Claude
Toolsets & Tools
The server organizes functionality into Toolsets.
Available Toolsets
Tools
Portfolio
- applications — List the available applications in CAST Imaging
- all_applications — List all applications (cloud build)
- my_applications — List applications belonging to the current user (cloud build)
- applications_transactions — Get transactions from all applications with filtering support
- applications_data_graphs — Data entity interaction networks (data graphs) from all applications
- applications_dependencies — Inter-dependencies between all applications
- applications_quality_insights — Quality insights including CVE, cloud detection patterns, and green detection patterns
- get_mcp_info — Get MCP server and Imaging version/environment information
Applications
- application_database_explorer — Explore database tables and columns in an application
- stats — Get basic statistical information for an application
- architectural_graph — Get architectural graph data (nodes/links) at specific levels (layer, component, sub-component, technology-category, element-type)
- architectural_graph_focus — Get focused architectural graph data for specific areas
- quality_insights — Get quality-related insights (CVE, cloud patterns, green patterns, structural flaws, ISO-5055)
- quality_insight_violations — Get specific violations of quality insights by ID, with optional locations
- packages — Get package information and dependencies
- package_interactions — Get interactions with specific packages by component and version
- transaction_profiles — Get available transaction profiles
- transactions — Get transactions with optional filtering by name, fullname, or type
- transaction_details — Get focused information about a transaction by ID
- add_view_document — Add documentation to a transaction or data graph
- data_graphs — Get data entity interaction networks (data graphs) with optional filtering
- data_graph_profiles — Get available data graph profiles
- data_graph_details — Get focused information about a data graph by ID
- inter_applications_dependencies — Get inward and outward inter-application dependencies
- inter_app_detailed_dependencies — Get detailed dependencies between two specific applications
- advisor_occurrences — Get occurrences supporting a selected advisor
- application_iso_5055_explorer — Explore ISO 5055 characteristics and weaknesses
- api_inventory — Get API inventory for an application
- advisors — Get migration/modernization advisors, rules, and violations
- dynamic_views — List custom aggregation views
- dynamic_view_details — Get a custom view graph or objects inside a custom node
- manage_dynamic_view — Create, delete, rename, publish, or unpublish custom views
- configure_dynamic_view — Add or delete custom nodes in a custom view
- views — List saved views
- view_details — Get saved view details
- manage_view — Create, update, or delete saved views
- tags — List tags available in an application
Objects
- objects — Get objects in an application matching identification criteria (name, fullname, mangling, type, filepath)
- object_profiles — Get available object profiles
- object_details — Get comprehensive details for objects including properties, relationships, code snippets, and usage statistics
- add_object_document — Add documentation text to a specific object identified by ID
- manage_object_tags — Add or delete tags on explicitly identified objects
- bulk_manage_object_tags — Add or delete tags on objects selected by server-side criteria
- objects_relationships — Find relationships between multiple objects
- pathfinder_hierarchy_details — Find execution paths, call chains, and hierarchy details
- source_files — Find source files that define code objects matching file path criteria
- source_file_details — Get detailed information about source files and their code elements (inventory, intra, inward, outward, testing)
- transactions_using_object — Get transactions that use objects matching specified criteria
- data_graphs_involving_object — Get data entity interaction networks (data graphs) that involve specific objects
Structural Search (intents profile)
- get_structural_search_function_syntax — Get syntax and usage details for structural search functions
- run_structural_search_function — Execute a structural search function through the generic dispatcher
Troubleshooting
Logs & Checks
Security Notes
IMAGING_CODE= False by default: enabling allows MCP clients to access source code → restrict by policy, network, and credentials.SSL_CA_BUNDLEfor private CAs: prefer a CA bundle over disabling TLS verification.- Principle of least privilege: limit who can obtain/enter Imaging API keys in MCP hosts.
Package Contents
Support
- Check container logs and the Imaging‑APIs health endpoint
- Validate
app.config,.env,mcp.jsonpaths and values - Ensure network reachability between client ↔ server ↔ Imaging‑APIs
License
This repository contains documentation only.
The project’s source code is proprietary and is not published under an open-source license.
- The source code is licensed separately under a commercial license and is not included in this repository.
- No rights are granted to the source code through this repository.
- You may view and share this documentation freely, but it may not be used to infer or imply rights to the proprietary software.
For commercial licensing inquiries, please contact your local CAST representative (https://www.castsoftware.com/overview).
来源:README.md,提交 396f7b3
工具
0版本历史
1- v3.0.4最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。