Skip to content

Comments

Add test implementation of an "mcp" command#1484

Closed
jedisct1 wants to merge 1 commit intofastly:mainfrom
jedisct1:mcp
Closed

Add test implementation of an "mcp" command#1484
jedisct1 wants to merge 1 commit intofastly:mainfrom
jedisct1:mcp

Conversation

@jedisct1
Copy link

This introduces a new mcp command that allows the Fastly CLI tool to act as an MCP (Model Context Protocol) server.

Currently, it serves the Fastly API, but the design is intended to support additional MCP servers in the future, for example, to assist with Compute SDKs.


All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

User Impact

  • What is the user impact of this change?

User Impact:
This change enables users to run the Fastly CLI as an MCP server, allowing integration with tools and editors that support the MCP protocol. Initially, this provides access to the Fastly API via MCP, and the architecture is designed to support additional MCP server types in the future (e.g., for Compute SDKs). This opens up new automation and integration possibilities for users and partners.

Are there any considerations that need to be addressed for release?

No breaking changes are introduced. The new mcp command is additive and does not affect existing CLI functionality.
Note: When running in stdio mode, all server startup messages are now sent to stderr to avoid interfering with the MCP protocol.

This introduces a new "mcp" command that allows the fastly CLI
tool to act as an MCP server.

Currently, it serves the Fastly API, but the design is intended
to support additional MCP servers in the future—for example, to
assist with Compute SDKs.
@jedisct1 jedisct1 requested a review from a team as a code owner May 28, 2025 13:05
@jedisct1 jedisct1 requested a review from philippschulte May 28, 2025 13:05
@jedisct1 jedisct1 closed this May 28, 2025
@jedisct1 jedisct1 deleted the mcp branch May 28, 2025 13:33
@jedisct1 jedisct1 restored the mcp branch May 28, 2025 13:35
@jedisct1 jedisct1 deleted the mcp branch May 28, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant