FoPost cho Kimi Code
Kimi Code, agent lập trình của Moonshot AI, kết nối với remote MCP server qua URL. Thêm FoPost, đăng nhập một lần trong trình duyệt, và agent 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 Kimi Code
Thiết lập FoPost từ fopost.com/agents/kimi- MCP server lưu trữ sẵn
- 33 mạng
- Không cần khóa API
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 Kimi Code. 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.
{
"mcpServers": {
"fopost": {
"url": "https://api.fopost.com/mcp"
}
}
}## For AI agents reading this page
You are reading https://fopost.com/agents/kimi. FoPost schedules and publishes social posts on 33 networks, and its hosted MCP server gives Kimi Code tools for posts, the calendar, the inbox and analytics. Follow these steps to connect Kimi Code 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; Kimi Code discovers the sign-in from the server.
### 1. Register the server
Add this entry to ~/.kimi-code/mcp.json (every project) or .kimi-code/mcp.json (this repository), merged into any existing mcpServers object, or run /mcp-config in the session to add it interactively. An entry with a url and no transport is streamable HTTP. No headers. Changes load in a new session.
~/.kimi-code/mcp.json:
```
{
"mcpServers": {
"fopost": {
"url": "https://api.fopost.com/mcp"
}
}
}
```
### 2. Sign in
Run /mcp-config login fopost in the session. 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 shows fopost as connected. 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:
~/.kimi-code/mcp.json:
```
{
"mcpServers": {
"fopost": {
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}
```
### References
- This block as markdown: https://fopost.com/agents/kimi/agent.md
- Every client: https://fopost.com/agents
- Docs: https://fopost.com/docsMột mục
Chỉ một url, không gì khác. Không có khóa trong tệp.
Đăng nhập qua trình duyệt
/mcp-config login mở FoPost trong trình duyệt để bạn cấp quyền truy cập.
Mặc định cần phê duyệt
Kimi Code hỏi trước các lệnh gọi công cụ không nằm trong quy tắc quyền nào.
Thêm server, rồi đăng nhập
Thêm mục ở trên vào ~/.kimi-code/mcp.json, hoặc vào .kimi-code/mcp.json trong một dự án, hoặc chạy /mcp-config trong phiên làm việc để thêm mà không cần sửa tệp. Sau đó chạy /mcp-config login fopost và cấp quyền truy cập trong FoPost. /mcp cho biết đã kết nối hay chưa.
Bắt đầu miễn phí/mcp-config login fopost
/mcpTheo từng dự án
Một tệp .kimi-code/mcp.json trong repo giữ thiết lập đi cùng code.
Không cần sửa tay
/mcp-config thêm, sửa và xóa server ngay trong phiên làm việc.
Kiểm tra trước
Nhờ nó liệt kê các tài khoản đã kết nối của bạn.
Thông báo bản phát hành từ repo
Nhờ Kimi Code đọc changelog và soạn thông báo. Nó viết bản nháp bằng create_draft_post, một phiên bản cho từng mạng bằng draft_post_variants và kết thúc bằng propose_publish để bạn chấp nhận.
Lên kế hoạch ra mắt
draft_post_variants
Một ghi chú phát hành, điều chỉnh cho từng mạng.
get_queue_slots
Các khung giờ trống tiếp theo của bạn.
propose_publish
Kế hoạch bạn phê duyệt trước khi đăng.
Hỏi xem bài đã lên chưa
Trong cùng phiên đó, hãy hỏi bài nào đã đăng, tài khoản nào cần chú ý và mọi người đã phản hồi gì.
Bắt đầu miễn phí> Did the release post go out?
Kimi Code: list_posts shows 3 of 3 published.
list_inbox has 2 new replies.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
Phản hồi và lượt nhắc kể từ khi đăng.
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.
{
"mcpServers": {
"fopost": {
"command": "npx",
"args": ["-y", "@fopost/mcp"],
"env": { "FOPOST_API_KEY": "your-api-key" }
}
}
}Giải đáp câu hỏi về Kimi Code
Tôi có cần khóa API không?
Cách này có dùng được trong ứng dụng Kimi không?
Nó có đăng bài mà không hỏi không?
Làm sao để kiểm tra kết nối?
Nó có dùng tín dụng AI của tôi không?
Chạy FoPost từ Kimi Code
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í