{"repo":"codemountains/mountix","free":true,"listed":false,"github":"https://github.com/codemountains/mountix","clone":"git clone https://github.com/codemountains/mountix.git","description":"日本の山岳一覧・百名山API","language":"Rust","stars":10,"topics":["axum","ddd-architecture","rust-lang","mongodb","mountix"],"license":"MIT","category":"databases-storage","readme_excerpt":"日本の山岳一覧・百名山 API Getting Started DB initialization データベースは MongoDB Atlas Database を使用します。 事前にプロジェクト、クラスター、データベースを作成し Connection string を取得する必要があります。 Examples: - Project Name: mountix - Cluster Name: Mountix-Cluster0 - Database Name: mountix db Note: - macOS Monterey version 12.5 でのみ動作確認済みです。 - mongoimport については MongoDB Database Tools 公式ドキュメントを確認してください。 Run the web application Create .env . Execute cargo run command. REST API REST API は Axum で実装されており、JSON 形式で山岳データを提供します。 詳細なリクエスト/レスポンス仕様は Postman Public API Network を参照してください。 エンドポイント メソッド パス 概要 --- --- --- GET /api/v1/ API の基本情報（ MOUNTAINS URL / DOCUMENTS URL など） GET /api/v1/mountains 条件指定の山岳一覧取得 GET /api/v1/mountains/{id} 山岳IDで1件取得 GET /api/v1/mountains/{id}/surroundings 指定した山岳の周辺山岳を取得 GET /api/v1/mountains/geosearch 緯度経度の矩形範囲で山岳を検索 GET /api/v1/hc ヘルスチェック GET /api/v1/hc/mongo MongoDB ヘルスチェック /api/v1/mountains の主なクエリパラメータ パラメータ 説明 --- --- name 山岳名（部分一致） prefecture 都道府県ID tag タグID offset 取得開始位置 limit 取得件数 sort ソート条件 レスポンス形式 成功時は JsonMountain / JsonMountainsResponse などの JSON、エラー時は JsonErrorResponse （ messages 配列を含む）を返します。MCP ツールも同じスキーマの文字列を返します。 MCP (Model Context Protocol) Server Model Context Protocol の Streamable HTTP transport によるエンドポイントも提供しています。 Cursor などの MCP 対応クライアントから、山岳データを検索・取得するツールを呼び出すことができます。 エンドポイント - POST /mcp - MCP Streamable HTTP エンドポイント 提供ツール ツール名 説明 --- --- get mountain 山岳IDを指定して山岳情報を1件取得 find mountains 山岳名・都道府県・タグなどの条件で山岳を検索 find mountains by box 緯度経度の矩形範囲を指定して山岳を検索 find surroundings 指定した山岳の周辺にある山岳を検索 レスポンスは R","default_branch":null,"files":null,"tree":[],"storefront":"/r/codemountains","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codemountains/mountix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}