Platform scripts, MCP servers, deployment and docs for the KAB runs
- Scripts to run workflows from a YAML context or run inputs (kab_run_workflow.py, with --input name=@file), store per-project discovery connections, bootstrap agent MCP keys, refresh the KAB token, publish reports and build estate snapshots. - Hyperscaler discovery servers extended in place; cloud-knowledge folded into them. - deploy/crucible-kab-dev.yaml: the Discovery package agent and the Assessment agents. - Platform issue write-ups and current-wiring notes under docs/platform-issues/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,13 @@ server_id: azure-discovery
|
||||
name: Azure Discovery
|
||||
description: Read-only discovery of a customer's Azure estate - servers, workloads, Kubernetes clusters, networks,
|
||||
data stores, policies and Advisor findings - through Azure Resource Graph.
|
||||
version: 0.1.2
|
||||
version: 0.1.6
|
||||
port: 8111
|
||||
verify_tool: azure_check_connection
|
||||
shared_code:
|
||||
- _common/tool_support.py
|
||||
- _common/azure_support.py
|
||||
- _common/knowledge_support.py
|
||||
connection_fields:
|
||||
- name: tenant_id
|
||||
title: Tenant ID
|
||||
@@ -34,7 +35,7 @@ connection_fields:
|
||||
secret: true
|
||||
- name: scope_root
|
||||
title: Scope root
|
||||
description: 'What may be read: managementGroups/<id> or subscriptions/<id>.'
|
||||
description: 'What may be read: managementGroups/<id>, subscriptions/<id>, or one resource group, subscriptions/<id>/resourceGroups/<name>.'
|
||||
required: true
|
||||
secret: false
|
||||
- name: cloud
|
||||
@@ -50,9 +51,13 @@ tools:
|
||||
ai_implementation: |
|
||||
async def azure_check_connection(arguments: Dict[str, Any]) -> Dict[str, Any]:
|
||||
try:
|
||||
body = await _azure_graph("ResourceContainers | summarize count()", 1)
|
||||
group = _azure_root(get_connection())[2]
|
||||
query = "ResourceContainers | where type =~ 'microsoft.resources/subscriptions/resourcegroups' | summarize count()" if group else "ResourceContainers | summarize count()"
|
||||
body = await _azure_graph(query, 1)
|
||||
except Exception as error:
|
||||
return {"ok": False, "message": _upstream_failed("azure", error)["error"]["message"]}
|
||||
if group and not any(int(v or 0) for row in body.get("data", []) for v in row.values()):
|
||||
return {"ok": False, "message": "Signed in, but the resource group in the scope root was not found or is not readable."}
|
||||
return {"ok": True, "message": "Signed in and read the scope root."}
|
||||
- name: azure_list_accounts
|
||||
display_name: List accounts
|
||||
@@ -188,11 +193,11 @@ tools:
|
||||
return await _azure_kind("azure_get_network_topology", arguments, AZURE_NETWORK)
|
||||
- name: azure_list_data_stores
|
||||
display_name: List data stores
|
||||
description: List SQL, Cosmos DB or storage account metadata. Never rows, documents or blobs.
|
||||
description: List SQL, Cosmos DB, storage account, PostgreSQL, MySQL or Redis metadata. Never rows, documents or blobs.
|
||||
parameters:
|
||||
- name: kind
|
||||
type: string
|
||||
description: 'One of: sql, cosmos_db, storage_accounts.'
|
||||
description: 'One of: sql, cosmos_db, storage_accounts, postgresql, mysql, redis.'
|
||||
required: false
|
||||
- *id001
|
||||
- *id002
|
||||
@@ -240,3 +245,19 @@ tools:
|
||||
async def azure_list_recommendations(arguments: Dict[str, Any]) -> Dict[str, Any]:
|
||||
query = "AdvisorResources | where type =~ 'microsoft.advisor/recommendations' | order by id asc"
|
||||
return await _azure_page("azure_list_recommendations", arguments, query, _azure_recommendation)
|
||||
- name: azure_search_well_architected
|
||||
display_name: Search Well-Architected guidance
|
||||
description: Search the Azure Well-Architected Framework's guidance by pillar and topic. Both come from fixed lists, so no customer detail
|
||||
leaves the platform. Microsoft Learn is public, so no credential is used.
|
||||
parameters:
|
||||
- name: pillar
|
||||
type: string
|
||||
description: reliability, security, cost, operations, performance or sustainability.
|
||||
required: true
|
||||
- name: topic
|
||||
type: string
|
||||
description: One of the fixed topics; an invalid value lists them.
|
||||
required: true
|
||||
ai_implementation: |
|
||||
async def azure_search_well_architected(arguments: Dict[str, Any]) -> Dict[str, Any]:
|
||||
return await _knowledge_tool("azure", "azure_search_well_architected", arguments, {}, None)
|
||||
|
||||
Reference in New Issue
Block a user