Skip to content

chore: Add-mcpc for server probing#614

Merged
jirispilka merged 7 commits intomasterfrom
feat/add-mcpc-for-server-probing
Apr 10, 2026
Merged

chore: Add-mcpc for server probing#614
jirispilka merged 7 commits intomasterfrom
feat/add-mcpc-for-server-probing

Conversation

@jirispilka
Copy link
Copy Markdown
Collaborator

@jirispilka jirispilka commented Mar 26, 2026

What

Adds mcpc (@apify/mcpc) as the standard tool for live end-to-end probing of the local MCP server during development and feature implementation.

Changes:

  • .mcp.json — adds stdio (spawns dist/stdio.js) and dev (connects to localhost:3001) server entries
  • CLAUDE.md — agent workflow: build → connect/restart → probe to verify spec compliance
  • DEVELOPMENT.md — human setup, testing layer overview, mcpc examples, key behaviors to verify
  • .claude/skills/mcpc/SKILL.md — repo-specific skill loaded when probing is needed

Why mcpc over direct Claude connection

Claude Code can connect to an MCP server via .mcp.json locally, but remote Claude sessions (claude.ai, CI, cloud agents) cannot reach a locally running server. mcpc is a CLI tool the agent controls via shell commands — it works identically in local and remote sessions. For local sessions the classic direct MCP connection (mcp__apify-dev__* tools) still works as an alternative.

When to use

Not just after code changes — mcpc is the primary way to verify that a finished feature actually matches its spec end-to-end, before writing formal integration tests or opening a PR.

@github-actions github-actions Bot added the t-ai Issues owned by the AI team. label Mar 26, 2026
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — straightforward dev tooling addition with no production code changes.

Extended reasoning...

Overview

This PR adds @apify/mcpc as a dev dependency and wires it into the development workflow. Changes touch: .mcp.json (two new local server entries), CLAUDE.md (agent instructions for mcpc probing), DEVELOPMENT.md (refactored to be more concise, with mcpc workflow docs), a new .claude/skills/mcpc/SKILL.md skill file, and the corresponding package.json/package-lock.json updates. No production source code is touched.

Security risks

Minimal. The .mcp.json additions use ${APIFY_TOKEN} env-var expansion (consistent with existing entries) — no credentials are hardcoded. The @apify/mcpc package is dev-only and will not be included in the published NPM package or deployed server. The Authorization: Bearer ${APIFY_TOKEN} header on the dev HTTP entry is standard and correct. One minor note: the dev entry lacks an explicit "type": "http" field unlike the storybook and figma entries, but this is a local dev config and Claude Code likely infers the type from the url field.

Level of scrutiny

Low. These are purely developer experience improvements — a CLI tool for probing the local server during development, configuration for it, and updated docs. No logic, no auth paths, no data handling, no production-facing code changed.

Other factors

No bugs were reported by the automated system. The transitive dependency chain via viem (a blockchain library) is an unexpected choice in an MCP CLI tool, but since it is dev-only it has no impact on end-users or the published package. @apify/mcpc requires Node ≥ 20, but since it is a devDependency this does not conflict with the runtime minimum of Node ≥ 18 documented in DEVELOPMENT.md.

@jirispilka jirispilka marked this pull request as draft March 26, 2026 22:25
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Mar 27, 2026
jirispilka and others added 6 commits April 10, 2026 09:57
…ge details

# Conflicts:
#	.claude/skills/feature-spec/SKILL.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ctor discovery workflow

- Add key principles section: prefer mcpc+jq pipelines, keep commands short, end-to-end focus
- Add @stdio-full session to .mcp.json for testing with full tool set
- Add "Testing different use cases" section showing search-actors + fetch-actor-details pattern
- Clarify that server args come from .mcp.json and cannot be passed inline
- Simplify jq examples for brevity

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jirispilka jirispilka force-pushed the feat/add-mcpc-for-server-probing branch from 059f0cc to fbf8bad Compare April 10, 2026 08:12
@jirispilka jirispilka marked this pull request as ready for review April 10, 2026 08:13
Comment thread .mcp.json
Comment thread DEVELOPMENT.md
Comment thread .claude/skills/feature-spec/SKILL.md Outdated
…ting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jirispilka jirispilka changed the title feat: Add-mcpc for server probing chore: Add-mcpc for server probing Apr 10, 2026
@jirispilka jirispilka merged commit c354c8c into master Apr 10, 2026
12 checks passed
@jirispilka jirispilka deleted the feat/add-mcpc-for-server-probing branch April 10, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants