validar-semver

Resolves real semver range satisfaction (^1.2.3, ~2.0) against a version. Paid via x402/USDC.

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
100%
이름 품질
100%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~629토큰 (도구 정의)
~6.2 KB일반적인 응답 크기
최소한의 주의 영향 (128k 컨텍스트의 0.49%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "validar-semver": {
      "url": "https://validar-semver.encodari.workers.dev/mcp"
    }
  }
}

원격 엔드포인트

https://validar-semver.encodari.workers.dev/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (1)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
⚪validate_semver(version, ranges, include_prereleases)

Resolves real semver range satisfaction (e.g. "^1.2.3", "~2.0", "2.x", ">=1.0.0 <2.0.0") against a version, using the same semver engine npm uses (the "semver" package), not a model guess about what should match. Costs $0.01 USDC (Base) per call.

입력 스키마

{
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "maxLength": 256,
      "description": "The semver version to evaluate (e.g. \"1.2.3\", \"1.2.3-beta.1\", \"v2.0.0\")."
    },
    "ranges": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 256
      },
      "description": "List of semver ranges to evaluate against the version, one by one. Max 50 ranges, 256 characters each."
    },
    "include_prereleases": {
      "description": "If true, allows a prerelease version (e.g. 1.3.0-beta.1) to match ranges that don't explicitly mention that same major.minor.patch tuple as a prerelease. Defaults to false (standard npm/semver behavior).",
      "type": "boolean"
    }
  },
  "required": [
    "version",
    "ranges"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "valid_version": {
      "type": "boolean",
      "description": "false if `version` isn't a valid semver."
    },
    "normalized_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Normalized form of `version` (e.g. \"v1.2.3\" -> \"1.2.3\"). null if valid_version is false."
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Error message if valid_version is false; null if valid."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "range": {
            "type": "string"
          },
          "valid_range": {
            "type": "boolean",
            "description": "false if that range isn't a valid semver range."
          },
          "normalized_range": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Normalized form of the range (expanded comparators). null if valid_range is false."
          },
          "satisfies": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "true/false whether the version satisfies the range. null if valid_range is false."
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Error message if valid_range is false; null if valid."
          }
        },
        "required": [
          "range",
          "valid_range",
          "normalized_range",
          "satisfies",
          "error"
        ],
        "additionalProperties": false
      },
      "description": "One result per range, in the same order they were received."
    }
  },
  "required": [
    "valid_version",
    "normalized_version",
    "error",
    "results"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 1개
검증됨버전이 기록되지 않음도구 1개