SA

sap/aas-mcp-server

API development

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

9 stars 7 forks 품질 82 트렌드 37Apache-2.0

AAS MCP 어댑터는 모델 Context Protocol 도구로 구성된 Asset Administration Shell API를 노출하여 LLM Agent를 사용하여 AAS-compliant 백엔드와 상호 작용합니다.

개요

Asset Administration Shell (AAS) API를 위한 OpenAPI-to-MCP 교량 AAS MCP 어댑터는 모델 Context Protocol 도구로 구성된 Asset Administration Shell API를 노출하여 LLM Agent를 사용하여 AAS-compliant 백엔드와 상호 작용합니다. 1. - IDTA Part 2 API specs from git tags of admin-shell-io/aas-specs-api, API 당 하나의 파일로 번들 (Npx의 git, perl 및 Node.js) 2. - SAP BNAC AAS Server, Eclipse BaSyx, FA3ST Service 등. 3. OR SPEC가 다른 구성 요소의 파일로 설정된 3 반복 단계, 예를 들어 SubmodelRepositoryServiceSpecification/V3.2 SSP-001.yaml, AssetAdministrationShellRegistryServiceSpecification/V3.2 SSP-001.yaml, SubmodelRegistryServiceSpecification/V3.2 SSP-001.yaml, ConceptRepositoryServiceSpecification/V3.2 SSP.yaml 또는 Discovery SSP-001.yaml. 파일 이름은 작은 버전 만 (V3.2 SSP-001.yaml 모든 v3.2.x 태그)를 수행하므로 태그는 폴더 이름으로 이동합니다.

개요(AI 번역)

이 프로젝트에 대해

Asset Administration Shell (AAS) API를 위한 OpenAPI-to-MCP 교량

AAS MCP 어댑터는 모델 Context Protocol 도구로 구성된 Asset Administration Shell API를 노출하여 LLM Agent를 사용하여 AAS-compliant 백엔드와 상호 작용합니다.

요구 사항 및 설정

# 필수품

  1. AAS OpenAPI 사양 - 관리자-shell-io/aas-specs-api의 git 태그에서 IDTA Part 2 API specs, API 당 하나의 파일로 묶어 npx)
  2. **AAS 백엔드 서버 ** - SAP BNAC AAS 서버, Eclipse BaSyx, FA3ST 서비스 등 3.Python 3.12+ 또는 Docker

설정

  1. AAS 사양:

반복 단계 3 와 SPEC 각 다른 구성 요소의 파일에 설정, 예. SubmodelRepositoryServiceSpecification/V3.2_SSP-001.yaml, AssetAdministrationShellRegistryServiceSpecification/V3.2_SSP-001.yaml, SubmodelRegistryServiceSpecification/V3.2_SSP-001.yaml, ConceptDescriptionRepositoryServiceSpecification/V3.2_SSP-001.yaml 또는 DiscoveryServiceSpecification/V3.2_SSP-001.yaml. 파일 이름은 미성년자 버전 만 (V3.2_SSP-001.yaml)을 모두 수행합니다. v3.2.x 태그), 그래서 태그는 폴더 이름으로 이동합니다. 유효한 꼬리표:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

AAS MCP Server

About this project

OpenAPI-to-MCP bridge for Asset Administration Shell (AAS) APIs

An AAS MCP adapter that exposes configured Asset Administration Shell APIs as Model Context Protocol tools, enabling LLM agents to interact with any AAS-compliant backend.

Requirements and Setup

Prerequisites

  1. AAS OpenAPI Specifications - the IDTA Part 2 API specs from the git tags of admin-shell-io/aas-specs-api, bundled into one file per API (needs git, perl and Node.js for npx)
  2. AAS Backend Server - SAP BNAC AAS Server, Eclipse BaSyx, FA³ST Service, etc.
  3. Python 3.12+ OR Docker

Setup

  1. Get AAS Specifications:

    TAG=v3.2.0
    SPEC=AssetAdministrationShellRepositoryServiceSpecification/V3.2_SSP-001.yaml
    
    # 1. Clone the tag (a throwaway copy, step 2 edits it)
    git clone -q --depth 1 --branch "$TAG" \
      https://github.com/admin-shell-io/aas-specs-api "aas-specs-api-$TAG"
    
    # 2. v3.1.x only (no-op for v3.2.0): use the shared schemas of the same tag
    #    instead of fetching them from SwaggerHub
    find "aas-specs-api-$TAG" -name '*.yaml' -exec perl -pi -e \
      's#https://api\.swaggerhub\.com/domains/Plattform_i40/(Part1-MetaModel-Schemas|Part2-API-Schemas)/V[0-9.]+#../$1/openapi.yaml#g' {} +
    
    # 3. Bundle into one self-contained file
    mkdir -p "specs/$TAG/$(dirname "$SPEC")"
    npx -y @redocly/[email protected] bundle "aas-specs-api-$TAG/$SPEC" -o "specs/$TAG/$SPEC"
    

    Repeat step 3 with SPEC set to the file of each other component, e.g. SubmodelRepositoryServiceSpecification/V3.2_SSP-001.yaml, AssetAdministrationShellRegistryServiceSpecification/V3.2_SSP-001.yaml, SubmodelRegistryServiceSpecification/V3.2_SSP-001.yaml, ConceptDescriptionRepositoryServiceSpecification/V3.2_SSP-001.yaml or DiscoveryServiceSpecification/V3.2_SSP-001.yaml. The file names carry the minor version only (V3.2_SSP-001.yaml for all v3.2.x tags), so the tag goes into the folder name. Available tags: git ls-remote --tags https://github.com/admin-shell-io/aas-specs-api.

  2. Create config.yaml (copy from config.yaml.template):

    components:
      aas-repo:
        official_spec: specs/v3.2.0/AssetAdministrationShellRepositoryServiceSpecification/V3.2_SSP-001.yaml
        curation:
          allowlist:
            - [get, "*"]  # All GET operations (wildcard)
GitHub에서 전체 README 보기

설치

npx -y @redocly/[email protected] bundle "aas-specs-api-$TAG/$SPEC" -o "specs/$TAG/$SPEC"
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "aas-repo": { "command": "aas-mcp-server", "args": [ "--component", "aas-repo", "--base-url", "http://localhost:8080", "--config", "/path/to/your/config.yaml" ], "env": { "LOG_LEVEL": "INFO" } } } }