
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 分
請在儲存庫或註冊中心條目中宣告授權條款。