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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vika-mcp

v0.6.0

Published

Vika MCP server over stdio.

Readme

vika-mcp

通过 stdio 访问 Vika 数据表的 TypeScript MCP 服务。 英文说明见 README.md

环境变量

  • VIKA_HOST: 必填,例如 https://vika.cn
  • VIKA_TOKEN: 必填,Vika API Token
  • VIKA_TIMEOUT_MS: 可选,默认 15000
  • VIKA_ALLOW_INSECURE_TLS: 可选,默认 false
  • VIKA_PROXY_URL: 可选,为所有 Vika 请求指定统一代理,例如 http://127.0.0.1:7890
  • VIKA_LOG_LEVEL: 可选,可选值为 debuginfowarnerror

脚本

  • npm run build
  • npm run check
  • npm test

用法

先从 npm 安装:

npm install -g vika-mcp

然后让你的 MCP 客户端指向 vika-mcp 可执行文件。

如果你不想全局安装,也可以直接运行:

npx -y vika-mcp

服务端只调用 /fusion/v1/fusion/v2/fusion/ai 下的公开 REST 接口,不会探测站点根路径,从而避免部分部署场景下的 SafeLine 根路径拦截问题。

MCPorter 配置示例

MCPorter 支持读取项目级配置 config/mcporter.json,也支持读取用户级配置 ~/.mcporter/mcporter.json

如果你希望 MCPorter 直接启动已发布的 npm 包,可以使用下面的配置:

{
  "mcpServers": {
    "vika-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vika-mcp"
      ],
      "env": {
        "VIKA_HOST": "https://vika.cn",
        "VIKA_TOKEN": "${VIKA_TOKEN}",
        "VIKA_PROXY_URL": "http://127.0.0.1:7890",
        "VIKA_TIMEOUT_MS": "15000",
        "VIKA_LOG_LEVEL": "info"
      }
    }
  }
}

说明:

  • https://vika.cn 是公开云版本的官方示例地址。
  • ${VIKA_TOKEN} 表示由 MCPorter 从当前 shell 环境读取 token。也可以直接写死,但环境变量更安全。
  • VIKA_PROXY_URL 是最简单的代理方式,会让全部 Vika 请求走同一个代理。
  • 如果你的私有部署使用自签名证书,可以在 env 中加入 "VIKA_ALLOW_INSECURE_TLS": "true"

如果你更希望直接使用本仓库源码而不是已发布 npm 包,请先构建,再让 MCPorter 指向编译产物:

{
  "mcpServers": {
    "vika-mcp": {
      "command": "node",
      "args": [
        "C:/path/to/vika-mcp/dist/index.js"
      ],
      "env": {
        "VIKA_HOST": "https://vika.cn",
        "VIKA_TOKEN": "${VIKA_TOKEN}"
      }
    }
  }
}

使用 MCPorter 的快速验证命令:

npx mcporter list vika --schema
npx mcporter call vika.get_spaces

开发模式

如果你是直接在这个仓库里开发,可以这样启动:

npm install
npm run build
node dist/index.js

Agent Skill

这个仓库还附带了一份 skill,位于 skills/vika-mcp/

当你希望 agent 按推荐的 vika-mcp 使用方式工作,而不是自己猜 HTTP 调用或工具顺序时,就应该配合这个 skill 使用。它和 MCP 包暴露的工具面保持一致,主要帮助 agent:

  • 通过官方搜索和详情接口定位空间站与节点
  • 在写记录前先读取字段信息
  • get_records + recordIds 做更窄的读取
  • 更稳妥地处理删除操作和组织管理接口

之后可以在提示词里显式触发,例如:

Use $vika-mcp to inspect the datasheet named "Leads" and list its fields.
Use $vika-mcp to search a datasheet node named "Leads" and then update its records.

这个 skill 只是对 MCP 的补充,不会替代 MCP 配置本身。agent 仍然需要先能访问 vika-mcp 服务器。

工具列表

  • 记录类:get_recordscreate_recordsupdate_recordsdelete_records
  • 字段类:get_fieldscreate_fieldsdelete_fields
  • 视图类:get_viewscreate_viewdelete_viewdelete_viewsupdate_viewcopy_view
  • 数据表读取:upload_attachments
  • 数据表写入:create_datasheetsimport_from_excel
  • 空间站与节点:get_spacesget_nodessearch_nodesget_node_detailscreate_embedlinksget_embedlinksdelete_embedlinks
  • 节点管理:create_nodeupdate_nodedelete_nodecopy_nodemove_noderecover_nodeget_node_showcase
  • 表单类:get_form_fieldssubmit_formcreate_form_share_linkget_form_associationupdate_form_share
  • 组织类:get_a_memberupdate_a_memberdelete_a_memberlist_the_team_memberslist_teamscreate_a_teamupdate_a_teamdelete_a_teamlist_units_under_the_rolelist_rolescreate_a_roleupdate_a_roledelete_a_role
  • AI 类:create_chat_completions

说明

  • MCP 工具名严格跟随官方 API reference 子页面 slug,并转换为 snake_case。
  • 删除操作要求显式传入 confirm_destructive: true
  • 搜索和删除的查询参数遵循公开文档示例,例如 permissions=0,1recordIds=recA,recB
  • 文件夹或成员接口返回 403 时,会按该资源无权限处理,不会把整个接口能力全局熔断。

许可证

本项目采用 GPL-3.0-only 许可证。详见 LICENSE