mcp-instana 0.1.1__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcp_instana-0.1.1.dist-info → mcp_instana-0.2.0.dist-info}/METADATA +459 -138
- mcp_instana-0.2.0.dist-info/RECORD +59 -0
- src/application/application_analyze.py +373 -160
- src/application/application_catalog.py +3 -1
- src/application/application_global_alert_config.py +653 -0
- src/application/application_metrics.py +6 -2
- src/application/application_resources.py +3 -1
- src/application/application_settings.py +966 -370
- src/application/application_topology.py +6 -2
- src/automation/action_catalog.py +416 -0
- src/automation/action_history.py +338 -0
- src/core/server.py +159 -9
- src/core/utils.py +2 -2
- src/event/events_tools.py +602 -275
- src/infrastructure/infrastructure_analyze.py +7 -3
- src/infrastructure/infrastructure_catalog.py +3 -1
- src/infrastructure/infrastructure_metrics.py +6 -2
- src/infrastructure/infrastructure_resources.py +7 -5
- src/infrastructure/infrastructure_topology.py +5 -3
- src/prompts/__init__.py +16 -0
- src/prompts/application/__init__.py +1 -0
- src/prompts/application/application_alerts.py +54 -0
- src/prompts/application/application_catalog.py +26 -0
- src/prompts/application/application_metrics.py +57 -0
- src/prompts/application/application_resources.py +26 -0
- src/prompts/application/application_settings.py +75 -0
- src/prompts/application/application_topology.py +30 -0
- src/prompts/events/__init__.py +1 -0
- src/prompts/events/events_tools.py +161 -0
- src/prompts/infrastructure/infrastructure_analyze.py +72 -0
- src/prompts/infrastructure/infrastructure_catalog.py +53 -0
- src/prompts/infrastructure/infrastructure_metrics.py +45 -0
- src/prompts/infrastructure/infrastructure_resources.py +74 -0
- src/prompts/infrastructure/infrastructure_topology.py +38 -0
- src/prompts/settings/__init__.py +0 -0
- src/prompts/settings/custom_dashboard.py +157 -0
- src/prompts/website/__init__.py +1 -0
- src/prompts/website/website_analyze.py +35 -0
- src/prompts/website/website_catalog.py +40 -0
- src/prompts/website/website_configuration.py +105 -0
- src/prompts/website/website_metrics.py +34 -0
- src/settings/__init__.py +1 -0
- src/settings/custom_dashboard_tools.py +417 -0
- src/website/__init__.py +0 -0
- src/website/website_analyze.py +433 -0
- src/website/website_catalog.py +171 -0
- src/website/website_configuration.py +770 -0
- src/website/website_metrics.py +241 -0
- mcp_instana-0.1.1.dist-info/RECORD +0 -30
- src/prompts/mcp_prompts.py +0 -900
- src/prompts/prompt_loader.py +0 -29
- src/prompts/prompt_registry.json +0 -21
- {mcp_instana-0.1.1.dist-info → mcp_instana-0.2.0.dist-info}/WHEEL +0 -0
- {mcp_instana-0.1.1.dist-info → mcp_instana-0.2.0.dist-info}/entry_points.txt +0 -0
- {mcp_instana-0.1.1.dist-info → mcp_instana-0.2.0.dist-info}/licenses/LICENSE.md +0 -0
src/prompts/prompt_loader.py
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import importlib
|
|
2
|
-
import json
|
|
3
|
-
import logging
|
|
4
|
-
import os
|
|
5
|
-
|
|
6
|
-
# Configure logger for this module
|
|
7
|
-
logger = logging.getLogger(__name__)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def load_prompts_from_config(path):
|
|
11
|
-
with open(path, "r") as f:
|
|
12
|
-
return json.load(f)
|
|
13
|
-
|
|
14
|
-
# Register prompts from the configuration file
|
|
15
|
-
def register_prompts(server, config_path=None):
|
|
16
|
-
if config_path is None:
|
|
17
|
-
current_dir = os.path.dirname(__file__)
|
|
18
|
-
config_path = os.path.join(current_dir, "prompt_registry.json")
|
|
19
|
-
|
|
20
|
-
# Load prompts from the JSON configuration file
|
|
21
|
-
prompts = load_prompts_from_config(config_path)
|
|
22
|
-
|
|
23
|
-
for prompt in prompts:
|
|
24
|
-
try:
|
|
25
|
-
module = importlib.import_module(prompt["module"])
|
|
26
|
-
function = getattr(module, prompt["function"])
|
|
27
|
-
server.tool(name=prompt["name"], description=prompt["description"])(function)
|
|
28
|
-
except Exception as e:
|
|
29
|
-
logger.error(f"Failed to load {prompt['name']}: {e}", exc_info=True)
|
src/prompts/prompt_registry.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "get_all_infrastructure_prompts",
|
|
4
|
-
"description": "List all infrastructure-related prompts",
|
|
5
|
-
"module": "src.prompts.mcp_prompts",
|
|
6
|
-
"function": "get_all_infrastructure_prompts"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"name": "get_all_application_prompts",
|
|
10
|
-
"description": "List all prompts",
|
|
11
|
-
"module": "src.prompts.mcp_prompts",
|
|
12
|
-
"function": "get_all_application_prompts"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "get_all_prompts",
|
|
16
|
-
"description": "List all available prompts with descriptions and arguments",
|
|
17
|
-
"module": "src.prompts.mcp_prompts",
|
|
18
|
-
"function": "get_all_prompts"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|