|
| 1 | +# Unofficial MCP Server for Scaleway Functions |
| 2 | + |
| 3 | +This is an unofficial implementation of a Model Context Protocol (MCP) server to manage and deploy [Scaleway Functions](https://www.scaleway.com/en/functions/) using the [Model Context Protocol (MCP)](https://modelcontextprotocol.org/) standard. |
| 4 | + |
| 5 | +> [!CAUTION] |
| 6 | +> This project is unofficial and not affiliated with or endorsed by Scaleway. |
| 7 | +> Some small safety measures are in place to prevent the LLM from doing destructive actions, |
| 8 | +> but they're not foolproof. |
| 9 | +> Use at your own risk. |
| 10 | +
|
| 11 | +## Getting Started |
| 12 | + |
| 13 | +Run the MCP server: |
| 14 | + |
| 15 | +```bash |
| 16 | +go run ./cmd/mcp |
| 17 | +``` |
| 18 | + |
| 19 | +By default, the MCP server runs with the SSE transport on `http://localhost:8080`, but you can also change it to use Standard I/O (stdio) transport via the `--transport stdio` flag. |
| 20 | + |
| 21 | +Configure your IDE to use the MCP server. |
| 22 | + |
| 23 | +Example with VSCode and GitHub Copilot: |
| 24 | + |
| 25 | +```jsonc |
| 26 | +// .vscode/mcp.json |
| 27 | +{ |
| 28 | + "servers": { |
| 29 | + "scaleway": { |
| 30 | + "url": "http://localhost:8080", |
| 31 | + "type": "http", |
| 32 | + } |
| 33 | + }, |
| 34 | + "inputs": [] |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +That's it 🎉! Have fun vibecoding and vibedevopsing as you please. |
| 39 | + |
| 40 | +## Configuration |
| 41 | + |
| 42 | +You can use the standard [Scaleway environment variables](https://www.scaleway.com/en/docs/scaleway-cli/reference-content/environment-variables/) to configure the MCP server. |
| 43 | + |
| 44 | +For instance, you can set a region to work in via the `SCW_DEFAULT_REGION` environment variable. |
| 45 | + |
| 46 | +```bash |
| 47 | +SCW_DEFAULT_REGION=nl-ams go run ./cmd/mcp |
| 48 | +``` |
| 49 | + |
| 50 | +## Available Tools |
| 51 | + |
| 52 | +| **Tool** | **Description** | |
| 53 | +| -------------------------------------- | -------------------------------------------------------------------------------- | |
| 54 | +| `create_and_deploy_function_namespace` | Create and deploy a new function namespace. | |
| 55 | +| `list_function_namespaces` | List all function namespaces. | |
| 56 | +| `delete_function_namespace` | Delete a function namespace. | |
| 57 | +| `list_functions` | List all functions in a namespace. | |
| 58 | +| `list_function_runtimes` | List all available function runtimes. | |
| 59 | +| `create_and_deploy_function` | Create and deploy a new function. | |
| 60 | +| `update_function` | Update the code or the configuration of an existing function. | |
| 61 | +| `delete_function` | Delete a function. | |
| 62 | +| `download_function` | Download the code of a function. This is useful to work on an existing function. | |
0 commit comments