MCP Character Counter

Integrations

  • Enables GitHub Copilot to analyze text composition with character counting functionality through Copilot Chat commands

MCP 字符计数器

轻量级模型上下文协议 (MCP) 服务器,为文本提供详细的字符分析。此工具计算总字符数、不带空格的字符、字母、数字和符号。

特征

  • 计算文本中的字符总数
  • 统计字符数(不包括空格)
  • 统计字母数量(az,AZ)
  • 计数数字(0-9)
  • 计数符号(非字母数字字符)
  • 角色类型的详细分类

安装

先决条件

设置

  1. 克隆存储库:
    git clone https://github.com/webreactiva-devs/mcp-character-counter.git cd mcp-character-counter
  2. 安装依赖项:
    npm install

与 Claude Desktop 一起使用

  1. 打开您的 Claude Desktop 配置:macOS 系统
    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    窗户
    code %APPDATA%\Claude\claude_desktop_config.json
  2. 将字符计数器添加到您的 MCP 服务器:
    { "mcpServers": { "character-counter": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js" ] } } }
    /ABSOLUTE/PATH/TO/替换为系统上的当前路径。
  3. 重新启动 Claude Desktop 以加载新的 MCP 服务器。
  4. 在输入框中查找锤子图标,它表示可用的 MCP 工具。
  5. 要求 Claude 分析文本字符数,例如:
    • “统计本段字符数”
    • “‘123 Main St, Apt 45B’这段文字中有多少个数字?”
    • “分析我的电子邮件地址的字符组成”

与 GitHub Copilot 一起使用

要将此 MCP 服务器与 GitHub Copilot 一起使用:

  1. 确保您的 VS Code 或其他兼容 IDE 中安装了 GitHub Copilot。
  2. 打开 VS Code 设置并搜索“Copilot MCP”。
  3. 添加新的 MCP 服务器配置:
    "github.copilot.advanced": { "mcp.servers": [ { "id": "character-counter", "name": "Character Counter", "transport": "stdio", "command": "node", "args": ["/path/to/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"] } ] }
  4. 重新启动 VS Code。
  5. 您现在可以使用字符计数器和 Copilot Chat 命令,例如:
    • /mcp count-characters-in-text This is the text I want to analyze

发展

要修改或扩展此 MCP 服务器:

  1. character-counter.js进行修改
  2. 在 MCP 客户端中重新启动服务器

工作原理

该 MCP 服务器实现了一个名为count-characters-in-text的单一工具,它接受文本输入并返回字符组成的详细分析。服务器使用模型上下文协议向兼容的 AI 助手公开此功能。

执照

麻省理工学院

贡献

欢迎投稿!请随时提交拉取请求。


MCP 字符计数器

轻量级模型上下文协议 (MCP) 服务器,提供文本中的详细字符分析。此工具计算总字符数、不带空格的字符、字母、数字和符号。

特征

  • 计算文本中的字符总数
  • 统计字符数(不包括空格)
  • 信件计数器(az,AZ)
  • 计数数字(0-9)
  • 计数符号(非字母数字字符)
  • 角色类型的详细分类

设施

先决条件

配置

  1. 克隆存储库:
    git clone https://github.com/webreactiva-devs/mcp-character-counter.git cd mcp-character-counter
  2. 安装依赖项:
    npm install

与 Claude Desktop 一起使用

  1. 打开Claude桌面设置:macOS 系统
    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    窗户
    code %APPDATA%\Claude\claude_desktop_config.json
  2. 将字符计数器添加到您的 MCP 服务器:
    { "mcpServers": { "character-counter": { "command": "node", "args": [ "/RUTA/ABSOLUTA/A/webreactiva-devs/mcp-character-counter/mcp/character-counter.js" ] } } }
    /RUTA/ABSOLUTA/A/替换为系统上的当前路径。
  3. 重新启动 Claude Desktop 以加载新的 MCP 服务器。
  4. 在输入框中查找锤子图标,它表示可用的 MCP 工具。
  5. 要求 Claude 分析文本中的字符数,例如:
    • “统计本段字符数”
    • “‘123 Calle Principal, Apto 45B’这段文字中有多少个数字?”
    • “分析我的电子邮件地址的字符集”

与 GitHub Copilot 一起使用

要将此 MCP 服务器与 GitHub Copilot 一起使用:

  1. 确保您已在 VS Code 或其他受支持的 IDE 中安装了 GitHub Copilot。
  2. 打开 VS Code 设置并搜索“Copilot MCP”。
  3. 添加新的 MCP 服务器配置:
    "github.copilot.advanced": { "mcp.servers": [ { "id": "character-counter", "name": "Character Counter", "transport": "stdio", "command": "node", "args": ["/ruta/a/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"] } ] }
  4. 重新启动 VS Code。
  5. 您现在可以使用字符计数器和 Copilot Chat 命令,例如:
    • /mcp count-characters-in-text Este es el texto que quiero analizar

发展

要修改或扩展此 MCP 服务器:

  1. character-counter.js进行修改
  2. 在 MCP 客户端上重新启动服务器

工作原理

该 MCP 服务器实现了一个名为count-characters-in-text的单一工具,它接受文本作为输入并返回字符组成的详细分析。服务器使用模型上下文协议向兼容的 AI 助手公开此功能。

执照

麻省理工学院

贡献

欢迎投稿!请随时提交拉取请求。

版权页

由🧡为 webreactiva.com 的 Malandriner 社区创建

You must be authenticated.

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

轻量级服务器,为 Claude Desktop 和 GitHub Copilot 等 AI 助手提供详细的文本分析,计算字符总数、不带空格的字符、字母、数字和符号。

  1. Features
    1. Installation
      1. Prerequisites
      2. Setup
    2. Usage with Claude Desktop
      1. Usage with GitHub Copilot
        1. Development
          1. How It Works
            1. License
              1. Contributing
                1. Contador de Caracteres MCP
                  1. Características
                  2. Instalación
                  3. Uso con Claude Desktop
                  4. Uso con GitHub Copilot
                  5. Desarrollo
                  6. Cómo funciona
                  7. Licencia
                  8. Contribuir
                2. Colofón

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.
                    Last updated -
                    3
                    216
                    28
                    TypeScript
                    The Unlicense
                    • Apple
                    • Linux
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A modular server implementation for Claude AI assistants with integrated tools, enabling Claude to perform actions and access external resources like file systems, web searches, browser automation, financial data, and document generation.
                    Last updated -
                    45
                    Python
                    MIT License
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A server that allows AI assistants to search for research papers, read their content, and access related code repositories through the PapersWithCode API.
                    Last updated -
                    4
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.
                    Last updated -
                    2
                    Python
                    GPL 3.0
                    • Linux
                    • Apple

                  View all related MCP servers

                  ID: rvpo3ibg1z