Skip to main content
Home

Model Context Protocol server that generates appropriate alternative text for images using ALT decision tree

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
6 months ago (0.1.2)

ALT Decision Tree MCP Serverロゴ

ALT Decision Tree MCP Server

画像の代替テキスト(ALT属性)をALT決定木に基づいて自動生成するModel Context Protocol (MCP) サーバーです。

機能

  • 画像分析: アップロードされた画像を分析し、内容を理解
  • ALT決定木: W3C WAI-ARIAガイドラインに基づく代替テキスト決定プロセス
  • 文脈考慮: 画像の使用目的や文脈を考慮した適切な代替テキスト生成
  • 信頼度スコア: 生成された代替テキストの信頼度を数値で提供

使用方法

サーバーの起動

deno run alt-decision-tree-mcp-server.ts

MCP Tools

generate_alt_text

画像から代替テキストを生成します。

パラメータ:

  • imageData (必須): Base64エンコードされた画像データ(data:image/...;base64,... 形式)
  • context (任意): 画像の文脈や用途に関する追加情報
  • imageFormat (任意): 画像フォーマット(png, jpg, jpeg, gif, webp)

戻り値:

  • altText: 生成された代替テキスト
  • reasoning: 決定の理由
  • decision: ALT決定木の各段階での判定結果
  • confidence: 信頼度スコア(0-1)

get_alt_guidance

ALT決定木のガイダンスと代替テキスト作成のベストプラクティスを提供します。

ALT決定木のロジック

  1. 装飾的かどうか: 画像が装飾目的の場合、空の代替テキスト
  2. テキストを含むか: 画像内のテキストを代替テキストとして使用
  3. 複雑かどうか: グラフや図表などは簡潔な説明と詳細説明
  4. 情報的かどうか: 画像の内容と目的を説明
  5. 機能的な場合: 画像の機能や目的を説明

テスト

deno test

対応画像形式

  • PNG
  • JPEG/JPG
  • GIF
  • WebP

ライセンス

MIT

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";
or

Import directly with a jsr specifier

import * as alt_decision_tree_mcp_server from "jsr:@yamanoku/alt-decision-tree-mcp-server";

Add Package

pnpm i jsr:@yamanoku/alt-decision-tree-mcp-server
or (using pnpm 10.8 or older)
pnpm dlx jsr add @yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";

Add Package

yarn add jsr:@yamanoku/alt-decision-tree-mcp-server
or (using Yarn 4.8 or older)
yarn dlx jsr add @yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";

Add Package

vlt install jsr:@yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";

Add Package

npx jsr add @yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";

Add Package

bunx jsr add @yamanoku/alt-decision-tree-mcp-server

Import symbol

import * as alt_decision_tree_mcp_server from "@yamanoku/alt-decision-tree-mcp-server";