Logo Serac

Serac

Tổ chức
serac-labs

A ServiceNow MCP server, and the skill guides that teach an agent to use it. 400+ snow_* tools over stdio or streamable HTTP, loaded on demand so the catalog fits a context window, plus blast-radius impact analysis. 57 ServiceNow SKILL.md guides. Works with any MCP client; on npm as @serac-labs/servicenow-mcp.

Nhà phát hànhserac-labs
Kho mãserac
Ngôn ngữTypeScript
Bản fork
26
Sao
78
Công cụ có sẵn
0
Phương thức truyền tảistdio
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Serac cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    78 sao và 26 bản fork từ kho mã được liên kết.

Two packages, and nothing else:

PackageWhat it is
@serac-labs/servicenow-mcpAn MCP server for ServiceNow. 400+ snow_* tools over stdio or streamable HTTP, plus blast-radius impact analysis.
@serac-labs/skills57 ServiceNow skill guides. Plain markdown an agent loads into its prompt so it uses those tools like a practitioner.

The two are meant to be used together. The server gives a model the ability to act on a ServiceNow instance; the skills give it the judgement to do so without breaking one — which update set to be in, why a Business Rule needs ES5, what to check before renaming a field.

Both work with any MCP client. Neither requires the Serac product.

Quick start

bash
npm install -g @serac-labs/servicenow-mcp

Point your MCP client at the servicenow-mcp-stdio binary:

json
{
  "mcpServers": {
    "servicenow": {
      "command": "servicenow-mcp-stdio",
      "env": {
        "SNOW_INSTANCE": "https://dev12345.service-now.com",
        "SNOW_CLIENT_ID": "…",
        "SNOW_CLIENT_SECRET": "…"
      }
    }
  }
}

Credentials come from an OAuth application registry entry on your instance (System OAuth > Application Registry). A developer instance from developer.servicenow.com is enough to try everything here.

If nothing works — an auth error, or a response that will not parse — ask the server what is wrong before changing anything:

bash
servicenow-mcp-stdio --doctor

It names which credential source was used, whether the URL is usable, whether the instance is awake (a hibernating developer instance answers with an HTML login page, which makes every tool look broken), whether the OAuth exchange succeeds, and which roles the account holds. The model can ask for the same report by calling snow_diagnose_setup.

The catalog is far larger than a context window, so tools are deferred by default: tools/list returns two meta-tools and the model widens its own surface as it works.

tool_search({query: "incident"})  → the matching tools, now enabled
tool_execute({tool: "snow_query_incidents", args: {query: "priority=1"}})

Set SNOW_LAZY_TOOLS=false to register the whole catalog up front instead. Full options, library usage and the multi-tenancy rules are in the package README.

As a Claude Code plugin

The repository is also a plugin marketplace, so the server and all 70 skills arrive in one step:

/plugin marketplace add serac-labs/serac
/plugin install servicenow@serac

The server runs through npx, so nothing has to be installed first: export the same three variables as above and it is ready. The same entry is in .mcp.json at the repo root, which Claude Code reads for this project. Other clients each want it somewhere else: copy it into .cursor/mcp.json (Cursor), ~/.codeium/windsurf/mcp_config.json (Windsurf), or .vscode/mcp.json for VS Code, which names the same block servers rather than mcpServers.

Using the skills

A skill is a directory with a SKILL.md: YAML frontmatter naming the skill and the snow_* tools it expects, then prose. Nothing loads them automatically — a host decides which ones to put in front of the model. Copy the ones you want into your agent's skills directory, or read them from the package:

ts
import { skillsRoot } from "@serac-labs/skills/root"

They are worth reading on their own, even without an agent involved. Start with es5-compliance, update-set-workflow or blast-radius.

Working on it

Requires Bun 1.3.14 — pinned in the root package.json packageManager field, which is also what CI installs.

bash
bun install
bun typecheck          # tsgo across both packages
bun run test           # both suites
bun run lint           # oxlint

Tests do not run from the repo root directly — run them per package, or through turbo with bun run test:

bash
cd packages/servicenow-mcp && bun test
cd packages/skills && bun test

Adding a tool

Tools live in packages/servicenow-mcp/src/servicenow-mcp-unified/tools/<domain>/snow_<name>.ts, one file per tool, each exporting a toolDefinition and an executor. The registry is generated by walking that directory, so a new file in the right shape is a new tool — there is no central list to edit. Regenerate the published manifest afterwards:

bash
bun run --cwd packages/servicenow-mcp generate:tools-json

Adding a skill

Create packages/skills/<name>/SKILL.md with frontmatter, then regenerate the embedded map:

bash
bun run --cwd packages/skills generate

bun test in that package fails if the embedded map drifts from the tree, or if frontmatter names a tool the MCP server does not actually have. Both of those have shipped to users before.

Two files that are production, not build output

packages/servicenow-mcp/tools.json and packages/servicenow-mcp/sn-roles.manifest.json are committed generated files, and live services fetch them straight from main over raw.githubusercontent.com. They are published by being committed. Moving or renaming either one is a production change: the consumer has to be repointed and deployed first, and the old path removed in a separate commit afterwards. See the package README.

Releases

@serac-labs/servicenow-mcp publishes from .github/workflows/publish-mcp.yml — a manual workflow_dispatch, versioned from packages/servicenow-mcp/package.json and nothing else, with OIDC trusted publishing and signed provenance. Every PR that touches the package runs the same build, test and packaging gates without publishing, including one that copies the package out of the workspace entirely and proves it installs, builds and tests with no monorepo around it.

The MCP registry listing is a second, separate dispatch: .github/workflows/publish-mcp-registry.yml uploads the repo-root server.json once the npm version is live. server.json repeats that version and the package name, so a gate on every PR touching either file fails when the two disagree — bun run --cwd packages/servicenow-mcp check:registry-manifest.

@serac-labs/skills releases the same way, from .github/workflows/publish-skills.yml, with gates adapted to what that package actually ships: the tarball must contain every entrypoint and every skill directory, and every published subpath must load under node from a real npm install — skillsRoot() hands consumers a filesystem path, so an import that merely succeeds proves nothing.

Its npm trusted publisher does not exist yet, so no version has gone out. Creating it (bound to serac-labs/serac + publish-skills.yml) is a manual step on npmjs.com; see the workflow header.

What used to be here

This repository was a fork of opencode carrying a terminal AI agent, a TUI, a desktop app and a web console. Twenty-five packages went; the two above remain. The @serac-labs/core CLI those packages built is discontinued — it stays installable on npm at its final version, but there are no further releases and no security fixes for it.

The ServiceNow work was always the part worth keeping, and it was the part buried deepest. It is now the whole repository.

One artifact of that era is deliberately still here: the install script at the repo root. Every CLI already installed in the world fetches that exact URL when it self-upgrades, and serac.build/install redirects to it. Deleting the file would pipe a GitHub 404 page into those users' shells. It stays until it is replaced with something that tells them what happened — do not tidy it away.

Contributing

Read CONTRIBUTING.md first — it is short. Every PR links an issue, and the code style rules are in AGENTS.md.

License

Apache License 2.0. See NOTICE for third-party attributions: this code's history begins in the MIT-licensed opencode project.

Dùng MCP Serac với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Serac, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Serac làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Serac.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "serac": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Serac, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Serac.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Serac giúp tôi làm việc này không?
Serac
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Serac.

Câu hỏi thường gặp

Máy chủ MCP Serac dùng để làm gì?

Serac là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Serac với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Serac với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Serac với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Serac, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Serac với TypingMind?

Serac hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Serac cung cấp những công cụ nào trong TypingMind?

Serac cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Serac không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Serac yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇