Skip to main content
Glama

MCP-Serve 多语言翻译服务

by oofengoo

MCP-Serve 多语言翻译服务

项目介绍

MCP(Model Context Protocol)服务是一种用于扩展 AI 模型能力的协议实现,允许 AI 模型与外部服务进行交互,从而增强其功能。本项目是一个基于 MCP 协议的自定义服务,专门用于处理多语言翻译和资源管理。

功能特点

本项目提供两个主要功能:

1. 多语言翻译 (translationI18n)

  • 自动识别并提取文本中被 ## 包裹的内容(如 ##创建人##
  • 将提取的内容发送到指定的 API 进行多语言资源注册
  • 支持自动生成资源别名(ResourceAlias)

2. 多语言资源复制 (copyI18n)

  • 从 API 下载最新的多语言资源文件
  • 自动将资源文件复制到项目的语言目录中(src/lang/source/

在 VSCode 中使用

1. 构建项目

首先,克隆项目并安装依赖:

git clone https://github.com/oofengoo/mcp-serve-learn cd mcp-serve npm install

然后构建项目:

npm run build

2. 配置 VSCode

mcp-servers.json文件中的配置复制到 VSCode 设置中:

  1. 打开 VSCode 设置(文件 > 首选项 > 设置)
  2. 点击"在 settings.json 中编辑"
  3. 将以下内容添加到 settings.json 中:
{ "mcp": { "servers": { "mcp-server": { "command": "node", "args": [ "D:\\Users\\Administrator\\Documents\\mcp-serve\\dist\\index.js" ], "env": { "Token": "", "URL": "", "PORT": "" } } } } }

环境变量说明

  • Token: API 认证令牌(Cookie 值)
  • URL: API 服务器地址
  • PORT: 服务端口

开发说明

本项目使用 TypeScript 开发,主要文件结构:

  • src/index.ts: MCP 服务器实现,包含工具定义
  • src/api.ts: API 接口封装
  • src/request.ts: HTTP 请求工具
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

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

A custom MCP protocol service that enhances AI models by providing multilingual translation capabilities and resource management, allowing for automatic text extraction and translation through external APIs.

  1. 项目介绍
    1. 功能特点
      1. 1. 多语言翻译 (translationI18n)
      2. 2. 多语言资源复制 (copyI18n)
    2. 在 VSCode 中使用
      1. 1. 构建项目
      2. 2. 配置 VSCode
    3. 环境变量说明
      1. 开发说明

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          Implements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.
          Last updated -
          123
          Python
          • Apple
          • Linux
        • A
          security
          F
          license
          A
          quality
          An all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.
          Last updated -
          2
          Python
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          An MCP (Multi-Agent Conversation Protocol) Server that enables AI agents to interact with Google's Cloud Translation API for translating text between languages.
          Last updated -
          Python
        • -
          security
          A
          license
          -
          quality
          Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
          Last updated -
          27
          2
          TypeScript
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/oofengoo/mcp-serve-learn'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server