FoPost cho GitHub Copilot

GitHub Copilot kết nối với remote MCP server trong CLI và trong IDE của bạn. Thêm FoPost bằng URL, đăng nhập một lần, và Copilot có thể viết bài ra mắt cho đoạn code nó vừa phát hành.

Dán nội dung này vào GitHub Copilot

Thiết lập FoPost từ fopost.com/agents/github-copilot
  • MCP server lưu trữ sẵn
  • 31 mạng
  • Không cần khóa API
Tất cả agent
Cách hoạt động

GitHub Copilot soạn nháp. Bạn phê duyệt. Rồi bài được đăng.

  • REST API
FoPost
BạnDuyệtĐã duyệt

Bật sẵn

  • X (Twitter)
  • Facebook
  • Instagram
  • LinkedIn
  • TikTok
  • YouTube
  • Threads
  • Bluesky
  • Pinterest
  • Reddit
  • Discord
  • Mastodon
  • Telegram
  • Slack
  • DEV.to
  • Substack
  • Tumblr
  • Hashnode
  • Dribbble
  • Kick
  • Twitch
  • Nostr
  • Lemmy
  • MeWe
  • Whop
  • Listmonk
  • Google Business Profile
  • Medium
  • WhatsApp Business
  • Snapchat
  • Skool

Chọn một tác nhân để sao chép prompt thiết lập.

Thiết lập

Agent có thể tự viết cấu hình. Chỉ cần đưa nó đường link.

Dán dòng trên vào GitHub Copilot. Nó đọc trang này, thêm server rồi dừng lại để bạn tự đăng nhập FoPost. Muốn làm thủ công? Đây là toàn bộ cấu hình.

Terminal
copilot mcp add --transport http fopost https://api.fopost.com/mcp
Hướng dẫn cho AI agentPhiên bản markdown thuần
## For AI agents reading this page

You are reading https://fopost.com/agents/github-copilot. FoPost schedules and publishes social posts on 31 networks, and its hosted MCP server gives GitHub Copilot tools for posts, the calendar, the inbox and analytics. Follow these steps to connect GitHub Copilot to it.

- Server: https://api.fopost.com/mcp
- Transport: streamable HTTP
- Auth: OAuth sign-in in the user's browser. Do not add an API key or an Authorization header; GitHub Copilot discovers the sign-in from the server.

### 1. Register the server

Run this command for Copilot CLI. It adds the server to ~/.copilot/mcp-config.json. No headers and no API key. In JetBrains or Visual Studio, open Copilot Chat in Agent mode, choose the tools icon, then Add MCP Tools, and add the same URL to mcp.json.

Terminal:

```
copilot mcp add --transport http fopost https://api.fopost.com/mcp
```

### 2. Sign in

Run /mcp auth in a Copilot CLI session and pick the server. A browser window opens for the user to sign in. Ask the user before approving access or creating a FoPost account for them, and never enter their credentials yourself.

### 3. Verify before you continue

/mcp show fopost lists the server as connected with its tools. If FoPost is not listed as connected with its tools, stop and tell the user what failed. Do not carry on as if the tools exist.

### 4. Report back

Call list_accounts and tell the user which social accounts are connected. If there are none, offer create_connect_link so they can connect one. Then ask what they want to do first.

### Standing rules

- Prefer the FoPost tools over driving a browser for posting, scheduling, the inbox and analytics, unless the user asks for the browser.
- Publishing always goes through propose_publish, which the user approves in the client. Never publish or schedule anything silently.
- Ask the user before approving access, signing up or connecting an account on their behalf, and never type their credentials for them.

### No browser (headless machines only)

Use this only when the machine has no browser to sign in with. Ask the user to create an API key in the FoPost dashboard (https://fopost.com/dashboard/api-keys) and to put it in the config themselves, then run the local package over stdio:

~/.copilot/mcp-config.json:

```
{
  "mcpServers": {
    "fopost": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@fopost/mcp"],
      "env": { "FOPOST_API_KEY": "your-api-key" },
      "tools": ["*"]
    }
  }
}
```

### References

- This block as markdown: https://fopost.com/agents/github-copilot/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docs

Một lệnh

copilot mcp add viết sẵn mục cấu hình cho bạn.

Đăng nhập, không cần khóa

Copilot mở FoPost trong trình duyệt để bạn cấp quyền truy cập.

Phê duyệt trước

Việc đăng bài đi qua một đề xuất mà bạn chấp nhận. Bản nháp không bao giờ tự đăng.

Thiết lập

Thêm server, rồi đăng nhập

Trong Copilot CLI, chạy lệnh, rồi gõ /mcp auth trong một phiên và đăng nhập FoPost. Trong JetBrains hoặc Visual Studio, mở Copilot Chat ở chế độ Agent, chọn biểu tượng công cụ và thêm https://api.fopost.com/mcp vào mcp.json.

Bắt đầu miễn phí
Terminal
copilot mcp add --transport http fopost https://api.fopost.com/mcp

CLI hoặc IDE

Cùng một server trong terminal và trình soạn thảo.

Không có key trong cấu hình

Bạn đăng nhập thay vì dán key.

Kiểm tra trước

/mcp show fopost liệt kê các công cụ.

Phát hành

Biến một PR đã merge thành bài đăng

Nhờ Copilot tóm tắt những gì đã thay đổi, điều chỉnh bài đăng cho từng mạng bằng draft_post_variants và xếp lịch bằng get_queue_slots. Nó kết thúc bằng propose_publish để bạn chấp nhận.

Lên kế hoạch cho tuần của bạn
Một bài đăng được điều chỉnh cho nhiều mạng trong trình soạn bài

draft_post_variants

Một phiên bản cho từng mạng.

get_queue_slots

Các khung giờ trống tiếp theo trong hàng đợi của bạn.

propose_publish

Bạn phê duyệt trước khi bất cứ thứ gì được đăng.

Kiểm tra

Hỏi xem bài đã lên chưa

Các công cụ đọc báo cáo bài nào đã đăng, tài khoản nào cần kết nối lại và điều gì đang chờ trong hộp thư.

Bắt đầu miễn phí
Phiên làm việc
> What went out today?

list_posts shows 2 of 2 published.
list_inbox has 5 new comments.

list_posts

Bài đăng gần đây và trạng thái của chúng.

get_account_health

Tài khoản nào cần kết nối lại.

list_inbox

Bình luận, lượt nhắc và tin nhắn.

Headless

Máy không có trình duyệt?

Trên server hoặc trong CI không có trình duyệt để đăng nhập. Hãy tạo khóa API trong bảng điều khiển và chạy gói cục bộ qua stdio. Đừng để khóa trong kho mã của bạn.

~/.copilot/mcp-config.json
{
  "mcpServers": {
    "fopost": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@fopost/mcp"],
      "env": { "FOPOST_API_KEY": "your-api-key" },
      "tools": ["*"]
    }
  }
}

Giải đáp câu hỏi về GitHub Copilot

Tôi có cần khóa API không?

Không. Copilot đăng nhập FoPost cho bạn qua trình duyệt.

Nó có hoạt động với cloud agent trên github.com không?

Cloud agent hiện chưa đăng nhập được vào remote server. Ở đó hãy dùng header API key, lưu dưới dạng secret COPILOT_MCP_.

Tổ chức của tôi chặn nó. Vì sao?

Với gói Business và Enterprise, quản trị viên phải cho phép MCP server trong Copilot.

Nó có đăng bài mà không hỏi không?

Không. Việc đăng bài đi qua một đề xuất mà bạn phê duyệt trước khi bất cứ thứ gì được gửi đi.

Nó có dùng tín dụng AI của tôi không?

Chỉ các công cụ FoPost viết bằng AI mới dùng. Liệt kê và lên lịch thì không.

Chạy FoPost từ GitHub Copilot

Bắt đầu miễn phí và đã bao gồm MCP server. Dán dòng thiết lập vào agent của bạn, đăng nhập và lên lịch bài đăng đầu tiên từ đó.

Bắt đầu miễn phí