Nife

com.nifetency由 nifetency.com 發布官方發布者v1.2.0更新於 Nov 7, 2026

Manage Nife.io cloud apps, sites, secrets and Git integrations from MCP clients.

已驗證Streamable HTTP可網頁執行雲端與基礎設施開發者工具

概覽

AI 產生的概覽

將助理接入 Nife.io 的 GraphQL API,用來檢視、建立與管理雲端應用程式、網站、部署、密鑰與 Git 整合。

可以做什麼
  • 列出並檢視應用程式、網站、部署等 Nife.io 資源
  • 透過 GraphQL mutation 建立、更新與刪除資源
  • 執行自訂 GraphQL 查詢並讀取 schema 結構
  • 依探索到的 schema 動態產生 MCP 工具
適用情境
適合在 Nife.io 上代管應用程式或網站、希望助理直接查看部署狀態、建立或修改應用程式,或不必離開對話就能對帳號執行臨時 GraphQL 查詢的情境。
執行需求
需要 Nife.io 帳號與存取權杖(可透過 nifectl 命令列取得),並以 NIFE_ACCESS_TOKEN 環境變數提供;需能連線至 Nife.io 的 GraphQL API。遠端代管連接器以 OAuth 存取;本機執行依安裝方式需要 Python 或 Node.js。
安裝前請注意
此權杖可存取你的 Nife.io 帳號,伺服器還能執行建立、更新、刪除應用程式、網站與密鑰的 mutation,助理所做的變更會實際生效。自訂查詢執行與依 schema 產生的工具會擴大助理可操作的範圍。請將存取權杖視為機密,並在核准前確認刪除類操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nife,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.nifetency%2Fnife-mcp-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "nife": {
      "type": "http",
      "url": "https://mcp.on.nifetency.com/mcp"
    }
  }
}

README

Nife.io MCP Server

[Python] [License: MIT] [Downloads] [Code style: black]

A Model Context Protocol (MCP) server that interfaces with the Nife.io GraphQL API

Installation • Quick Start • Documentation • Contributing


Overview

Nife MCP Server provides a standardized interface to interact with Nife.io's GraphQL API through the Model Context Protocol, enabling seamless integration with Claude Desktop and other MCP-compatible applications.

Key Features

  • Intelligent Schema Discovery - Automatically discovers and adapts to the GraphQL schema
  • Dynamic Tool Generation - Creates MCP tools on-the-fly from schema
  • Zero Configuration - Works out of the box with minimal setup
  • Secure Authentication - Bearer token support with flexible configuration
  • Multiple Install Methods - PyPI, NPM, or GitHub
  • Cross-Platform - Works on macOS, Linux, and Windows
  • Production Ready - Comprehensive error handling and logging

Installation

Option 1: PyPI (Recommended for Python users)

bash
pip install nife-mcp-server

Option 2: NPM (Best for Claude Desktop)

bash
npx @nifelabs/mcp-server@latest

Option 3: From Source

bash
git clone https://github.com/nifetency/nife-mcp-servercd nife-mcp-serverpip install -r requirements.txt

Quick Start

1. Get Your Access Token

bash
nifectl auth loginnifectl auth token

2. Configure Claude Desktop

You can use the Nife MCP Server in three ways depending on your setup.


1. Recommended: Using NPX (No Installation Required)

This is the easiest way to get started.

json
{  "mcpServers": {    "nife": {      "command": "npx",      "args": ["--yes", "@nifelabs/mcp-server@latest"],      "env": {        "NIFE_ACCESS_TOKEN": "your_token_here",        "PYTHON": "PYTHON_PATH"
      }    }  }}

2. Using Python (Installed via pip)

If you installed the package via pip:

bash
pip install nife-mcp-server

Use this configuration:

json
{  "mcpServers": {    "nife": {      "command": "python",      "args": ["-m", "nife_mcp_server"],      "env": {        "NIFE_ACCESS_TOKEN": "your_token_here"      }    }  }}

3. Local Development (Source Code)

If you're running from source:

json
{  "mcpServers": {    "nife": {      "command": "python",      "args": ["-m", "nife_mcp_server.intelligent_main"],      "env": {        "PYTHONPATH": "C:\\path\\to\\nife-mcp-server\\src",        "NIFE_ACCESS_TOKEN": "your_token_here"      }    }  }}

Replace the PYTHONPATH with your local project path.


Environment Variables

Variable Description


NIFE_ACCESS_TOKEN Your API access token from Nife


3. Restart Claude Desktop

Your Nife.io integration is now active! 🎉

📚 Documentation

Usage

Starting the Server

bash
# If installed via pipnife-mcp-server
# If running from sourcepython -m nife_mcp_server.intelligent_main

The server speaks MCP over stdin/stdout, so it is normally launched by your MCP client (e.g. Claude Desktop) rather than run by hand. It does not listen on a network port.

To run the hosted HTTP connector instead, install the http extra (pip install "nife-mcp-server[http]") and run nife-mcp-http. It listens on PORT (default 8000); see HOSTED.md.

Environment Variables

  • NIFE_ACCESS_TOKEN - Your Nife.io access token

The GraphQL endpoint is fixed to https://api.nife.io/graphql. The hosted connector has its own settings, listed in HOSTED.md.

Example Usage with Claude

Once configured, you can ask Claude:

"List all my applications in Nife.io""Show me the status of my deployments""Create a new application called 'my-app'"

Architecture

┌─────────────────┐│  Claude Desktop │└────────┬────────┘         │ MCP Protocol┌────────▼────────┐│  Nife MCP Server│└────────┬────────┘         │ GraphQL┌────────▼────────┐│   Nife.io API   │└─────────────────┘

Core Components

  • Schema Manager - Intelligent GraphQL schema introspection
  • Tool Generator - Dynamic MCP tool creation
  • Query Builder - Smart query construction
  • Authentication - Secure token management

API Endpoints

MCP Endpoints

EndpointMethodDescription
/api/mcp/contextGETRetrieve model context
/api/mcp/contextPOSTUpdate model context
/api/mcp/schemaGETGet GraphQL schema
/api/mcp/queryPOSTExecute custom queries
/api/mcp/healthGETHealth check

GraphQL Integration

The server provides full access to Nife.io's GraphQL API:

  • Query all resources (apps, deployments, etc.)
  • Execute mutations (create, update, delete)
  • Custom query execution
  • Schema introspection

Development

Setup Development Environment

bash
# Clone the repositorygit clone https://github.com/nifetency/nife-mcp-servercd nife-mcp-server
# Create virtual environmentpython -m venv .venvsource .venv/bin/activate  # On Windows: .venv\Scripts\activate
# Install dependenciespip install -r requirements.txtpip install -e .  # Install in editable mode


# Run the servercd srcpython -m nife_mcp_server.intelligent_main

Project Structure

nife-mcp-server/├── src/│   └── nife_mcp_server/│       ├── intelligent_main.py  # Main server logic│       ├── schema_manager.py    # GraphQL schema handling│       ├── http_app.py          # Hosted (Streamable HTTP) connector│       ├── http_auth.py         # Auth for the hosted connector│       ├── oauth.py             # OAuth support│       ├── site_tools.py        # Additional site tools│       └── routes/│           └── mcp.py          # MCP route handlers├── tests/                      # Test suite├── Dockerfile                  # Container image for the hosted server└── bin/                        # Executable scripts

Running Tests

bash
pytestpytest --cov=nife_mcp_server  # With coverage

Contributing

We love contributions! Please see our Contributing Guide for details.

Ways to Contribute

  • Report bugs
  • Suggest features
  • Improve documentation
  • Submit pull requests

Development Process

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

Stats

[GitHub stars] [GitHub forks] [GitHub issues] [GitHub pull requests]

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support

Roadmap

  • WebSocket support for real-time updates
  • GraphQL subscriptions
  • Enhanced caching layer
  • Query batching
  • Metrics and monitoring
  • Docker Compose examples
  • Kubernetes manifests

Star History

If you find this project useful, please consider giving it a star!

[Star History Chart]


Made by the Nife.io team

Website • Documentation • Blog • MCP Open Source

來源:README.md,提交 1f473b9

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.2.0最新Nov 7, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分