agentleFS
apifyapify/apify-mcp-server/src/AGENTS.md

apify-mcp-server / src

AGENTS.md9.6k starsChanged 4 months agoMITView on GitHub

The package has several entry points over one core; the top-level files wire those entries, and the subdirectories hold the logic. Start at the child doc for the directory you're editing. - index.ts — the library export (ActorsMcpServer plus createStatelessServer, the per-request registration for 2026-07-28 traffic); index_internals.ts — the ./internals.js surface the internal repo consumes (keep it minimal). index_internals_test_kit.ts — the separate ./internals/test-kit.js surface for tests/test_kit/**'s own self-reference imports only; apify-mcp-server-internal doesn't consume it, don't add anything here it does.…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 2 mentionsSep 2026: 5 mentionsOct 2026: 5 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the apify/apify-mcp-server repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about apify/apify-mcp-server

The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 26

Talked about on GitHub and Bluesky (26 times).

On GitHub · 25

20 more on GitHub
  • 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 repository5 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:

    After any change run the root Verification steps.

    line 43

≈ “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
<!-- agents-scope: src -->

src — source map

↑ Root

The package has several entry points over one core; the top-level files wire those entries, and the subdirectories hold the logic. Start at the child doc for the directory you're editing.

Entry points (top-level files)

  • index.ts — the library export (ActorsMcpServer plus createStatelessServer, the per-request registration for 2026-07-28 traffic); index_internals.ts — the ./internals.js surface the internal repo consumes (keep it minimal). index_internals_test_kit.ts — the separate ./internals/test-kit.js surface for tests/test_kit/**'s own self-reference imports only; apify-mcp-server-internal doesn't consume it, don't add anything here it does.
  • stdio.ts — CLI entry (used for Docker). Sentry must be imported first — keep that import order.
  • dev_server.ts — Express server for local dev / standby Actor mode. Its POST route serves both protocol eras: isStatelessRequest sends 2026-07-28 (per-request envelope) traffic to the stateless adapter, everything else to the stateful flow.
  • input.ts — input processing (processInput, used by stdio.ts and the HTTP URL-param parser in mcp/utils.ts).
  • apify_client.ts — the Apify API client wrapper; use it rather than calling the API directly. state.ts — TTL caches. const.ts, errors.ts, types.ts, telemetry.ts, instrument.ts, server_card.ts — shared spine.

Subdirectories

  • mcp/AGENTS.md — MCP protocol core (the published surface).
  • tools/AGENTS.md — MCP tool implementations.
  • payments/AGENTS.md — Skyfire / x402 payment providers.
  • resources/AGENTS.md — MCP resources + widget registry.
  • web/AGENTS.md — widget UI (separate build) + design system.
  • utils/ — broad helper grab-bag, no single concept (no child doc; grep it).
  • prompts/ — the prompt registry (index.ts) plus prompt_service.ts (createPromptService, throws protocol-neutral domain errors); no child doc.

Two-phase tool loading (mode-agnostic getActors() vs mode-dependent getToolsForServerMode()) is documented once in ../DEVELOPMENT.md — read it before touching tool loading.

After any change run the root Verification steps.

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.