render_map_tool: click a place to ask the model about it

Đang mở
#284 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
ai, frontend

Hướng nghiên cứu

Start by tracing the render_map_tool page and how it renders pins, result rows, and basemap POIs; then check the MCP Apps host API for sending chat messages and its ChatGPT Apps SDK equivalent. Add the short action list to the popup and include the place name and mapbox_id in each follow-up. Done when all three actions work on supported hosts and unsupported hosts still show the popup.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Problem

The map is display only. A user who sees a place on it has to type a follow-up ("how do I get to the second one?") instead of acting on it from the map.

Proposal

Clicking a pin, a results row or a basemap POI offers a few actions:

  • Directions here
  • Tell me more
  • What's nearby

Each one sends a follow-up message to the chat through the MCP Apps host API (in ChatGPT, the Apps SDK equivalent). The message carries the place's name and mapbox_id, so the model can call place_details_tool, directions_tool and so on with no guessing.

Notes

  • Host support: check that each host supports sending a message from the page. If it doesn't, fall back to just the popup.
  • Keep it small: a short action list in the popup, not a new panel.
  • Pairs with: reporting the page's state to the model (#287), so a follow-up like "how long is that one?" has context.
Ngôn ngữ chính
TypeScript
Star
375
Fork
46
Merge trung bình
22 giờ 54 phút
Pull request đã merge (30 ngày)
33

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mapbox/mcp-server

Tất cả issue của mapbox/mcp-server

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.