Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

ServiceNow Cowork Automation API

БесплатноНе проверен

MCP-compatible backend that automates ServiceNow incident handling via Microsoft 365 Copilot, offering tools for incident analysis, automation, and job status r

GitHubEmbed

Описание

MCP-compatible backend that automates ServiceNow incident handling via Microsoft 365 Copilot, offering tools for incident analysis, automation, and job status retrieval.

README

FastAPI + MCP-compatible backend for Microsoft 365 Copilot Cowork ServiceNow incident automation.

What this backend does

  • Receives ServiceNow new-incident webhooks.
  • Deduplicates automation jobs.
  • Queues jobs to Azure Service Bus when enabled.
  • Exposes controlled /api/cowork/* APIs for Cowork plugin/MCP use.
  • Exposes a remote MCP-compatible /mcp JSON-RPC endpoint.
  • Applies backend policy checks before ServiceNow or Microsoft Graph actions.
  • Searches/classifies ServiceNow KB articles.
  • Performs eligible Microsoft Entra ID password reset/profile update through Graph.
  • Writes job, policy, KB, and audit records.
  • Never returns or logs temporary passwords.

Local setup

python -m venv .venv
.\.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .env
uvicorn app.main:app --reload

Test

pytest -q
pytest --cov=app

Required environment variables

See .env.example.

For local/dev, keep:

SERVICE_BUS_ENABLED=false
GRAPH_ENABLED=false
DATABASE_URL=sqlite+aiosqlite:///./cowork.db

For Azure, set DATABASE_URL, ServiceNow credentials, Graph settings, and Service Bus settings in App Service/Function App configuration or Key Vault references.

REST examples

Health:

curl http://localhost:8000/health

Webhook:

curl -X POST http://localhost:8000/api/servicenow/webhook/incidents ^
  -H "Content-Type: application/json" ^
  -H "x-api-key: local-test-key" ^
  -d "{\"sys_id\":\"inc-1\",\"number\":\"INC0010001\",\"state\":\"New\",\"category\":\"access\",\"priority\":\"3\",\"short_description\":\"forgot password\"}"

Analyze:

curl -X POST http://localhost:8000/api/cowork/incidents/analyze ^
  -H "Content-Type: application/json" ^
  -H "x-api-key: local-test-key" ^
  -d "{\"incident_sys_id\":\"inc-1\",\"authenticated_user_upn\":\"[email protected]\"}"

MCP initialize:

curl -X POST http://localhost:8000/mcp ^
  -H "Content-Type: application/json" ^
  -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{}}"

List MCP tools:

curl -X POST http://localhost:8000/mcp ^
  -H "Content-Type: application/json" ^
  -d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}"

Safety model

Cowork should mainly call:

  • analyze_incident
  • run_incident_automation
  • get_automation_job_status

The backend remains the final trust boundary for identity, policy, VIP/admin/security exclusions, KB safety classification, and Graph actions.

from github.com/FarhanAkhtar46/foundry-agent-sn-automation-backend

Установка ServiceNow Cowork Automation API

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/FarhanAkhtar46/foundry-agent-sn-automation-backend

FAQ

ServiceNow Cowork Automation API MCP бесплатный?

Да, ServiceNow Cowork Automation API MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для ServiceNow Cowork Automation API?

Нет, ServiceNow Cowork Automation API работает без API-ключей и переменных окружения.

ServiceNow Cowork Automation API — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить ServiceNow Cowork Automation API в Claude Desktop, Claude Code или Cursor?

Открой ServiceNow Cowork Automation API на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare ServiceNow Cowork Automation API with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development