{"id":46601373,"url":"https://github.com/knuckles-team/leanix-agent","last_synced_at":"2026-06-01T04:01:17.802Z","repository":{"id":342511922,"uuid":"1173096370","full_name":"Knuckles-Team/leanix-agent","owner":"Knuckles-Team","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-29T09:52:45.000Z","size":3994,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T11:22:41.211Z","etag":null,"topics":["a2a","a2a-server","ag-ui","leanix","mcp-server","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Knuckles-Team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-05T02:16:33.000Z","updated_at":"2026-05-29T09:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Knuckles-Team/leanix-agent","commit_stats":null,"previous_names":["knuckles-team/leanix-agent"],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/Knuckles-Team/leanix-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knuckles-Team%2Fleanix-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knuckles-Team%2Fleanix-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knuckles-Team%2Fleanix-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knuckles-Team%2Fleanix-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Knuckles-Team","download_url":"https://codeload.github.com/Knuckles-Team/leanix-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knuckles-Team%2Fleanix-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","a2a-server","ag-ui","leanix","mcp-server","python"],"created_at":"2026-03-07T16:09:10.481Z","updated_at":"2026-06-01T04:01:17.781Z","avatar_url":"https://github.com/Knuckles-Team.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leanix Agent\n## CLI or API | MCP | Agent\n\n![PyPI - Version](https://img.shields.io/pypi/v/leanix-agent)\n![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')\n![PyPI - Downloads](https://img.shields.io/pypi/dd/leanix-agent)\n![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/leanix-agent)\n![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/leanix-agent)\n![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/leanix-agent)\n![PyPI - License](https://img.shields.io/pypi/l/leanix-agent)\n![GitHub](https://img.shields.io/github/license/Knuckles-Team/leanix-agent)\n![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/leanix-agent)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/leanix-agent)\n![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/leanix-agent)\n![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/leanix-agent)\n![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/leanix-agent)\n![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/leanix-agent)\n![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/leanix-agent)\n![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/leanix-agent)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/leanix-agent)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/leanix-agent)\n\n*Version: 0.24.0*\n\n---\n\n## Table of Contents\n- [Overview](#overview)\n- [Key Features](#key-features)\n- [CLI or API](#cli-or-api)\n- [MCP](#mcp)\n  - [Available MCP Tools](#available-mcp-tools)\n  - [MCP Configuration Examples](#mcp-configuration-examples)\n  - [Dynamic Tool Selection \u0026 Visibility](#dynamic-tool-selection--visibility)\n- [Agent](#agent)\n  - [Running the Agent CLI](#running-the-agent-cli)\n  - [Docker Compose Orchestration](#docker-compose-orchestration)\n- [Security \u0026 Governance](#security--governance)\n- [Installation](#installation)\n- [Contribute](#contribute)\n\n---\n\n## Overview\n\n**Leanix Agent** is a production-grade Agent and Model Context Protocol (MCP) server designed to interface directly with Agent package for communicating with LeanIX Enterprise Architecture Management via REST APIs and GraphQL..\n\n---\n\n## Key Features\n\n- **Consolidated Action-Routed MCP Tools:** Minimizes token overhead and eliminates tool bloat in LLM contexts by grouping methods into optimized, togglable tool modules.\n- **Enterprise-Grade Security:** Comprehensive support for Eunomia policies, OIDC token delegation, and granular execution context tracking.\n- **Integrated Graph Agent:** Built-in Pydantic AI agent supporting the Agent Control Protocol (ACP) and standard Web interfaces (AG-UI).\n- **Native Telemetry \u0026 Tracing:** Out-of-the-box OpenTelemetry exports and native Langfuse tracing.\n\n---\n\n## CLI or API\n\nThis agent wraps the Agent package for communicating with LeanIX Enterprise Architecture Management via REST APIs and GraphQL. API. You can interact with it programmatically or via its integrated execution entrypoints.\n\nDetailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in [docs/index.md](docs/index.md).\n\n---\n\n## MCP\n\nThis server utilizes dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.\n\n### Available MCP Tools\n| Tool Module | Toggle Env Var | Enabled by Default | Description \u0026 Nested Methods |\n|-------------|----------------|--------------------|------------------------------|\n| **Leanix Ai Inventory Builder** | `LEANIX_AI_INVENTORY_BUILDER_TOOL` | `True` | Manage leanix leanix ai inventory builder operations. Action-routed methods: `admindeletepipeline`, `deletefailedpipelines`, `deletepipeline`, `getpipeline`, `getpipelinefile`, `getpipelines`, `getpipelinesuggestions`, `healthcheck`, `pipelines`, `sendpipelineaction`. |\n| **Leanix Apptio Connector** | `LEANIX_APPTIO_CONNECTOR_TOOL` | `True` | Manage leanix leanix apptio connector operations. Action-routed methods: `create`, `deleteconfiguration`, `getallconfigurations`, `getconfigurations`, `getresults`, `getresultsurl`, `getstats`, `getstatus`, `getwarnings`, `upsertconfiguration`. |\n| **Leanix Automations** | `LEANIX_AUTOMATIONS_TOOL` | `True` | Manage leanix leanix automations operations. Action-routed methods: `instancescontroller_findall`, `instancescontroller_quota`, `scriptscontroller_createmcescript`, `scriptscontroller_updatemcescript`, `snapshotscontroller_managedrestorationrequests`, `snapshotscontroller_managesnapshotrequests`, `statisticscontroller_getstatistics`, `templatescontroller_createtemplate`, `templatescontroller_deletetemplate`, `templatescontroller_getalltemplates`, `templatescontroller_gettemplate`, `templatescontroller_patchtemplate`, `templatescontroller_updatetemplate`. |\n| **Leanix Reference Data Catalog** | `LEANIX_REFERENCE_DATA_CATALOG_TOOL` | `True` | Manage leanix leanix reference data catalog operations. Action-routed methods: `delete_links`, `get_items`, `get_items_id`, `get_recommendations`, `get_requests`, `post_links`, `post_requests`, `post_requests_id_comments`. |\n| **Leanix Discovery Ai Agents** | `LEANIX_DISCOVERY_AI_AGENTS_TOOL` | `True` | Manage leanix leanix discovery ai agents operations. Action-routed methods: `get_integrations`, `get_integrations_id`, `post_agents_a2a_cards`, `post_integrations`, `put_integrations_id_capabilities`, `put_integrations_id_credentials`, `put_integrations_id_name`, `put_integrations_id_status`. |\n| **Leanix Discovery Linking V1** | `LEANIX_DISCOVERY_LINKING_V1_TOOL` | `True` | Manage leanix leanix discovery linking v1 operations. Action-routed methods: `bulk_link`, `discovery_items`, `discovery_itemsfilter_options`, `discovery_itemsid`, `discovery_itemsidpre_validate_linkfactsheetid`, `discovery_itemskpi_values`, `discovery_itemslinking_progress`, `discovery_itemslinking_progressid`, `factsheetsiddetails`, `link`, `reject`. |\n| **Leanix Discovery Linking V2** | `LEANIX_DISCOVERY_LINKING_V2_TOOL` | `True` | Manage leanix leanix discovery linking v2 operations. Action-routed methods: `get_factsheets_id_links`, `get_origin_discoveryitems`, `get_origin_discoveryitems_export`, `get_origin_discoveryitems_id`, `get_origin_discoveryitems_id_changelogs`, `get_origin_discoveryitems_linkingprogress`, `get_origin_discoveryitems_sourceconfigs`, `get_origin_insights`, `get_origin_internal_events`, `get_origin_internal_events_compaction`, `get_origin_settings`, `get_origin_settings_autolinking`, `post_origin_discoveryitems_id_preview`, `post_origin_push`, `post_origin_push_id`, `put_origin_discoveryitems_id_link`, `put_origin_discoveryitems_link`, `put_origin_discoveryitems_reject`, `put_origin_settings_autolinking`. |\n| **Leanix Discovery Sap Extension** | `LEANIX_DISCOVERY_SAP_EXTENSION_TOOL` | `True` | Manage leanix leanix discovery sap extension operations. Action-routed methods: `delete_integrations_id_`, `get_check_data_model`, `get_checkdatamodel`, `get_cloud_foundry_domains`, `get_cloud_foundry_subject_pattern`, `get_credentials_type`, `get_health`, `get_integrations`, `get_kyma_spec_suggestions`, `patch_integrations_id`, `post_cloud_foundry_infer_certificate_domain`, `post_credentials_verify_cms`, `post_integrations`, `post_integrations_credentials_verify`, `post_integrations_id_sync`, `post_kyma_verify_api_url`, `put_integrations_id_credentials_build`, `put_integrations_id_credentials_cloud_foundry`, `put_integrations_id_credentials_cms`, `put_integrations_id_credentials_kyma`. |\n| **Leanix Discovery Saas** | `LEANIX_DISCOVERY_SAAS_TOOL` | `True` | Manage leanix leanix discovery saas operations. Action-routed methods: `deleteintegrationbyid`, `getavailableintegrations`, `getdiscoveries`, `getdiscoveryprioritybyid`, `getintegrationbyid`, `getintegrations`, `postintegration`, `putintegrationcapabilitiesbyid`, `putintegrationcredentialsbyid`, `putintegrationnamebyid`, `putintegrationstatusbyid`. |\n| **Leanix Documents** | `LEANIX_DOCUMENTS_TOOL` | `True` | Manage leanix leanix documents operations. Action-routed methods: `createdocuments`, `createtemplatecomponents`, `createtemplates`, `deletedocumentbyid`, `deletetemplate`, `deletetemplatecomponent`, `getdocumentbyid`, `getdocumentcomponents`, `getdocumentscount`, `getdocumentspaginated`, `gettemplatebyid`, `gettemplatecomponents`, `gettemplatespaginated`, `updatecomponents`, `updatedocument`, `updatedocumentcomponents`, `updatetemplate`. |\n| **Leanix Impacts** | `LEANIX_IMPACTS_TOOL` | `True` | Manage leanix leanix impacts operations. Action-routed methods: `compute`, `get`, `getprojection`, `getsinglefactsheetprojection`, `update`. |\n| **Leanix Integration Api** | `LEANIX_INTEGRATION_API_TOOL` | `True` | Manage leanix leanix integration api operations. Action-routed methods: `createinazure`, `createsynchronizationfastrun`, `createsynchronizationfastrunwithconfig`, `createsynchronizationrun`, `createsynchronizationrunwithconfig`, `createsynchronizationrunwithexecutiongroup`, `createsynchronizationrunwithexecutiongroupandurlinput`, `createsynchronizationrunwithurlinput`, `deleteprocessorconfiguration`, `get_examples_advancedexample`, `get_examples_starterexample`, `getprocessorconfigurations`, `getsynchronizationrundebuginformation`, `getsynchronizationrundebugvariables`, `getsynchronizationrunprogress`, `getsynchronizationrunresults`, `getsynchronizationrunresultsurl`, `getsynchronizationrunsstatuslist`, `getsynchronizationrunstats`, `getsynchronizationrunstatus`, `getsynchronizationrunwarnings`, `startsynchronizationrun`, `stopsynchronizationrun`, `upsertprocessorconfiguration`. |\n| **Leanix Integration Collibra** | `LEANIX_INTEGRATION_COLLIBRA_TOOL` | `True` | Manage leanix leanix integration collibra operations. Action-routed methods: `createcollibracredentials`, `createconfiguration`, `createsynchronizationrun`, `deleteconfiguration`, `getassetstatuses`, `getassettypes`, `getattributetypes`, `getattributetypesforassettype`, `getattributetypesforassettypebyscope`, `getcollibracredentialsbyid`, `getcommunities`, `getcomplexrelationtypes`, `getconfigurationbyid`, `getconfigurations`, `getcredentials`, `getdomains`, `getfeaturetoggles`, `getfields`, `getoverview`, `getrelationfields`, `getrelations`, `getrelationtypes`, `getresourceroles`, `getresponsibilityroles`, `getstatus`, `getsubscriptionroles`, `updatecollibracredentials`, `updateconfiguration`, `validatecollibracredentialsbyid`. |\n| **Leanix Integration Servicenow** | `LEANIX_INTEGRATION_SERVICENOW_TOOL` | `True` | Manage leanix leanix integration servicenow operations. Action-routed methods: `abortallpendingandrunningsynchronizations`, `abortsynchronization`, `changes`, `createconfiguration`, `deleteconfiguration`, `getaggregatedfactsheetsummary`, `getaggregatedsoftwareinformation`, `getallconfigurations`, `getavailablerelcirelations`, `getconfiguration`, `getcurrentlyrunningorlastcreatedrun`, `getfilterforfactsheet`, `getfilterforprovider`, `getfilters`, `getfiltersforhardware`, `getinstalledservicenowpluginversion`, `getmappingtablerelations`, `getreferencefieldrelations`, `getservicenowaggregatedhardware`, `getservicenowaggregatedsoftware`, `getservicenowmetadata`, `getservicenowsyncconstraintrules`, `getstatusoverview`, `gettables`, `getversionbyid`, `getversions`, `hooks`, `sendprompt`, `sendpromptv2`, `synchronize`, `updateconfiguration`, `validateconfiguration`, `validateservicenowcredentials`. |\n| **Leanix Integration Signavio** | `LEANIX_INTEGRATION_SIGNAVIO_TOOL` | `True` | Manage leanix leanix integration signavio operations. Action-routed methods: `analyzelatestsynchronizationrun`, `analyzesynchronizationrun`, `cancelsynchronization`, `createcategory`, `createconfiguration`, `deleteconfiguration`, `getconfiguration`, `getconfigurations`, `getdirectories`, `getfactsheetfields`, `getformations`, `getlabels`, `getlatestsynchronizationrunanalysis`, `getprocessfields`, `getsignavioglossaryitemfields`, `getsignavioprocessfields`, `getsynchronizationrunanalysis`, `synchronizeconfiguration`, `unassignformation`, `updateconfiguration`. |\n| **Leanix Inventory Data Quality** | `LEANIX_INVENTORY_DATA_QUALITY_TOOL` | `True` | Manage leanix leanix inventory data quality operations. Action-routed methods: `getdatamodel`, `getfactsheettypes`, `getrecommendationsagenttobc`, `getrecommendationsapptobc`, `getrelationnames`, `refreshembeddings`, `submitdqicardfeedback`, `submitfeedback`, `submitfeedback_1`. |\n| **Leanix Mtm** | `LEANIX_MTM_TOOL` | `True` | Manage leanix leanix mtm operations. Action-routed methods: `accessfeature`, `activate`, `add_data_breach_contact`, `authenticate`, `checkip`, `create`, `create_account`, `create_contract`, `create_custom_feature`, `create_event`, `create_identity_provider`, `create_instance`, `create_or_update_user_segment`, `create_technical_user`, `create_workspace`, `createapitoken`, `createpermission`, `createsetting`, `createuser`, `createuserpassword`, `createworkspacelabel`, `createworkspacemaintenance`, `delete_account`, `delete_contract`, `delete_custom_feature`, `delete_data_breach_contact`, `delete_identity_provider`, `delete_instance`, `delete_technical_user`, `delete_workspace`, `deleteapitoken`, `deletedomain`, `deletesetting`, `deleteworkspacelabel`, `deleteworkspacemaintenance`, `get_account`, `get_accounts`, `get_contract`, `get_contracts`, `get_contracts_1`, `get_custom_feature`, `get_custom_feature_1`, `get_custom_features`, `get_custom_features_1`, `get_custom_features_2`, `get_data_breach_contact`, `get_domains`, `get_domains_1`, `get_event`, `get_events`, `get_events_1`, `get_events_2`, `get_events_3`, `get_events_4`, `get_events_5`, `get_events_6`, `get_export`, `get_feature_bundle`, `get_identity_provider`, `get_identity_providers`, `get_impersonations`, `get_instance`, `get_instances`, `get_instances_1`, `get_instances_2`, `get_metadata`, `get_permission`, `get_permission_stats`, `get_permissions`, `get_settings`, `get_settings_1`, `get_settings_2`, `get_support_permissions`, `get_technical_user`, `get_user_list_export`, `get_user_segment`, `get_users`, `get_users_1`, `get_users_2`, `get_workspace`, `get_workspaces`, `get_workspaces_1`, `get_workspaces_2`, `get_workspaces_3`, `getaiaccess`, `getall`, `getapitoken`, `getapitokens`, `getapplication`, `getapplications`, `getdomain`, `getdomains`, `getedition`, `geteditions`, `getevents_6`, `getfeature`, `getfeatures`, `getidentityproviders`, `getinstancesbyworkspace`, `getlabelsbyworkspace`, `getlabelsbyworkspaces`, `getnotificationsettings`, `getpermission`, `getpermissions`, `getpermissions_1`, `getpreferredinstance`, `getraw`, `getsetting`, `getsettings_2`, `getsettings_3`, `getsettings_4`, `gettaskbyid`, `gettechnicalusers`, `getuser`, `getuserpiichanges`, `getuserrandom`, `getuserrandom_1`, `getusers_1`, `getworkspacemaintenance`, `getworkspaces_2`, `getworkspaces_3`, `getworkspacesforbackup`, `inactive`, `invalidate`, `invite`, `list`, `login`, `loginpractitioner`, `logout`, `permissions_search`, `process_graph_ql`, `replace_technical_user_api_token`, `reset_password`, `review`, `set_password`, `setpassword_1`, `setworkspacenotificationstatus`, `switchdefaultinstance`, `switchpermissionrole`, `token`, `update_account`, `update_contract`, `update_custom_feature`, `update_event`, `update_identity_provider`, `update_instance`, `update_technical_user`, `update_workspace`, `updateapitoken`, `updatesetting`, `updateuser`, `upsertdomain`. |\n| **Leanix Managed Code Execution** | `LEANIX_MANAGED_CODE_EXECUTION_TOOL` | `True` | Manage leanix leanix managed code execution operations. Action-routed methods: `createexecutionconfiguration`, `createsecret`, `deleteexecutionconfiguration`, `deletesecret`, `getallsecrets`, `getexecutionconfiguration`, `getexecutionconfigurationhistory`, `getexecutionconfigurations`, `getexecutionconfigurationsbysecretid`, `getexecutionlog`, `getexecutionlogs`, `getsecretbyid`, `updateexecutionconfiguration`, `updateexecutionconfigurationcapability`, `updatesecret`. |\n| **Leanix Metrics** | `LEANIX_METRICS_TOOL` | `True` | Manage leanix leanix metrics operations. Action-routed methods: `all_charts_charts_get`, `all_kpis_kpis_get`, `all_kpis_simple_kpis_simple_get`, `all_points_schemas__uuid__points_get`, `all_schemas_schemas_get`, `delete_chart_charts__uuid__delete`, `delete_one_kpi_kpis__uuid__delete`, `delete_one_point_schemas__uuid__points__timestamp__delete`, `delete_points_range_schemas__uuid__points_delete`, `delete_schema_schemas__uuid__delete`, `find_schemas_schemas_find_get`, `get_aggregation_schemas__uuid__points_aggregation_post`, `healthcheck_healthcheck__get`, `kpi_job_jobs_kpi__kpi_uuid__post`, `new_chart_charts_post`, `new_kpi_kpis_post`, `new_point_schemas__uuid__points_post`, `new_schema_schemas_post`, `one_chart_charts__uuid__get`, `one_kpi_kpis__uuid__get`, `one_point_schemas__uuid__points__timestamp__get`, `one_schema_schemas__uuid__get`, `patch_kpi_kpis_patch`, `put_kpi_kpis_put`, `trend_schemas__uuid__trends_get`, `update_patch_chart_charts__uuid__patch`, `update_put_chart_charts__uuid__put`, `validate_kpis_validate_post`, `ws_job_jobs_post`. |\n| **Leanix Navigation** | `LEANIX_NAVIGATION_TOOL` | `True` | Manage leanix leanix navigation operations. Action-routed methods: `batchputcollectiongroups`, `createcollectiongroup`, `createpresentation`, `createslide`, `deletecollection`, `deletecollectiongroupbyid`, `deletecollectionnavigationitem`, `deletenavigationitemfavorite`, `deletepresentationbyid`, `deletepresentationsharebyid`, `deleteslidebyid`, `executebatchdelete`, `executebatchmove`, `getallcollectiongroups`, `getcollectionfolders`, `getcollectiongroupbyid`, `getcollections`, `getnavigationitemfavorite`, `getpresentationbyid`, `getpresentationsharesbyid`, `postcollection`, `postcollectionnavigationitem`, `postfoldercontroller`, `postnavigationitemfavorite`, `putcollection`, `putcollectiongroupbyid`, `putcollectionnavigationitem`, `putpresentationbyid`, `putslidebyid`, `searchnavigationitem`, `searchpresentation`, `sharepresentation`, `updatefoldercontroller`. |\n| **Leanix Pathfinder** | `LEANIX_PATHFINDER_TOOL` | `True` | Manage leanix leanix pathfinder operations. Action-routed methods: `archive_fact_sheet`, `change_bookmark_owner`, `create_access_control_entity`, `create_bookmark`, `create_bookmark_shares`, `create_fact_sheet`, `create_fact_sheet_relation`, `create_full_export`, `delete_access_control_entity`, `delete_asset`, `delete_bookmark`, `delete_bookmark_shares`, `delete_fact_sheet_relation`, `download_asset`, `download_export_file`, `get_access_control_entities`, `get_access_control_entity`, `get_action_batch`, `get_action_batches`, `get_all_versions_for_bookmark`, `get_authorization`, `get_bookmark`, `get_bookmark_shares`, `get_bookmarks`, `get_data_model`, `get_enriched_data_model`, `get_exports`, `get_fact_sheet`, `get_fact_sheet_hierarchy`, `get_fact_sheet_relations`, `get_fact_sheet_resource_model`, `get_fact_sheets`, `get_feature`, `get_features`, `get_language`, `get_meta_model`, `get_meta_model_actions`, `get_meta_model_actions_audit_log`, `get_meta_model_actions_for_node`, `get_meta_model_authorization`, `get_meta_model_for_type`, `get_meta_model_job`, `get_meta_model_permission_roles`, `get_meta_model_root`, `get_model_customization`, `get_preview_of_affected_data`, `get_reporting_model`, `get_settings`, `get_suggestions`, `get_view_model`, `post_action_batches`, `post_meta_model_actions`, `process_graph_ql`, `process_graph_ql_multipart`, `update_access_control_entity`, `update_authorization`, `update_bookmark`, `update_data_model`, `update_fact_sheet`, `update_fact_sheet_relation`, `update_fact_sheet_resource_model`, `update_feature`, `update_language`, `update_models_with_customization`, `update_reporting_model`, `update_settings`, `update_view_model`, `upsert_asset`. |\n| **Leanix Poll** | `LEANIX_POLL_TOOL` | `True` | Manage leanix leanix poll operations. Action-routed methods: `check_for_new_fact_sheets`, `create_poll`, `create_poll_reminder`, `create_poll_run`, `create_poll_template`, `delete_by_id`, `delete_poll`, `delete_poll_run`, `get_added_recipients_for_run`, `get_all`, `get_by_id`, `get_poll`, `get_poll_count`, `get_poll_poll_runs`, `get_poll_recipient_details`, `get_poll_result`, `get_poll_results_for_user`, `get_poll_run`, `get_poll_run_results`, `get_poll_runs`, `get_poll_runs_kpi_counts`, `get_polls`, `get_polls_for_factsheet`, `get_recipients_for_poll_run`, `get_reminders`, `get_results_for_poll_run`, `replay`, `replay_1`, `set_status`, `update_poll`, `update_poll_result`, `update_poll_run`. |\n| **Leanix Reference Data** | `LEANIX_REFERENCE_DATA_TOOL` | `True` | Manage leanix leanix reference data operations. Action-routed methods: `batchlinks`, `clearduplicatelinks`, `clonelinks`, `deletelinkbysourcename`, `fetchbusinesscapabilitymetrics`, `filteredfactsheetscount`, `get_jobs`, `get_source_name_fact_sheets_id`, `getbuscapconfiguration`, `getbusinesscapability`, `getconfiguration`, `getconfigurationmodels`, `getexportfile`, `getexportstatus`, `getfactsheetsbysourcename`, `getlatestrecommendationrun`, `getlink`, `getlinkbysourcename`, `getlinks`, `getlinksbyfactsheettype`, `getlinksbysourcename`, `getprovisioning`, `getrefresh`, `getrefreshes`, `getrequests`, `getrequestscount`, `getsaasconfiguration`, `gettbmmigrationstatus`, `gettbmtaxonomy`, `gettechcategoryconfiguration`, `getusedtechnolotrecommendationcontroller`, `post_jobs`, `post_managedrestorationrequests`, `post_managedsnapshotrequests`, `postbusinesscapability`, `postrefresh`, `precomputedrecommendations`, `putbulklinksbysourcename`, `putbulksourcehierarchylinkscontroller`, `putbuscapconfiguration`, `putconfiguration`, `putimporttbm`, `putlinksbysourcename`, `putprovisioning`, `putrequests`, `putsaasconfiguration`, `putsourcehierarchylinkcontroller`, `puttechcategoryconfiguration`, `putusedtechnolotrecommendationcontroller`, `refreshltlslinks`, `startmappingexport`, `tbmmigrationstatusupdate`, `validatelink`. |\n| **Leanix Discovery Sap** | `LEANIX_DISCOVERY_SAP_TOOL` | `True` | Manage leanix leanix discovery sap operations. Action-routed methods: `appcontroller_heartbeat`, `demodatacontroller_createcustomdemodata`, `demodatacontroller_demodatalist`, `integrationscontroller_integrationcreate`, `integrationscontroller_integrationdelete`, `integrationscontroller_integrationget`, `integrationscontroller_integrationpatch`, `integrationscontroller_integrationslist`, `integrationscontroller_integrationtriggersync`. |\n| **Leanix Technology Discovery** | `LEANIX_TECHNOLOGY_DISCOVERY_TOOL` | `True` | Manage leanix leanix technology discovery operations. Action-routed methods: `createtechstack`, `deletetechstackbyqueryparam`, `getaggregatedcounts`, `getalltechstacks`, `getcomponentsbyapplication`, `getfactsheetsbylibrary`, `getlibraries`, `getlibraryusagedetails`, `gettechstackdetailsbyqueryparam`, `getversionsbylibrary`, `leanix_v1_factsheets_sboms_ingest`, `leanix_v1_factsheets_sboms_ingest_1`, `leanix_v1_microservice_discovery_yaml_manifest_register`, `previewmatches`, `searchcomponentsbypurl`, `updatetechstackbyqueryparam`. |\n| **Leanix Storage** | `LEANIX_STORAGE_TOOL` | `True` | Manage leanix leanix storage operations. Action-routed methods: `addfiletoworkspace`, `deleteavatar`, `deletefile`, `deletefiles`, `deletelogo`, `getavatar`, `getfile`, `getfilecontent`, `getfiles`, `getlogo`, `setavatar`, `setfileowner`, `setlogo`. |\n| **Leanix Survey** | `LEANIX_SURVEY_TOOL` | `True` | Manage leanix leanix survey operations. Action-routed methods: `check_for_new_fact_sheets`, `create_poll`, `create_poll_reminder`, `create_poll_run`, `delete_poll_by_id`, `delete_poll_run`, `get_added_recipients_for_poll_run`, `get_all_reminders_for_poll_run`, `get_all_templates`, `get_poll`, `get_poll_count`, `get_poll_result`, `get_poll_results_by_poll_run_id`, `get_poll_results_for_user`, `get_poll_run_by_id`, `get_poll_runs`, `get_poll_runs_by_poll`, `get_polls`, `get_polls_for_fact_sheet`, `get_recipients_and_fact_sheets_for_poll`, `get_recipients_and_fact_sheets_for_poll_run`, `get_templates_by_id`, `getpollrunresultsasexcel`, `replay_all_workspaces`, `replay_workspace_by_id`, `update_poll`, `update_poll_result`, `update_poll_run`, `update_poll_run_status`. |\n| **Leanix Synclog** | `LEANIX_SYNCLOG_TOOL` | `True` | Manage leanix leanix synclog operations. Action-routed methods: `addsyncitembatch`, `createsynchronization`, `deletesyncitems`, `getsynchronization`, `getsynchronizations`, `getsyncitems`, `getsyncitems_1`, `gettopics`, `gettriggers`, `requestabortion`, `updatesynchronization`. |\n| **Leanix Todo** | `LEANIX_TODO_TOOL` | `True` | Manage leanix leanix todo operations. Action-routed methods: `accepttodo`, `assigntome`, `createtodo`, `deletetodos`, `get`, `managedrestorationrequests`, `managedsnapshotrequests`, `query`, `rejecttodo`, `replyandclosetodo`, `upserttodos`. |\n| **Leanix Transformations** | `LEANIX_TRANSFORMATIONS_TOOL` | `True` | Manage leanix leanix transformations operations. Action-routed methods: `createtransformation`, `deletetransformation`, `deletetransformationcustomimpacts`, `gettransformation`, `gettransformationcustomimpacts`, `gettransformations`, `posttransformationcustomimpacts`, `posttransformationexecution`, `posttransformationsexecution`, `puttransformation`, `puttransformationcustomimpacts`. |\n| **Leanix Webhooks** | `LEANIX_WEBHOOKS_TOOL` | `True` | Manage leanix leanix webhooks operations. Action-routed methods: `createcustomeventtag`, `createevent`, `createeventbatch`, `createsubscription`, `deletecustomeventtag`, `deletesubscription`, `getcustomeventtags`, `geteventtags`, `getsubscription`, `getsubscriptiondeliveries`, `getsubscriptionevents`, `getsubscriptions`, `getsubscriptionstatus`, `getsubscriptionstatuses`, `updatecustomeventtag`, `updatesubscription`, `updatesubscriptioncursor`. |\n| **Graphql** | `GRAPHQL_TOOL` | `True` | Execute raw GraphQL queries and mutations natively on LeanIX Pathfinder API. |\n\nDetailed tool schemas, parameter shapes, and validation constraints are preserved in [docs/mcp.md](docs/mcp.md).\n\n### Dynamic Tool Selection \u0026 Visibility\n\nThis MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows you to restrict the set of exposed tools in order to prevent blowing up the LLM's context window.\n\nYou can configure tool filtering via multiple input channels:\n\n- **CLI Arguments:** Pass `--tools` or `--toolsets` (or their disabled counterparts `--disabled-tools` and `--disabled-toolsets`) during startup.\n- **Environment Variables:** Define standard environment variables:\n  - `MCP_ENABLED_TOOLS` / `MCP_DISABLED_TOOLS`\n  - `MCP_ENABLED_TAGS` / `MCP_DISABLED_TAGS`\n- **HTTP SSE Request Headers:** Pass custom headers during transport initialization:\n  - `x-mcp-enabled-tools` / `x-mcp-disabled-tools`\n  - `x-mcp-enabled-tags` / `x-mcp-disabled-tags`\n- **HTTP SSE Request Query Parameters:** Append query parameters directly to your transport connection URL:\n  - `?tools=tool1,tool2`\n  - `?tags=tag1`\n\nWhen query strings or parameters are supplied, an LLM-free **Knowledge Graph resolution layer** (using `DynamicToolOrchestrator`) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.\n\n---\n\n### MCP Configuration Examples\n\n#### stdio Transport (Recommended for local IDEs e.g., Cursor, Claude Desktop)\nConfigure your IDE's `mcp.json` to launch the MCP server via `uvx`:\n\n```json\n{\n  \"mcpServers\": {\n    \"leanix-agent\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"--from\",\n        \"leanix-agent\",\n        \"leanix-mcp\"\n      ],\n      \"env\": {\n        \"LEANIX_WORKSPACE\": \"your_leanix_workspace_here\",\n        \"LEANIX_API_TOKEN\": \"your_leanix_api_token_here\",\n        \"SSL_VERIFY\": \"your_ssl_verify_here\",\n        \"DEBUG\": \"your_debug_here\",\n        \"PYTHONUNBUFFERED\": \"your_pythonunbuffered_here\",\n        \"LEANIX_TOKEN\": \"your_leanix_token_here\"\n      }\n    }\n  }\n}\n```\n\n#### Streamable-HTTP Transport (Recommended for production deployments)\nConfigure your client's `mcp.json` to launch the Streamable-HTTP server via `uvx` with explicit host and port definition:\n\n```json\n{\n  \"mcpServers\": {\n    \"leanix-agent\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"--from\",\n        \"leanix-agent\",\n        \"leanix-mcp\"\n      ],\n      \"env\": {\n        \"TRANSPORT\": \"streamable-http\",\n        \"HOST\": \"0.0.0.0\",\n        \"PORT\": \"8000\",\n        \"LEANIX_WORKSPACE\": \"your_leanix_workspace_here\",\n        \"LEANIX_API_TOKEN\": \"your_leanix_api_token_here\",\n        \"SSL_VERIFY\": \"your_ssl_verify_here\",\n        \"DEBUG\": \"your_debug_here\",\n        \"PYTHONUNBUFFERED\": \"your_pythonunbuffered_here\",\n        \"LEANIX_TOKEN\": \"your_leanix_token_here\"\n      }\n    }\n  }\n}\n```\n\nAlternatively, connect to a pre-deployed remote or local Streamable-HTTP instance:\n\n```json\n{\n  \"mcpServers\": {\n    \"leanix-agent\": {\n      \"url\": \"http://localhost:8000/leanix-agent/mcp\"\n    }\n  }\n}\n```\n\nDeploying the Streamable-HTTP server via Docker:\n\n```bash\ndocker run -d \\\n  --name leanix-agent-mcp \\\n  -p 8000:8000 \\\n  -e TRANSPORT=streamable-http \\\n  -e PORT=8000 \\\n  -e LEANIX_WORKSPACE=\"your_value\" \\\n  -e LEANIX_API_TOKEN=\"your_value\" \\\n  -e SSL_VERIFY=\"your_value\" \\\n  -e DEBUG=\"your_value\" \\\n  -e PYTHONUNBUFFERED=\"your_value\" \\\n  -e LEANIX_TOKEN=\"your_value\" \\\n  knucklessg1/leanix-agent:latest\n```\n\n---\n\n## Agent\n\nThis repository features a fully integrated Pydantic AI Graph Agent. It communicates over the **Agent Control Protocol (ACP)** and interacts seamlessly with the **Agent Web UI (AG-UI)** and Terminal interface.\n\n### Running the Agent CLI\nTo start the interactive command-line agent:\n\n```bash\n# Set credentials\nexport LEANIX_WORKSPACE=\"your_value\"\nexport LEANIX_API_TOKEN=\"your_value\"\nexport SSL_VERIFY=\"your_value\"\nexport DEBUG=\"your_value\"\nexport PYTHONUNBUFFERED=\"your_value\"\nexport LEANIX_TOKEN=\"your_value\"\n\n# Run the agent server\nleanix-agent --provider openai --model-id gpt-4o\n```\n\n### Docker Compose Orchestration\nThe following `docker/agent.compose.yml` configures the Agent, Web UI, and Terminal Interface together:\n\n```yaml\nversion: '3.8'\n\nservices:\n  leanix-agent-mcp:\n    image: knucklessg1/leanix-agent:latest\n    container_name: leanix-agent-mcp\n    hostname: leanix-agent-mcp\n    restart: always\n    env_file:\n      - ../.env\n    environment:\n      - PYTHONUNBUFFERED=1\n      - HOST=0.0.0.0\n      - PORT=8000\n      - TRANSPORT=streamable-http\n    ports:\n      - \"8000:8000\"\n    healthcheck:\n      test: [\"CMD\", \"python3\", \"-c\", \"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n      start_period: 10s\n    logging:\n      driver: json-file\n      options:\n        max-size: \"10m\"\n        max-file: \"3\"\n\n  leanix-agent-agent:\n    image: knucklessg1/leanix-agent:latest\n    container_name: leanix-agent-agent\n    hostname: leanix-agent-agent\n    restart: always\n    depends_on:\n      - leanix-agent-mcp\n    env_file:\n      - ../.env\n    command: [ \"leanix-agent\" ]\n    environment:\n      - PYTHONUNBUFFERED=1\n      - HOST=0.0.0.0\n      - PORT=9004\n      - MCP_URL=http://leanix-agent-mcp:8000/mcp\n      - PROVIDER=${PROVIDER:-openai}\n      - MODEL_ID=${MODEL_ID:-gpt-4o}\n      - ENABLE_WEB_UI=True\n      - ENABLE_OTEL=True\n    ports:\n      - \"9004:9004\"\n    healthcheck:\n      test: [\"CMD\", \"python3\", \"-c\", \"import urllib.request; urllib.request.urlopen('http://localhost:9004/health')\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n      start_period: 10s\n    logging:\n      driver: json-file\n      options:\n        max-size: \"10m\"\n        max-file: \"3\"\n\n```\n\nDetailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in [docs/agent.md](docs/agent.md).\n\n---\n\n## Security \u0026 Governance\n\nBuilt directly upon the enterprise-ready [`agent-utilities`](https://github.com/Knuckles-Team/agent-utilities) core, standard security parameters are fully supported:\n\n### Access Control \u0026 Policy Enforcement\n- **Eunomia Policies:** Fine-grained, policy-driven tool authorization. Supports `none`, local `embedded` (`mcp_policies.json`), or centralized `remote` modes.\n- **OIDC Token Delegation:** Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.\n- **Scoped Credentials:** Execution context runs restricted to the specific caller identity.\n\n### Runtime Security Grid\n| Feature | Functionality | Enablement |\n|---------|---------------|------------|\n| **Tool Guard** | Sensitivity inspection with human-in-the-loop validation | Enabled by default |\n| **Prompt Injection Defense** | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |\n| **Context Safety Guard** | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |\n\n---\n\n## Installation\n\nInstall the Python package locally:\n\n```bash\n# Using uv (highly recommended)\nuv pip install leanix-agent[all]\n\n# Using standard pip\npython -m pip install leanix-agent[all]\n```\n\n---\n\n## Repository Owners\n\n\u003cimg width=\"100%\" height=\"180em\" src=\"https://github-readme-stats.vercel.app/api?username=Knucklessg1\u0026show_icons=true\u0026hide_border=true\u0026\u0026count_private=true\u0026include_all_commits=true\" /\u003e\n\n![GitHub followers](https://img.shields.io/github/followers/Knucklessg1)\n![GitHub User's stars](https://img.shields.io/github/stars/Knucklessg1)\n\n---\n\n## Contribute\n\nContributions are welcome! Please ensure code quality by executing local checks before submitting pull requests:\n- Format code using `ruff format .`\n- Lint code using `ruff check .`\n- Validate type-safety with `mypy .`\n- Execute test suites using `pytest`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknuckles-team%2Fleanix-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknuckles-team%2Fleanix-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknuckles-team%2Fleanix-agent/lists"}