Netskope NPA MCP Server

by johnneerdael

Netskope NPA MCP 服务器

该 MCP 服务器为 Netskope 的网络私有访问 (NPA) API 提供了一个接口,允许您管理发布者、升级配置文件、访问策略和发布者指导。

安装选项

选项 1:NPX 安装(推荐)

npx @johnneerdael/netskope-npa

选项 2:手动安装

npm install @johnneerdael/netskope-npa

Claude/Cline 中的 MacOS/Linux 设置

{ "mcpServers": { "netskope-npa": { "command": "npx", "args": [ "-y", "@johnneerdael/netskope-npa", ] "env": { "NETSKOPE_API_TOKEN": "YOUR_API_KEY_HERE", "NETSKOPE_API_BASE": " https://your- netskope -instance.goskope.com " } } } }

Claude/Cline 中的 WSL 设置

  1. 如果尚未安装,请安装 WSL:
# Run in PowerShell as Administrator wsl --install
  1. 在 WSL 中安装 NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash source ~/.nvm/nvm.sh
  1. 使用 NVM 安装 Node.js:
nvm install v23.6.1 nvm use v23.6.1
  1. 在您的 Claude 项目中配置 MCP:
{ "mcpServers": { "netskope-npa": { "command": "wsl.exe", "args": [ "bash", "-c", "source ~/.nvm/nvm.sh && NETSKOPE_API_BASE=https://your-netskope-instance.goskope.com NETSKOPE_API_TOKEN=your-api-token $NVM_BIN/npx -y @johnneerdael/netskope-npa" ] } } }

注意:将your-wsl-usernameyour-windows-username替换为您的实际用户名。

了解 WSL 路径

  • WSL 路径: /home/your-wsl-username
  • WSL 中映射的 Windows 路径: /mnt/c/Users/your-windows-username

环境设置

  1. 创建.env文件:
NETSKOPE_API_BASE=https://your-netskope-instance.goskope.com NETSKOPE_API_TOKEN=your-api-token

用法

import { NetskopeNpaClient } from '@your-org/netskope-npa-mcp'; const client = new NetskopeNpaClient( process.env.NETSKOPE_API_BASE!, process.env.NETSKOPE_API_TOKEN! ); // List all publishers const publishers = await client.listPublishers({ fields: 'publisher_id,name,status' }); // Create a new publisher const newPublisher = await client.createPublisher({ name: 'npa_publisher_1', lbrokerconnect: false, publisher_upgrade_profiles_id: 1 });

发展

建筑

npm run build

测试

npm test

以开发模式运行

# Using NPX npx ts-node src/index.ts # Or using the built version npm run build && node dist/index.js

执照

麻省理工学院

故障排除

WSL 路径问题

如果遇到路径映射问题:

  1. 检查你的 WSL 安装: wsl -l -v
  2. 验证路径映射: wsl pwd
  3. 确保 NVM 来源正确: source ~/.nvm/nvm.sh

常见问题

  1. EACCES 错误:使用适当的权限运行
    sudo chown -R $USER:$USER ~/.npm
  2. 未找到路径:验证 WSL 路径
    ls /mnt/c/Users/your-windows-username/Scripts
  3. 节点版本不匹配:使用正确的 NVM 版本
    nvm use v23.6.1
-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

提供一个界面来管理发布者、升级配置文件、访问策略以及 Netskope 的网络私有访问 (NPA) API 的指导。

  1. 安装选项
    1. 选项 1:NPX 安装(推荐)
    2. 选项 2:手动安装
  2. Claude/Cline 中的 MacOS/Linux 设置
    1. Claude/Cline 中的 WSL 设置
      1. 了解 WSL 路径
      2. 环境设置
    2. 用法
      1. 发展
        1. 建筑
        2. 测试
        3. 以开发模式运行
      2. 执照
        1. 故障排除
          1. WSL 路径问题
          2. 常见问题

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          This server provides an interface with the Finnhub API, enabling users to obtain the latest market news, stock market data, basic financials, and recommendation trends for specific stocks.
          Last updated -
          Python
          • Apple
        • A
          security
          A
          license
          A
          quality
          Integrates Cline with Azure DevOps services, enabling access to work items, repositories, and pull requests through configurable MCP tools.
          Last updated -
          15
          11
          TypeScript
          MIT License
        • A
          security
          F
          license
          A
          quality
          Provides tools for managing Netskope infrastructure, policies, and steering configurations via the Model Context Protocol.
          Last updated -
          50
          0
          1
          TypeScript
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          Connects Claude to Portkey's API for managing AI configurations, workspaces, analytics, and user access, providing comprehensive control over API usage and settings.
          Last updated -
          9
          TypeScript
          MIT License

        View all related MCP servers

        ID: u010q8xb0f