compute-mcp-server-sample

A sample code to run a remote mcp server on Fastly Compute

GitHub Stars

0

User Rating

Not Rated

Forks

0

Issues

0

Views

1

Favorites

0

README
Compute MCP Server sample

A remote MCP server running on Fastly Compute, a WebAssembly-based serverless edge platform, enabling safer execution of code both locally and remotely.

Usage

Below are steps to build and deploy a Streamable HTTP endpoint that doesn't include legacy SSE endpoints.

$ git clone https://github.com/fastly/compute-mcp-server-sample.git.git fastly-compute-mcp-server
$ cd fastly-compute-mcp-server
$ vi main.go # Replace __PUT_YOUR_FASTLY_API_TOKEN__ with your own TOKEN
$ fastly compute publish 
...
✓ Activating service (version 1)

Manage this service at:
	https://manage.fastly.com/configure/services/mMnYw4qeGq81xga89Mq8O0

View this service at:
	https://highly-proper-orange.edgecompute.app

To add support for legacy clients with SSE, please refer to our blog post for detailed instructions. Please note that Fanout's specification limits message size to about 64KB. Therefore, when supporting legacy SSE, make sure the result messages from MCP tool calls don't become too large.

Security issues

Please see our SECURITY.md for guidance on reporting security-related issues.

Author Information
Fastly

Powering the best of the internet

341

Followers

262

Repositories

0

Gists

1

Total Contributions

Top Contributors

Threads