npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

test-fastmcp

v1.0.9

Published

A simple FastMCP tool that outputs 'Test FastMCP!'

Readme

Test FastMCP

这是一个基于 FastMCP 框架构建的简单工具,它没有输入参数,输出文本 "Test FastMCP!"。

安装

确保你已经安装了所有依赖:

npm install

使用方法

要运行此工具,请执行:

npm start

或者直接运行:

node index.js

该工具将在HTTP模式下运行,监听地址为 0.0.0.0:3000,并提供一个名为 testFastMCP 的工具,当调用时会返回文本 "Test FastMCP!"。

测试工具

由于这是基于 MCP 协议的工具,你可以使用任何兼容的 MCP 客户端进行测试,或者使用官方的 inspector 工具:

npx @modelcontextprotocol/inspector node index.js

在其他智能体应用中引用

该项目包含一个 mcp-config.json 配置文件,可用于在其他支持 MCP 协议的智能体应用中引用此工具。

配置文件格式如下:

{
  "mcpServers": {
    "testFastMCP": {
      "transport": "http",
      "url": "http://localhost:3000"
    }
  }
}

发布到 npm

要将此包发布到 npm,请按照以下步骤操作:

  1. 确保你已经有一个 npm 账户并在本地登录:

    npm login
  2. 更新 package.json 中的版本号

  3. 运行发布命令:

    npm publish

故障排除

如果遇到 context deadline exceeded 错误,请尝试以下解决方案:

  1. 确保在 mcp-config.json 中正确配置了HTTP传输:

    {
      "mcpServers": {
        "testFastMCP": {
          "transport": "http",
          "url": "http://localhost:3000"
        }
      }
    }
  2. 确保服务器正在运行并且可以从客户端访问

  3. 如果在 Windows 上遇到 PowerShell 执行策略问题,可以使用 CMD 或者调整执行策略:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser