What Can an MCP Server Do Before the Agent Calls It? — Luminity Digital
Dispatch · MCP Startup Authority · December 2026
OpenAI Architect Dispatches

What Can an MCP Server Do Before the Agent Calls It?

For a locally launched MCP server, assurance begins before the first tool call.

December 2026Tom M. GomezLuminity Digital8 Min Read

A Markdown formatter sounds like a low-risk tool. It receives text, adds a table of contents, reports simple statistics, or aligns a table. What authority would it need beyond the text it is meant to transform and a place to return the result?

That question exposes a boundary that tool governance can miss. An enterprise may carefully decide which MCP tools an agent can discover and call while giving the process behind those tools far more access than formatting requires.

For a locally launched MCP server, assurance begins before the first tool call.

The Process Starts Before the Tool Call

Knostic reported a static review of two exact npm package versions presented as Markdown toolkits: @ifasn/mmdd-doc-mcp@2.1.1 and @ifasn/ms-doc-mcp@2.1.1. The packages exposed ordinary-looking Markdown functions. Knostic found that each also invoked an undisclosed collection routine when the server started. No MCP tool call was required to trigger that code.[1]

The first package gathered process information and checked cloud-metadata paths. Knostic reported that it attempted to send part of the resulting report over plain HTTP to a hardcoded destination. The report could include secrets found in readable process command lines. Whether a secret would actually leave the host depended on what process data was readable, where that content landed within the truncated report, and whether delivery succeeded.[1]

The second package examined its own environment for variable names associated with keys, tokens, secrets, and credentials. Knostic found that it wrote the full matching values to standard error and attempted to store them in a file relative to the working directory. Knostic identified no external collection server in that version and established no path by which the publisher could retrieve the local output.[1]

These are deliberately bounded findings. Knostic reviewed the packages statically and did not install or run them. It reported no confirmed victims or successful delivery. Its analysis covers those two versions, not Markdown tools generally, npm packages generally, or MCP as a protocol. This Dispatch does not reproduce or execute either package.

The architectural lesson does not depend on overstating the incident. A process can act during initialization. If the assurance model begins with the agent’s first recorded tool call, it begins too late.

The Tool Boundary Is Not the Process Boundary

OpenAI’s Agents API documentation makes the relevant execution path explicit. An MCP connection over stdio runs as a process in the session’s environment. The executor starts the configured command, with its arguments and working directory, and the process initializes before its tools can be used.[2]

The same documentation separates tool access from startup authority. allowed_tools limits which tools the agent can discover and call. That is a useful control over the agent-to-tool surface. It does not state that unlisted tools are removed from the server package, that initialization code cannot run, or that the process loses access to its environment, filesystem, or network.[2]

Credentials illustrate the distinction. For stdio connections, OpenAI documents supplying named values through the environment and states that code running in the environment can read them. A formatter process that inherits a credential can attempt to read it before the agent has selected any formatting tool.[2]

The two controls answer different questions:

  • Tool policy: Which published operations may the agent discover and request?
  • Launch authority: What can the server process read, write, contact, or retain from the moment it starts?

A restrictive answer to the first question does not create a restrictive answer to the second. The process executes under the identity, environment, filesystem, network, and logging conditions supplied by its runtime. The enterprise must govern those conditions as part of the workflow.

This claim is scoped to a locally or environment-launched stdio process. It should not be generalized to every MCP deployment. A remote HTTP service has a different operating boundary, identity model, network path, and retention posture. Nor is the Knostic finding an OpenAI vulnerability. It is evidence that package behavior and process authority remain material when an MCP client launches local code.

Authority-boundary map showing an approved local stdio server artifact entering a constrained launch envelope before server initialization, tool publication, and a separate agent allowlist decision.
A tool allowlist constrains which exposed operations the agent may request. The server process has already crossed the launch boundary, where artifact identity, environment, filesystem reach, network policy, and output handling determine its effective authority.

Luminity architectural interpretation. OpenAI product behavior is cited narrowly; the launch-control composition is an enterprise recommendation, not a claim of provider enforcement.

Give the Formatter Only Formatting Authority

Return to the Markdown formatter. Its legitimate job is narrow: accept approved text, transform it, and return or write the intended result. The launch design should be equally narrow.

First, approve the artifact that will actually run. Review the package and its provenance, pin the exact version, preserve an integrity value, and make the configured command resolve to that approved artifact. A familiar package name or benign tool description is not artifact identity. Revalidation should occur when the package, transitive content, command, runtime, or launch configuration changes.

Second, start with a clean environment. Do not pass the process cloud credentials, API keys, repository tokens, or unrelated workflow secrets. If formatting does not require a credential, the approved credential set is empty. OpenAI’s documentation advises keeping secrets out of reusable agent definitions, plugin archives, and logs; for stdio, any value deliberately supplied through the environment remains readable by code in that environment.[2]

Third, constrain reach outside the model and outside the tool description. Give the process a dedicated working directory, only the input it is meant to transform, and only the output path it needs. Deny access to unrelated files and process data. Use a dedicated low-privilege identity. Do not assume that telling a server to “format only” changes what its operating-system identity can read.

Fourth, enforce the required network posture in a runtime that can actually provide it. A formatter should not need outbound network access. But this is not a control architects can merely declare. OpenAI currently documents that disabled and restricted network policies are not supported for OpenAI-hosted stdio MCP connections.[2] If denied egress is a requirement, that hosted path does not satisfy it today. The enterprise must select a self-hosted or otherwise controlled execution design in which network denial can be enforced and evidenced, or choose a different formatting mechanism. Self-hosting is not itself proof of isolation; the applicable operating-system, container, network, and gateway controls still have to be configured and tested.

Finally, govern output and retention. Standard error, process logs, temporary files, crash artifacts, caches, and the working directory can all become data stores. Retain only the formatting result and the minimum evidence required by policy. Restrict who can read operational output, define deletion behavior, and test failure paths. “No network transfer” does not mean “no disclosure” if secret material is written to a log or file that other actors can access.

These are enterprise design requirements, not a claim that one OpenAI setting enforces all of them. The chosen environment must be evaluated against each restriction before the workflow is approved.

Prove the Launch, Not Only the Call

An empty tool-call log establishes a narrow fact: no tool call was recorded in that log. It does not establish that the server never started, that initialization performed no work, that the process lacked sensitive authority, or that no output was written or transmitted.

A useful Audit Trail for a locally launched MCP server should connect three layers of evidence.

Artifact evidence identifies the approved package or executable, exact version, integrity value, provenance review, and the command that actually resolved at runtime.

Launch evidence records the process identity, runtime, arguments, working directory, supplied environment names, mounted or reachable files, enforced network policy, initialization result, and applicable policy version. Secret values should not be copied into the evidence record merely to prove that they were absent or controlled.

Outcome evidence accounts for standard output, standard error, created files, network decisions, retained artifacts, disposition, and any later MCP tool calls. Correlation should make the sequence reviewable: artifact approved, restrictions applied, process started, initialization completed or failed, tool catalog exposed, tool call permitted or denied, output retained or removed.

This record does not prove that the artifact was safe or that every hidden behavior was detected. It supports a more precise claim: the enterprise can identify what ran, what authority it was given, which restrictions were enforced, and what observable outputs followed.

Monitoring, enforcement, and assurance remain different jobs. A process log can reveal activity. A runtime control can block filesystem or network access. Assurance evaluates whether those controls and records are sufficient for the conclusion being claimed. None is replaced by the absence of an agent tool event.

Limits and Adoption Boundaries

Static review can identify important behavior, but it does not establish every runtime outcome. Dynamic analysis can add evidence, but only for the environments and paths tested. Package pinning and integrity checks establish identity, not benign intent. Sandboxing can reduce authority, but its value depends on the actual isolation boundary and configuration.

Tool allowlists remain valuable. They reduce the operations an agent can request and can prevent use of an exposed function that the workflow does not need. They simply govern a different boundary from process startup.

The appropriate control set also depends on the transport and hosting model. This Dispatch addresses a server process launched over stdio in an execution environment. Remote services, already-running local services, plugin packaging, and other MCP clients require their own analysis. Product capabilities may change, so architects should verify the current runtime before treating any proposed restriction as enforceable.

Durable Architectural Claim

For a locally launched MCP server, assurance begins at process startup. A tool allowlist constrains which exposed operations the agent may request; it does not, by itself, prove what authority the server process inherited or what the process did before the first tool call.

The enterprise should approve the artifact, constrain the launch, and preserve evidence of the process boundary. Govern the call—but govern what starts before it, too.

Practitioner conversation

If you are governing locally launched agent tools and need the process boundary to be defensible, the calendar is open.

Start the conversation
References

Evidence behind the argument

Tom M. Gomez, AI Transformation Architect and Managing Partner at Luminity Digital

About the Author

Tom M. Gomez

AI Transformation Architect
Managing Partner, Luminity Digital

Connect on LinkedIn

Tom M. Gomez is an AI Transformation Architect and Managing Partner leading Luminity Digital’s Applied AI Practice, including its Frontier Capabilities Group. He works at the intersection of business strategy, product management, and technology delivery, architecting applied and Agentic AI systems across multiple platforms. His focus spans security and governance, system reliability, context management, cloud infrastructure, and the full data and application lifecycle.

In that role, he designs systems an enterprise can defend—first to the customers it serves, then to the board, auditors, and risk committee accountable for that trust. By building governance into the architecture during design, he makes AI Assurance a structural property of the system rather than a review applied after deployment.

Tom is Principal Architect of Luminity Digital’s AI Collaboratory, where he works with research scientists on the architectural layers required to operationalize enterprise AI—not as separate products, but as a coordinated system designed for action under constraint. He is also the architect and program lead for the AI Talent Accelerator (AITA).

Tom brings more than 25 years of enterprise architecture and digital transformation experience across Fortune 500 organizations in financial services, healthcare, and manufacturing. His broader experience spans engineering, finance, private-client advisory, nonprofit leadership, scientific research, and academia, including NSF- and NIH-affiliated initiatives. He has served as a founder, practice lead, and CEO.

His work spans Decision Intelligence, Data Intelligence, Hyperscalers, and Agentic AI. He publishes systematic reviews of peer-reviewed research that surface the empirical evidence, then translates that evidence into governed architectures engineered for assurance and measurable business value.

The experience is the foundation. Applied AI is where it now performs. 20× Certified.