ai.smithery/FelixYifeiWang-felix-mcp-smithery

AI 与智能体

by felixyifeiwang

Streamline your workflow with Felix. Integrate it into your workspace and tailor its behavior to y…

什么是 ai.smithery/FelixYifeiWang-felix-mcp-smithery

Streamline your workflow with Felix. Integrate it into your workspace and tailor its behavior to y…

README

Felix MCP (Smithery)

A tiny Model Context Protocol server with a few useful tools, deployed on Smithery, tested in Claude Desktop, and indexed in NANDA.

Tools included

  • hello(name) – quick greeting
  • randomNumber(max?) – random integer (default 100)
  • weather(city) – current weather via wttr.in
  • summarize(text, maxSentences?, model?) – OpenAI-powered summary (requires OPENAI_API_KEY)

Public server page https://smithery.ai/server/@FelixYifeiWang/felix-mcp-smithery

MCP endpoint (streamable HTTP) https://server.smithery.ai/@FelixYifeiWang/felix-mcp-smithery/mcp (In Smithery/NANDA, auth is attached via query param api_key and optional profile, configured in the platform UI; do not hardcode secrets here.)


Demo

In Claude Desktop (recommended)

  1. Open Settings → Developer → mcpServers and add:

    json
    {
      "mcpServers": {
        "felix-mcp-smithery": {
          "command": "npx",
          "args": [
            "-y",
            "@smithery/cli@latest",
            "run",
            "@FelixYifeiWang/felix-mcp-smithery",
            "--key",
            "YOUR_SMITHERY_API_KEY",
            "--profile",
            "YOUR_PROFILE_ID"
          ]
        }
      }
    }
    
  2. Start a new chat and run:

    • “List tools from felix-mcp-smithery
    • “Call hello with { "name": "Felix" }
    • “Call summarize on this text (2 sentences): …”

Features

  • Streamable HTTP MCP – Express + MCP SDK’s StreamableHTTPServerTransport on /mcp (POST/GET/DELETE).
  • Session-aware – proper handling of Mcp-Session-Id (no close recursion).
  • OpenAI summarization – tidy summaries via chat completions (model default gpt-4o-mini).
  • Zero-friction hosting – packaged as a container and deployed on Smithery.

Install (local)

Requires Node 18+ (tested on Node 20).

bash
git clone https://github.com/FelixYifeiWang/felix-mcp-smithery
cd felix-mcp-smithery
npm install

Set env (only needed if you’ll call summarize locally):

bash
export OPENAI_API_KEY="sk-..."

Run:

bash
node index.js
# ✅ MCP Streamable HTTP server on 0.0.0.0:8081 (POST/GET/DELETE /mcp)

Local curl:

bash
curl -s -X POST "http://localhost:8081/mcp" \
  -H 'Content-Type: application/json' \
  -H 'Mcp-Protocol-Version: 2025-06-18' \
  --data '{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2025-06-18"}}'

Usage (tools)

hello

json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hello","arguments":{"name":"Felix"}}}

randomNumber

json
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"randomNumber","arguments":{"max":10}}}

weather

json
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"weather","arguments":{"city":"Boston"}}}

summarize (needs OPENAI_API_KEY set on the server)

json
{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"summarize","arguments":{"text":"(paste long text)","maxSentences":2}}}

How it works

  • Server core: McpServer from @modelcontextprotocol/sdk with tools registered in buildServer(). Transport: StreamableHTTPServerTransport on /mcp handling:

    • POST /mcp — JSON-RPC requests (and first-time initialize)
    • GET /mcp — server-to-client notifications (SSE)
    • DELETE /mcp — end session
  • CORS: Allows all origins; exposes Mcp-Session-Id header (good for hosted clients).

  • OpenAI summarize: Thin fetch wrapper around /v1/chat/completions with a short “crisp summarizer” system prompt.


Deployment (Smithery)

  1. GitHub repo with:

    • index.js (Express + MCP)

    • package.json (@modelcontextprotocol/sdk, express, cors, zod)

    • Dockerfile

    • smithery.yaml:

      yaml
      kind: server
      name: felix-mcp-smithery
      version: 1.0.0
      runtime: container
      
      startCommand:
        type: http
      
      transport: streamable-http
      port: 8081
      path: /mcp
      ssePath: /mcp
      health: /
      
  2. In Smithery:

    • Create server from the repo.
    • Add Environment Variables: OPENAI_API_KEY (optional for summarize).
    • Deploy → confirm logs show: ✅ MCP Streamable HTTP server on 0.0.0.0:8081 (POST/GET/DELETE /mcp)

NANDA Index

  • Go to join39.org → Context Agents → Add

    • Agent Name: Felix MCP (Smithery)
    • MCP Endpoint: https://server.smithery.ai/@FelixYifeiWang/felix-mcp-smithery/mcp?api_key=YOUR_KEY&profile=YOUR_PROFILE
    • Description: Streamable-HTTP MCP hosted on Smithery. Tools: hello, randomNumber, weather, summarize (OpenAI).
  • Test from NANDA: initializetools/list → call hello.


Project structure

code
.
├─ index.js            # Express + Streamable HTTP + tools
├─ package.json        # sdk/express/cors/zod
├─ Dockerfile          # container build for Smithery
└─ smithery.yaml       # Smithery project config

Assignment rubric mapping

  • Find/Build: Custom MCP server with 4 tools
  • Deploy: Hosted on Smithery (public server page linked)
  • Test in a host: Verified in Claude Desktop (screenshots/recording included)
  • NANDA Index: Added as a Context Agent (screenshot included)
  • Deliverables: Repo link + working endpoint + host screenshots

What worked

  • Streamable HTTP transport with session management is stable once the close-loop gotcha is avoided.
  • Smithery makes deployment + auth key distribution straightforward.
  • Claude Desktop connects cleanly via @smithery/cli run ….

AI Acknowledgement

Parts of this project (tool scaffolding, error fixes, and documentation polish) were produced with AI assistance. The final code, deployment, and testing steps were implemented and verified by me.

常见问题

ai.smithery/FelixYifeiWang-felix-mcp-smithery 是什么?

Streamline your workflow with Felix. Integrate it into your workspace and tailor its behavior to y…

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描165.9k

RAG架构师

by alirezarezvani

Universal
热门

聚焦生产级RAG系统设计与优化,覆盖文档切块、检索链路、索引构建、召回评估等关键环节,适合搭建可扩展、高准确率的知识库问答与检索增强应用。

面向RAG落地,把知识库、向量检索和生成链路系统串联起来,做架构设计时更清晰,也更少踩坑。

AI 与智能体
未扫描23.7k

多智能体架构

by alirezarezvani

Universal
热门

聚焦多智能体系统架构设计,梳理 Supervisor、Swarm、分层和 Pipeline 等模式,覆盖角色定义、通信协作与性能评估,适合规划稳健可扩展的 AI agent 编排方案。

帮你系统解决多智能体应用的架构设计与协同编排难题,适合构建复杂 AI 工作流,成熟度高、社区认可也很亮眼。

AI 与智能体
未扫描23.7k

相关 MCP Server

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
89.1k

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
89.1k

by deusdata

热门

持久化的代码库知识图谱,可跨会话保留上下文,在 session 重启或上下文压缩后仍能继续使用。

专治 AI 编程助手“会话失忆”,把代码库沉淀为持久知识图谱,重启或压缩上下文后也能无缝续上开发状态。

AI 与智能体
36.7k

评论