agentleFS
mikusnuzmikusnuz/meta-mcp/templates/AGENTS.md

meta-mcp / templates

AGENTS.md26 starsChanged 3 months agoMITView on GitHub

This project uses the meta-mcp MCP server for Instagram Graph API (v26.0), Threads API, and Meta platform management. The MCP server is configured in your MCP settings. It requires environment variables for each platform you use: Instagram: INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_USER_ID Instagram DMs (Facebook Login): INSTAGRAM_MESSAGING_ACCESS_TOKEN, INSTAGRAM_PAGE_ID Threads: THREADS_ACCESS_TOKEN, THREADS_USER_ID Meta (tokens/webhooks): META_APP_ID, META_APP_SECRET

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only set env vars for platforms you actually use

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Meta MCP — Instructions for Codex / AI Agents

This project uses the meta-mcp MCP server for Instagram Graph API (v26.0), Threads API, and Meta platform management.

Setup

The MCP server is configured in your MCP settings. It requires environment variables for each platform you use:

Instagram: INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_USER_ID Instagram DMs (Facebook Login): INSTAGRAM_MESSAGING_ACCESS_TOKEN, INSTAGRAM_PAGE_ID Threads: THREADS_ACCESS_TOKEN, THREADS_USER_ID Meta (tokens/webhooks): META_APP_ID, META_APP_SECRET

Tool Reference

Meta Platform (6)

ToolPurpose
meta_exchange_tokenShort-lived to long-lived token (~60 days)
meta_refresh_tokenExtend Instagram/Facebook or refresh Threads (platform)
meta_debug_tokenCheck validity and scopes
meta_get_app_infoApp information
meta_subscribe_webhookSubscribe to webhooks
meta_get_webhook_subscriptionsList subscriptions

Instagram — Publishing (6)

ToolPurpose
ig_publish_photoPhoto post (alt_text support)
ig_publish_videoVideo post
ig_publish_carouselCarousel/album (2-10 items)
ig_publish_reelReel (alt_text support)
ig_publish_storyStory (24hr)
ig_get_container_statusCheck processing status

Instagram — Media (5)

ToolPurpose
ig_get_media_list / ig_get_mediaList/get media
ig_delete_mediaDelete a post
ig_get_media_insightsAnalytics (views, reach, saved, shares)
ig_toggle_commentsEnable/disable comments

Instagram — Comments (7)

ToolPurpose
ig_get_comments / ig_get_commentRead comments
ig_post_comment / ig_reply_to_commentWrite comments
ig_get_repliesReply threads
ig_hide_comment / ig_delete_commentModerate

Instagram — Profile & Insights (5)

ToolPurpose
ig_get_profileProfile info
ig_get_account_insightsAccount analytics
ig_business_discoveryLook up other accounts
ig_get_collaboration_invitesPending collabs
ig_respond_collaboration_inviteAccept/decline

Instagram — Hashtags (4)

ToolPurpose
ig_search_hashtag / ig_get_hashtagSearch/info
ig_get_hashtag_recent / ig_get_hashtag_topHashtag feeds

Instagram — Mentions & Tags (2)

ToolPurpose
ig_get_mentioned_commentsMentions
ig_get_tagged_mediaTagged media

Instagram — Messaging (4)

ToolPurpose
ig_get_conversations / ig_get_messages / ig_get_messageRead DMs
ig_send_messageSend DM

Threads — Publishing (7)

ToolPurpose
threads_publish_textText post (polls, GIFs, links, topics, quotes, spoiler, ghost posts, reply approvals, location, IG Stories cross-share)
threads_publish_image / threads_publish_videoMedia posts (reply approvals, location, IG Stories cross-share)
threads_publish_carouselCarousel (2-20 items, reply approvals, location, IG Stories cross-share)
threads_delete_postDelete (max 100/day)
threads_get_container_statusProcessing status
threads_get_publishing_limitQuota check (250/day)

Threads — Media & Search (4)

ToolPurpose
threads_get_posts / threads_get_postList/get posts
threads_get_profile_postsList a public profile's posts by username
threads_search_postsSearch /keyword_search by keyword or topic tag

Threads — Replies (7)

ToolPurpose
threads_get_repliesGet top-level replies
threads_get_conversationGet all replies, flattened
threads_replyReply (image/video support)
threads_hide_reply / threads_unhide_replyModerate
threads_get_pending_replies / threads_manage_pending_replyReply approval queue

Threads — Profile, Mentions, Locations & oEmbed (7)

ToolPurpose
threads_get_profile / threads_get_user_threadsProfile
threads_lookup_profileLook up a public profile by username
threads_get_mentionsPosts where the user was @mentioned
threads_search_locations / threads_get_locationLocation tagging
threads_get_oembedEmbed HTML for a public post

Threads — Insights (2)

ToolPurpose
threads_get_post_insightsPost analytics
threads_get_user_insightsAccount analytics

When to Use

Invoke meta MCP tools when the task involves:

  • Publishing photos, videos, reels, stories, or carousels to Instagram
  • Publishing text, image, video, or carousel posts to Threads
  • Cross-posting content to both Instagram and Threads
  • Viewing or replying to comments on Instagram or Threads
  • Checking follower counts, reach, views, and other analytics
  • Searching hashtags or public Threads posts
  • Managing Instagram DMs
  • Moderating comments and replies (hide/delete)
  • Managing Meta API tokens (exchange, refresh, debug)

Safety Rules

  • Never post content without explicit user confirmation — always show a draft first
  • Instagram requires a Business or Creator account; Threads works with any account
  • Media publishing is async: always check container status before assuming success
  • Threads limit: 250 posts/day, 100 deletes/day — check threads_get_publishing_limit before bulk ops
  • Tokens expire after ~60 days — use meta_debug_token to check and meta_refresh_token with the correct platform to renew
  • Only set env vars for platforms you actually use

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.