@first-ch/tools-mcp 0.61.0 → 0.62.1
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.
- package/README.md +4 -2
- package/apps.mjs +7 -0
- package/package.json +2 -2
- package/romaji-name.mjs +5 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server exposing [First CH Tools](https://tools.first-ch.com)' free web-tool logic — WCAG contrast, JP character/X-weight counting, WebP conversion, JSON-LD generation, llms.txt generation, encoding/line-ending conversion, Marp Markdown→slide rendering, Japanese/English test-data generation, text/code diffing, cron-expression explanation, Base64/data-URI encoding, URL query-parameter editing, HTML entity escaping/unescaping, JSON⇄YAML conversion, px ⇄ rem/em unit conversion, colour-code conversion with alpha compositing, MD5/SHA-1/SHA-256/SHA-384/SHA-512 hashing, JWT decoding with expiry and signature checks, User-Agent parsing with device/bot detection, bulk UUID v4 / ULID generation, aspect-ratio calculation with responsive sizing, case conversion between camelCase, snake_case and kebab-case, CSV/TSV ⇄ JSON conversion, IP/CIDR calculation with subnet splitting and IP-range reduction, business-day date calculation with Japanese public holidays, HTML-to-Markdown conversion, Japanese era ⇄ Western date conversion with age calculation, and URL-slug generation from Japanese titles — to AI agents such as Claude Code. All of those run on your machine.
|
|
4
4
|
|
|
5
|
-
It also ships **`app_*` tools** for the
|
|
5
|
+
It also ships **`app_*` tools** for the 45 web apps at [apps.first-ch.com](https://apps.first-ch.com) (site checks such as GEO/AI-search readiness, meta tags, security headers, SSL certificates, DNS and email DNS, redirects, broken links, structured data, AI-crawler access, Japanese readability, and AI-assisted business-tone and LP-copy checks). Unlike the local tools, **an `app_*` tool sends its input (a URL, domain name or text) to apps.first-ch.com** and returns the JSON the app's API responds with — see [Network access, files and privacy](#network-access-files-and-privacy).
|
|
6
6
|
|
|
7
7
|
日本語版は [後半セクション](#日本語) を参照してください。
|
|
8
8
|
|
|
@@ -127,6 +127,7 @@ Each `app_*` tool calls one app's public JSON API (`POST https://apps.first-ch.c
|
|
|
127
127
|
| `app_gazou_ichijouhou` | [Photo Location Leak Check](https://apps.first-ch.com/en/gazou-ichijouhou/) — Pairs each JPEG on a page with its WordPress original (the URL without the -WIDTHxHEIGHT / -scaled suffix on the same server) and checks whether the Exif still holds the shooting location (GPS latitude and longitude). Each call judges five pairs from `offset` and returns the list of pairs (first 20), a state and reason per image and the next `offset`; call again until `next` is null. Coordinates, capture dates and image bytes are never returned, and "none" is not a guarantee. | `url`, `offset?` |
|
|
128
128
|
| `app_shashin_sozai_moto` | [Photo Source List Before Switching Web Agencies (Groundwork for a License Check)](https://apps.first-ch.com/en/shashin-sozai-moto/) — Lists up to 30 photos in the img / srcset / picture tags of one page, flags file names in a stock-site format (currently AdobeStock_number only) and, for JPEGs, returns the creator, credit and copyright text in the XMP / IPTC of the first 128KB (up to 60 characters each). Each call judges ten photos from `offset` and returns the photo list, a state and reason per photo and the next `offset`; call again until `next` is null. CSS background images and images added by JavaScript are out of scope. Image bytes and the page itself are never returned, and rights or legality are not judged. | `url`, `offset?` |
|
|
129
129
|
| `app_hp_sumaho_check` | [Look at Our Site on Your Phone — 3-Question Check Card](https://apps.first-ch.com/en/hp-sumaho-check/) — Reads the page's HTML and up to 3 same-site stylesheets (96KB / 2,000 rules parsed in total) for three mobile points: a tel: link for every phone number in the text, sideways scrolling (viewport width=device-width, fixed width / min-width of 900px+ on body, #wrapper and similar) and text & zoom (user-scalable=no, maximum-scale=1, body / p below 12px). Each point is `check` / `none` / `unknown` (with reasons), with locations (HTML line, CSS file and line) and fix hints, plus up to 3 yes/no questions to ask someone checking on a real phone and a share URL with `ref`. No pass/fail or score, not a judgement of real rendering; the page and CSS are never returned. | `url` |
|
|
130
|
+
| `app_hp_seisakuhi_url` | [Reference Site to Questions for Your Web Agency](https://apps.first-ch.com/en/hp-seisakuhi-url/) — Fetches the top page of a site you want to reference once (first 256KB) and reports 8 parts visible in its HTML: links mentioning booking and their destination hosts, how many forms and whether they have a text area / email / phone field, search box, embedded maps and map links, RSS/Atom feed links, hreflang and language switch links, same-site link text in nav and footer, and matches with the online-shop entries of the tech-stack ledger. Each comes as one line of facts with evidence (tag names / text, up to 40 characters) or "not found on the top page", plus a question to ask a web agency and the note for the end of the memo. No judgement of purpose, no prices; the page is never returned. | `url` |
|
|
130
131
|
| `app_tech_detect` | [Tech Stack Detector](https://apps.first-ch.com/en/tech-detect/) — Enter a URL to infer the CMS (WordPress, Shopify, Wix, STUDIO and more), framework, CDN, analytics tags (GA4/GTM) and web fonts from HTML and header signatures — always with the evidence behind each guess. | `url` |
|
|
131
132
|
| `app_gaibu_soushinsaki` | [Third-Party Tag Inventory](https://apps.first-ch.com/en/gaibu-soushinsaki/) — Fetches one page and matches the script src, img and iframe hosts and inline install snippets in its HTML against a table of 18 major analytics, advertising and social-embed services (Google, Meta, Microsoft, LinkedIn, LY Corporation, X). Returns the company count, per-service details (typical purpose, where to stop it, official source), discontinued services such as Universal Analytics, external hosts not in the table, and a CSV checklist. It only reads what is written in the HTML: it does not verify actual data transmission or legal compliance, and tags inside a tag manager are invisible. | `url` |
|
|
132
133
|
| `app_wp_check` | [WordPress Quick Audit](https://apps.first-ch.com/en/wp-check/) — Enter a URL to see whether the site runs WordPress, which theme it uses, the version it announces, and whether REST API username enumeration, xmlrpc.php, author archives, the default login URL, readme.html or a debug log are exposed. Read-only GETs, never enumeration. | `url` |
|
|
@@ -206,7 +207,7 @@ Release rule: a push to `main` automatically publishes a new package version thr
|
|
|
206
207
|
|
|
207
208
|
`@first-ch/tools-mcp` は、[First CH Tools](https://tools.first-ch.com)(無料Webツール集)の計算ロジック — WCAGコントラスト比・日本語文字数/Xウェイト計測・WebP変換・JSON-LD生成・llms.txt生成・文字コード/改行コード変換・Marp Markdown→スライド レンダリング・テストデータ生成・テキスト/コード差分・Cron式の解説・Base64/Data URI変換・URLパラメータの分解/編集/再構築・HTML特殊文字のエスケープ/エンティティのデコード・JSON⇄YAMLの相互変換・px⇄rem/emの単位換算とCSSの一括変換・カラーコードの相互変換とアルファ透過の合成・MD5/SHA-1/SHA-256/SHA-384/SHA-512のハッシュ生成と照合・JWTのデコードと有効期限/署名の検証・User-Agent文字列の解析とデバイス判定・UUID v4 / ULIDの一括生成・アスペクト比の計算とレスポンシブサイズの算出・camelCase / snake_case / kebab-case などの文字列ケース変換・CSV/TSV ⇄ JSON の相互変換・日数/営業日の計算(日本の祝日を内蔵)・HTML→Markdownの変換・和暦⇄西暦の変換と満年齢の計算・日本語タイトルからのURLスラッグ生成 — をAIエージェント(Claude Code等)向けMCPツールとして提供するサーバーです。これらは全て端末内で処理します。
|
|
208
209
|
|
|
209
|
-
あわせて、[apps.first-ch.com](https://apps.first-ch.com) のWebアプリ
|
|
210
|
+
あわせて、[apps.first-ch.com](https://apps.first-ch.com) のWebアプリ45本(GEO・メタタグ・セキュリティヘッダー・SSL証明書・DNS/メールDNS・リダイレクト・リンク切れ・構造化データ・AIクローラー許可・和文可読性・AIによるビジネス文面/LP文言のチェックなど)を呼ぶ **`app_*` ツール**も提供します。**`app_*` ツールは入力(URL・ドメイン名・文面)を apps.first-ch.com のサーバーへ送り**、アプリの API が返した JSON を返します(端末内で完結する他のツールとはここが違います)。詳しくは [通信・ファイル・プライバシー](#通信ファイルプライバシー) を参照してください。
|
|
210
211
|
|
|
211
212
|
### インストール
|
|
212
213
|
|
|
@@ -329,6 +330,7 @@ claude mcp add firstch-tools -- npx -y @first-ch/tools-mcp
|
|
|
329
330
|
| `app_gazou_ichijouhou` | [写真の位置情報チェック](https://apps.first-ch.com/gazou-ichijouhou/) — URLのページの JPEG と、WordPress の元画像の候補(-幅x高さ・-scaled を外した同じサーバーのURL)を組にして、Exif に撮影場所(GPS の緯度・経度)が残っていないかを調べる。1回で offset から5組を判定し、組の一覧(先頭20組)・画像ごとの状態と理由・次の offset を返す(next が null になるまで呼ぶ)。座標・撮影日時の値と画像のバイト列は返さない。「none」は安全の保証ではない。 | `url`, `offset?` |
|
|
330
331
|
| `app_shashin_sozai_moto` | [制作会社の乗り換え前に写真の素材元を一覧(利用権の確認の下調べ)](https://apps.first-ch.com/shashin-sozai-moto/) — URLのページの img・srcset・picture の写真を最大30枚拾い、素材サイト形式のファイル名(現在は AdobeStock_数字 のみ)と、JPEG の先頭128KBの XMP・IPTC にある撮影者・クレジット・著作権表記(各60字まで)を返す。1回で offset から10枚を判定し、写真の一覧・写真ごとの状態と理由・次の offset を返す(next が null になるまで呼ぶ)。CSS の背景画像と JavaScript で足される画像は対象外。画像のバイト列とページの原文は返さず、権利関係や違法性は判定しない。 | `url`, `offset?` |
|
|
331
332
|
| `app_hp_sumaho_check` | [うちのHP、スマホで見て3つ教えて|確認依頼カード](https://apps.first-ch.com/hp-sumaho-check/) — ページの HTML と同じサイトの CSS(最大3本・解析は合計96KB/2,000規則まで)から、①本文の電話番号ごとの tel: リンク ②横ずれ(viewport の width=device-width・body や #wrapper 等の900px以上の固定幅) ③文字と拡大(user-scalable=no・maximum-scale=1・body/p の12px未満)を check/none/unknown(理由つき)で返し、記述の位置・直し方の要点と、実機で見てもらう人に聞く「はい/いいえ」の質問(最大3問)・ref 付きの共有URLを返す。合否・点数は出さず、実機の表示の判定ではない。原文は返さない。 | `url` |
|
|
333
|
+
| `app_hp_seisakuhi_url` | [参考サイトのURLから、制作会社に聞くことリスト](https://apps.first-ch.com/hp-seisakuhi-url/) — 参考にしたいサイトのトップページを1回だけ取得し(先頭256KBまで)、HTMLで見えた8つの部品(予約を含むリンクと行き先のホスト・フォームの数と文章欄/メール欄/電話欄・検索欄・地図・RSS/Atom の配信リンク・hreflang と言語切替・nav と footer の同じサイトへのリンクの文言・ネットショップの台帳との一致)を、事実の1行と根拠(1件40字まで)、見つからなければ「トップページでは見つからず」で返す。部品ごとに制作会社へ聞く質問文も返す。用途の断定・金額は出さず、原文は返さない。 | `url` |
|
|
332
334
|
| `app_tech_detect` | [技術スタック検出](https://apps.first-ch.com/tech-detect/) — URLのページの HTML と応答ヘッダーのシグネチャから、CMS(WordPress・Shopify・Wix・STUDIO 等)・フレームワーク・CDN・解析タグ(GA4/GTM)・Webフォントを推定し、そう判断した根拠(どこで何に合致したか)と一緒に返す。 | `url` |
|
|
333
335
|
| `app_gaibu_soushinsaki` | [外部タグ棚卸し(解析・広告・SNS埋め込み)](https://apps.first-ch.com/gaibu-soushinsaki/) — URLのページを1回だけ取得し、HTMLに書かれた script の src・img・iframe の外部ホストとインラインの設置スニペットを、主要18サービス(Google・Meta・Microsoft・LinkedIn・LINEヤフー・X)の対応表と照合する。会社数・サービスごとの明細(一般的な用途・止める場所・公式資料の出典)・終了済みサービス(UA など)・表にない外部ホストと、確認用の棚卸し表(CSV)を返す。HTMLに書かれたタグだけを見るもので、実際の送信や法令への適合は判定しない(タグマネージャー経由のタグは見えない)。 | `url` |
|
|
334
336
|
| `app_wp_check` | [WordPress簡易診断](https://apps.first-ch.com/wp-check/) — URLのサイトが WordPress かどうか・テーマ名・名乗っている範囲のバージョンを判定し、REST API のユーザー名列挙・xmlrpc.php・著者アーカイブ・既定のログインURL・readme.html・デバッグログの露出を診断する。攻撃的な列挙はせず GET で見える範囲だけを見る(WordPress の痕跡があるときだけ既定パス7本を追加で GET。ユーザー名は件数だけ返す)。 | `url` |
|
package/apps.mjs
CHANGED
|
@@ -269,6 +269,13 @@ const DEFS = [
|
|
|
269
269
|
slow: false,
|
|
270
270
|
inputSchema: { url: URL_PARAM('確かめるホームページのURL'), lang: LANG },
|
|
271
271
|
},
|
|
272
|
+
urlApp(
|
|
273
|
+
'hp-seisakuhi-url',
|
|
274
|
+
'/hp-seisakuhi-url/api/parts',
|
|
275
|
+
'参考サイトのURLから、制作会社に聞くことリスト',
|
|
276
|
+
'参考にしたいサイトのトップページを1回だけ取得し(先頭256KBまで)、HTMLで見えた8つの部品(予約を含むリンクと行き先のホスト・フォームの数と文章欄/メール欄/電話欄の有無・検索欄・地図の埋め込みとリンク・RSS/Atom の配信リンク・hreflang と言語切替のリンク・nav と footer の同じサイトへのリンクの文言・技術スタック台帳のネットショップとの一致)を、事実の1行・根拠(タグ名・文言。1件40字まで)・見つからなければ「トップページでは見つからず」と返す。部品ごとに制作会社へ聞く質問文と、相談メモの末尾に入れる注記も返す。用途・機能の有無は断定せず、金額・相場は出さない。ページの原文は返さない。',
|
|
277
|
+
{ urlLabel: '参考にしたいサイトのURL' },
|
|
278
|
+
),
|
|
272
279
|
urlApp(
|
|
273
280
|
'tech-detect',
|
|
274
281
|
'/tech-detect/api/detect',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@first-ch/tools-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "First CH Tools の計算ロジック(WCAGコントラスト比・文字数/Xウェイト・WebP変換・JSON-LD生成・llms.txt生成・文字コード/改行コード変換・Marp Markdown→スライド レンダリング・テストデータ生成・テキスト/コード差分・Cron式の解説・Base64/Data URI変換・URLパラメータの分解/再構築・HTML特殊文字のエスケープ/エンティティのデコード・JSON⇄YAMLの相互変換・px⇄rem/emの単位換算とCSSの一括変換・カラーコードの相互変換とアルファ透過の合成・MD5/SHA-1/SHA-256/SHA-384/SHA-512のハッシュ生成と照合・JWTのデコードと有効期限/署名の検証・User-Agent文字列の解析とデバイス判定・UUID v4/ULIDの一括生成・アスペクト比の計算とレスポンシブサイズの算出・TSV/CSVからMarkdownテーブルへの整形と相互変換・SQLクエリの整形と予約語の大文字化・URL/テキストからのQRコード生成・UNIXタイムスタンプと日時表記の相互変換・robots.txtの生成(AIクローラーの許可プリセット付き)・文字列のケース変換(camelCase/snake_case/kebab-case など11形式)・CSV/TSVとJSON配列の相互変換(区切りの自動判定・a.b 列と入れ子の相互展開)・全角⇄半角の変換とテキストの掃除(文字種ごとの向き指定・半角カナの合成/分解・空白と空行の整理)・IPアドレス/CIDRの計算(ネットワーク・ブロードキャスト・ホスト範囲とホスト数・IPv4/IPv6・サブネット分割・包含判定・IP範囲→最小CIDR集合の逆算)・日数/営業日の計算(2日付間の日数と営業日数・起点日+N日/N営業日の期日・締め日と支払サイトからの支払日・土日と日本の祝日を内蔵)・HTML→Markdownの変換(見出し/リスト/表/リンク/画像/コード・script/styleや装飾タグの除去・本文だけの抽出・相対URLの絶対化)・和暦⇄西暦の変換(令和〜明治・自動判定・曜日と干支・存在しない和暦の指摘・満年齢と入学/卒業の年・元号一覧と早見表)・日本語タイトルからのURLスラッグ生成(かな→ヘボン式ローマ字・記号除去・ハイフン/アンダースコア連結・小文字化・長音の省略/表記)・Basic認証用 htpasswd の生成と照合(bcrypt / apr1-md5・パスワードの自動生成・Apache / nginx の設定スニペット)・OpenAPI/Swagger仕様書から日本語のMarkdownドキュメントとTypeScript型定義の生成(OpenAPI 3.x / Swagger 2.0・YAML/JSON・$ref/allOf/oneOf 対応・エンドポイントごとの引数/レスポンス型・外部 $ref は読みに行かない)・FAQ構造化データ(FAQPage の JSON-LD・Markdown・details/summary の HTML を同時生成・回答のリンク/箇条書きを HTML 化・「Q: / A:」形式の一括貼り付けの解析)・テキストの行操作(重複行の削除・数値を認識する並べ替え・シード付きシャッフル・行番号・空行除去・前後トリム・接頭辞/接尾辞)・印刷サイズとDPIの計算(用紙×解像度×塗り足しから必要なピクセル数・手持ちの画像の実効dpiと判定・早見表・mm/inch/px/pt/級の換算)・SERPのメタタグ文字数チェック(title / description が検索結果に収まるかをピクセル幅で判定・切り詰め位置と表示行・パンくず表示・https や階層の指摘)・Flexbox / CSS GridのCSS生成(既定値を省いた宣言・repeat()への畳み込み・grid-template-areasの検証・効かない組み合わせの指摘・定番プリセット)・社内文書の点検(Notion・Confluence などから書き出した Markdown/HTML の重複ページ・孤立ページ・表記ゆれや旧称・リンク切れの検出と修正案)・記入欄に収める字の大きさと改行位置(中袋〔ご祝儀袋・香典袋〕の住所欄などの幅・高さmmから1字の大きさ・行数・改行位置・縦書きの漢数字・金額の大字)・AIが書いた返信案と届いたメールの照合(原文に無い日付・曜日・時刻・金額・数量・電話・宛名を赤、消し忘れの仮の文字を黄)・ComfyUI画像(PNG)の埋め込みデータに残ったAPIキーの形の点検(ノードIDと入力欄で場所を示し値は伏せる・持ち主へのお知らせ文・文字のチャンクを抜いたコピー)・GA4「トラフィック獲得」のCSVから AI Assistant と Organic Search の訪問をエンゲージメント率・平均エンゲージメント時間・キーイベント率で比べる集計(倍率・総計行との突き合わせ・除外した行の行番号・要約)・メールアドレス候補の読み上げ文と拍数(記号・同じ文字の連続・数字の桁数などの数え上げと欧文通話表の1文字ずつの表)・PNG/JPEG の画像の終端(IEND・本体の EOI)より後ろに付いたデータの有無とバイト数・パスポートの氏名と航空券・ESTA などのつづりの1文字ずつの照合〔違いの位置と種類〕)をMCPツールとして提供するサーバー。あわせて apps.first-ch.com のWebアプリ
|
|
3
|
+
"version": "0.62.1",
|
|
4
|
+
"description": "First CH Tools の計算ロジック(WCAGコントラスト比・文字数/Xウェイト・WebP変換・JSON-LD生成・llms.txt生成・文字コード/改行コード変換・Marp Markdown→スライド レンダリング・テストデータ生成・テキスト/コード差分・Cron式の解説・Base64/Data URI変換・URLパラメータの分解/再構築・HTML特殊文字のエスケープ/エンティティのデコード・JSON⇄YAMLの相互変換・px⇄rem/emの単位換算とCSSの一括変換・カラーコードの相互変換とアルファ透過の合成・MD5/SHA-1/SHA-256/SHA-384/SHA-512のハッシュ生成と照合・JWTのデコードと有効期限/署名の検証・User-Agent文字列の解析とデバイス判定・UUID v4/ULIDの一括生成・アスペクト比の計算とレスポンシブサイズの算出・TSV/CSVからMarkdownテーブルへの整形と相互変換・SQLクエリの整形と予約語の大文字化・URL/テキストからのQRコード生成・UNIXタイムスタンプと日時表記の相互変換・robots.txtの生成(AIクローラーの許可プリセット付き)・文字列のケース変換(camelCase/snake_case/kebab-case など11形式)・CSV/TSVとJSON配列の相互変換(区切りの自動判定・a.b 列と入れ子の相互展開)・全角⇄半角の変換とテキストの掃除(文字種ごとの向き指定・半角カナの合成/分解・空白と空行の整理)・IPアドレス/CIDRの計算(ネットワーク・ブロードキャスト・ホスト範囲とホスト数・IPv4/IPv6・サブネット分割・包含判定・IP範囲→最小CIDR集合の逆算)・日数/営業日の計算(2日付間の日数と営業日数・起点日+N日/N営業日の期日・締め日と支払サイトからの支払日・土日と日本の祝日を内蔵)・HTML→Markdownの変換(見出し/リスト/表/リンク/画像/コード・script/styleや装飾タグの除去・本文だけの抽出・相対URLの絶対化)・和暦⇄西暦の変換(令和〜明治・自動判定・曜日と干支・存在しない和暦の指摘・満年齢と入学/卒業の年・元号一覧と早見表)・日本語タイトルからのURLスラッグ生成(かな→ヘボン式ローマ字・記号除去・ハイフン/アンダースコア連結・小文字化・長音の省略/表記)・Basic認証用 htpasswd の生成と照合(bcrypt / apr1-md5・パスワードの自動生成・Apache / nginx の設定スニペット)・OpenAPI/Swagger仕様書から日本語のMarkdownドキュメントとTypeScript型定義の生成(OpenAPI 3.x / Swagger 2.0・YAML/JSON・$ref/allOf/oneOf 対応・エンドポイントごとの引数/レスポンス型・外部 $ref は読みに行かない)・FAQ構造化データ(FAQPage の JSON-LD・Markdown・details/summary の HTML を同時生成・回答のリンク/箇条書きを HTML 化・「Q: / A:」形式の一括貼り付けの解析)・テキストの行操作(重複行の削除・数値を認識する並べ替え・シード付きシャッフル・行番号・空行除去・前後トリム・接頭辞/接尾辞)・印刷サイズとDPIの計算(用紙×解像度×塗り足しから必要なピクセル数・手持ちの画像の実効dpiと判定・早見表・mm/inch/px/pt/級の換算)・SERPのメタタグ文字数チェック(title / description が検索結果に収まるかをピクセル幅で判定・切り詰め位置と表示行・パンくず表示・https や階層の指摘)・Flexbox / CSS GridのCSS生成(既定値を省いた宣言・repeat()への畳み込み・grid-template-areasの検証・効かない組み合わせの指摘・定番プリセット)・社内文書の点検(Notion・Confluence などから書き出した Markdown/HTML の重複ページ・孤立ページ・表記ゆれや旧称・リンク切れの検出と修正案)・記入欄に収める字の大きさと改行位置(中袋〔ご祝儀袋・香典袋〕の住所欄などの幅・高さmmから1字の大きさ・行数・改行位置・縦書きの漢数字・金額の大字)・AIが書いた返信案と届いたメールの照合(原文に無い日付・曜日・時刻・金額・数量・電話・宛名を赤、消し忘れの仮の文字を黄)・ComfyUI画像(PNG)の埋め込みデータに残ったAPIキーの形の点検(ノードIDと入力欄で場所を示し値は伏せる・持ち主へのお知らせ文・文字のチャンクを抜いたコピー)・GA4「トラフィック獲得」のCSVから AI Assistant と Organic Search の訪問をエンゲージメント率・平均エンゲージメント時間・キーイベント率で比べる集計(倍率・総計行との突き合わせ・除外した行の行番号・要約)・メールアドレス候補の読み上げ文と拍数(記号・同じ文字の連続・数字の桁数などの数え上げと欧文通話表の1文字ずつの表)・PNG/JPEG の画像の終端(IEND・本体の EOI)より後ろに付いたデータの有無とバイト数・パスポートの氏名と航空券・ESTA などのつづりの1文字ずつの照合〔違いの位置と種類〕)をMCPツールとして提供するサーバー。あわせて apps.first-ch.com のWebアプリ45本(GEO・メタタグ・セキュリティヘッダー・SSL・DNS・リダイレクト・リンク切れ・構造化データ・AIクローラー許可・和文可読性・ビジネス文面チェック等)の JSON API を呼ぶ app_* ツールも提供する(こちらは入力を apps.first-ch.com へ送るため既定では無効・FIRSTCH_ENABLE_APPS=1 で有効)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"firstch-tools-mcp": "server.mjs"
|
package/romaji-name.mjs
CHANGED
|
@@ -28,7 +28,7 @@ export const KIND_LABEL = {
|
|
|
28
28
|
extra_word: 'Extra word (middle-name field etc.)', nonlatin: 'Non-Latin character',
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
|
-
const LOOKALIKE = ['0O', '0Q', '0D', '1I', '1L', 'IL', '5S', '8B', '2Z', '6G', '
|
|
31
|
+
const LOOKALIKE = ['0O', '0Q', '0D', '1I', '1L', 'IL', '5S', '8B', '2Z', '6G', 'UV']; // 各組は字の順に並べて書く(classify が並べ替えた2字で引く)
|
|
32
32
|
const isSep = (c) => c === ' ' || c === '-';
|
|
33
33
|
const isLatin = (c) => /^[A-Z0-9 '\-.]$/.test(c);
|
|
34
34
|
|
|
@@ -85,12 +85,14 @@ export function align(a, b) {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
// 基準の文字列と、各文字が姓・名の何文字目か(空白・ハイフンは数えない)
|
|
88
|
+
// 姓か名の片方が空なら、間の空白を置かずにもう片方だけを基準にする
|
|
88
89
|
function baseLine(first, second, firstPart, secondPart) {
|
|
89
|
-
const
|
|
90
|
+
const both = !!first && !!second;
|
|
91
|
+
const text = both ? first + ' ' + second : first + second;
|
|
90
92
|
const where = [];
|
|
91
93
|
let k = 0;
|
|
92
94
|
for (const c of first) { where.push(isSep(c) ? null : { part: firstPart, pos: ++k }); }
|
|
93
|
-
where.push({ part: 'between', pos: 0 });
|
|
95
|
+
if (both) where.push({ part: 'between', pos: 0 });
|
|
94
96
|
k = 0;
|
|
95
97
|
for (const c of second) { where.push(isSep(c) ? null : { part: secondPart, pos: ++k }); }
|
|
96
98
|
return { text, where };
|