Amazon VPC Lattice MCP Server

by rlymbur

Integrations

  • Provides access to the AWS Gateway API Controller for VPC Lattice repository on GitHub, allowing users to retrieve source information and prompts related to this project.

  • Enables access to Kubernetes Gateway API documentation and resources, providing source information and sample prompts for working with VPC Lattice in Kubernetes environments.

Amazon VPC Lattice MCP 服务器

提供访问和管理源信息的工具的模型上下文协议 (MCP) 服务器。

特征

该服务器提供五个主要工具:

  1. list_sources :列出所有可用源及其 URL
  2. get_source_prompts :获取特定源的示例提示
  3. list_prompts :列出所有可用的提示模板
  4. get_prompts :获取特定提示模板的详细信息
  5. vpc_lattice_cli :执行 AWS CLI VPC Lattice 命令来管理 VPC Lattice 资源

安装

  1. 克隆存储库:
git clone https://github.com/yourusername/amazon-vpc-lattice-mcp-server.git cd amazon-vpc-lattice-mcp-server
  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

配置

将服务器添加到您的 MCP 设置文件(位于~/Library/Application Support/Code/User/globalStorage/asbx.amzn-cline/settings/cline_mcp_settings.json ):

{ "mcpServers": { "amazon-vpc-lattice-mcp": { "command": "node", "args": ["/path/to/amazon-vpc-lattice-mcp-server/build/index.js"], "disabled": false, "autoApprove": [], "env": {} } } }

用法

配置完成后,您可以在对话中使用 MCP 工具:

列出来源

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "list_sources", arguments: {} })

获取源提示

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "get_source_prompts", arguments: { source_name: "AWS Documentation" } })

列表提示

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "list_prompts", arguments: {} })

获取提示详细信息

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "get_prompts", arguments: { prompt_name: "EKS Controller Setup" } })

VPC Lattice CLI

vpc_lattice_cli工具通过 AWS CLI 为 AWS VPC Lattice 操作提供编程接口。

特征
  • 支持所有主要的 VPC Lattice CLI 操作
  • 接受命令参数作为 JavaScript 对象
  • 自动将 camelCase 参数转换为 CLI 风格的 kebab-case
  • 处理布尔标志、数组和复数值
  • 支持 AWS 配置文件和区域配置
  • 返回已解析的 JSON 响应
可用命令
  • 服务网络:创建服务网络、删除服务网络、获取服务网络、列出服务网络、更新服务网络
  • 服务:创建服务、删除服务、获取服务、列出服务、更新服务
  • 监听器:创建监听器、删除监听器、获取监听器、列出监听器、更新监听器
  • 规则:创建规则、删除规则、获取规则、列出规则、更新规则
  • 目标组:创建目标组、删除目标组、获取目标组、列出目标组、更新目标组
  • 目标管理:注册目标、取消注册目标、列出目标
  • 资源标签:list-tags-for-resource、tag-resource、untag-resource
示例

列出服务网络:

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "vpc_lattice_cli", arguments: { command: "list-service-networks", region: "us-west-2" } })

建立服务网络:

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "vpc_lattice_cli", arguments: { command: "create-service-network", args: { name: "my-network", authType: "NONE" } } })

创建带有标签的服务:

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "vpc_lattice_cli", arguments: { command: "create-service", args: { name: "my-service", serviceNetworkIdentifier: "sn-12345", tags: [ { key: "Environment", value: "Production" } ] } } })

创建目标组:

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "vpc_lattice_cli", arguments: { command: "create-target-group", args: { name: "my-target-group", type: "INSTANCE", config: { port: 80, protocol: "HTTP", healthCheck: { enabled: true, protocol: "HTTP", path: "/health" } } } } })

注册目标:

use_mcp_tool({ server_name: "amazon-vpc-lattice-mcp", tool_name: "vpc_lattice_cli", arguments: { command: "register-targets", args: { targetGroupIdentifier: "tg-12345", targets: [ { id: "i-1234567890abcdef0", port: 80 } ] } } })

可用资源

该服务器包括以下来源:

  1. AWS 文档 (docs.aws.amazon.com)
  2. 适用于 VPC Lattice 的 AWS Gateway API 控制器的 GitHub Repo (aws/aws-application-networking-k8s)
  3. Kubernetes 网关 API(gateway-api.sigs.k8s.io)

发展

项目结构

  • src/index.ts :主服务器实现
  • package.json :项目配置和依赖项
  • tsconfig.json :TypeScript 配置
  • .gitignore :Git 忽略规则

可用提示

服务器包含以下提示模板:

  1. EKS 控制器设置
    • 为 Kubernetes 设置 AWS 应用程序网络控制器的指南
    • 参数:cluster_name、region、k8s_version
  2. EKS 控制器测试
    • 运行 AWS 应用程序网络控制器的单元和集成测试
    • 参数:test_type、test_suite、test_filter、verbosity
    • 支持使用 e2e-clean 的单元测试和集成测试
  3. EKS控制器问题解决方案
    • 通过适当的测试和 PR 创建为 GitHub 问题创建解决方案
    • 参数:issue_number、branch_name
    • 包括提交前检查和 PR 草案创建
  4. 代码审查
    • 审查代码更改并提供反馈
    • 参数:代码
  5. 错误分析
    • 分析错误消息并提出修复建议
    • 参数:错误,上下文
  6. 架构审查
    • 审查系统架构并提供建议
    • 参数:设计
  7. 文档生成器
    • 生成代码或 API 的文档
    • 参数:代码
  8. 安全审查
    • 审查代码或架构是否存在安全问题
    • 参数:目标

添加新来源

要添加新源,请修改src/index.ts中的sources数组:

const sources = [ { name: 'Your Source', url: 'https://your-source-url.com', prompts: [ 'Sample prompt 1 {placeholder}', 'Sample prompt 2 {placeholder}' ] } // ... existing sources ];

添加新提示

要添加新的提示模板,请修改src/index.ts中的prompts数组:

const prompts = [ { name: 'Your Prompt Template', description: 'Description of what the prompt does', template: 'Your prompt template with {parameter} placeholders', parameters: ['parameter'] } // ... existing prompts ];

脚本

  • npm run build :构建服务器
  • npm run watch :用于开发的监视模式

执照

[在此添加您的许可证信息]

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器提供用于访问和管理 AWS VPC Lattice 信息的工具,允许用户列出来源并检索与 AWS 网络文档相关的示例提示。

  1. 特征
    1. 安装
      1. 配置
        1. 用法
          1. 列出来源
          2. 获取源提示
          3. 列表提示
          4. 获取提示详细信息
          5. VPC Lattice CLI
        2. 可用资源
          1. 发展
            1. 项目结构
          2. 可用提示
            1. 添加新来源
            2. 添加新提示
            3. 脚本
          3. 执照

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server implementation that enables Claude to perform AWS operations on S3 and DynamoDB services through natural language commands.
              Last updated -
              23
              92
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that integrates with AWS CodePipeline, allowing users to manage pipelines through Windsurf and Cascade using natural language commands.
              Last updated -
              4
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server implementation that connects to AWS Cognito for authentication and user management, providing tools for user flows including sign-up, sign-in, and password management.
              Last updated -
              JavaScript
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.
              Last updated -
              TypeScript
              • Apple

            View all related MCP servers

            ID: wfxfkoygj3