MCPcopy Index your code
hub / github.com/koush/scrypted

github.com/koush/scrypted @v0.143.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.143.0 ↗ · + Follow
7,146 symbols 19,938 edges 594 files 247 documented · 3% updated 5d agov0.143.0 · 2025-10-28★ 5,77424 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Scrypted

Scrypted is a high performance home video integration platform and NVR with smart detections. Instant, low latency, streaming to HomeKit, Google Home, and Alexa. Supports most cameras. Learn more.

Installation and Documentation

Installation and camera onboarding instructions can be found in the docs.

Community

Scrypted has active communities on Discord, Reddit, and Github. Check them out if you have questions!

Development

Debug Scrypted Plugins in VS Code

# this is an example for homekit.
# check out the code
git clone https://github.com/koush/scrypted
cd scrypted
# get the dependencies for the server and various plugins
./npm-install.sh
# open the homekit project in VS Code
code plugins/homekit

You can now launch (using the Start Debugging play button) the HomeKit Plugin in VS Code. Please be aware that you do not need to restart the Scrypted Server if you make changes to a plugin. Edit the plugin, launch, and the updated plugin will deploy on the running server.

If you do not want to set up VS Code, you can also run build and install the plugin directly from the command line:

# currently in the plugins/homekit directory.
npm run build && npm run scrypted-deploy 127.0.0.1

Plugin SDK Documentation

Want to write your own plugin? Full documentation is available here: https://developer.scrypted.app

Debug the Scrypted Server in VS Code

Debugging the server should not be necessary, as the server only provides the hosting and RPC mechanism for plugins. The following is for reference purpose. Most development can be done by debugging the relevant plugin.

# check out the code
git clone https://github.com/koush/scrypted
cd scrypted
# get the dependencies for the server and various plugins
./npm-install.sh
# open server project in VS Code
code server

You can now launch the Scrypted Server in VS Code.

Extension points exported contracts — how you extend this code

RpcSerializer (Interface)
(no doc) [20 implementers]
packages/rpc/src/rpc.ts
EventListenerRegister (Interface)
(no doc) [7 implementers]
sdk/types/src/types.input.ts
StorageSettingsDevice (Interface)
(no doc) [10 implementers]
sdk/src/storage-settings.ts
RpcSerializer (Interface)
(no doc) [23 implementers]
server/src/rpc.ts
AlexaHttpResponse (Interface)
(no doc) [18 implementers]
plugins/alexa/src/common.ts
Listen (Interface)
(no doc) [13 implementers]
plugins/core/src/builtins/listen.ts
UnifiMotionDevice (Interface)
(no doc) [6 implementers]
plugins/unifi-protect/src/camera-sensors.ts
Component (Interface)
(no doc) [5 implementers]
plugins/mqtt/src/autodiscovery.ts

Core symbols most depended-on inside this repo

log
called by 729
server/src/plugin/plugin-api.ts
toString
called by 506
server/src/usertoken.ts
error
called by 364
server/src/plugin/plugin-remote-websocket.ts
getItem
called by 316
plugins/core/src/userStorage.ts
get
called by 301
plugins/tuya/src/tuya/cloud.ts
on
called by 296
plugins/rtsp/src/rtsp.ts
set
called by 253
packages/rpc/src/rpc.ts
warn
called by 171
plugins/unifi-protect/src/main.ts

Shape

Method 3,933
Function 1,460
Class 1,078
Interface 648
Enum 27

Languages

TypeScript78%
Python22%

Modules by API surface

sdk/types/scrypted_python/scrypted_sdk/types.py471 symbols
sdk/types/src/types.input.ts456 symbols
server/python/plugin_remote.py112 symbols
packages/python-client/plugin_remote.py112 symbols
plugins/hikvision/src/hikvision-api-capabilities.ts100 symbols
common/src/rtsp-server.ts90 symbols
plugins/reolink/src/main.ts73 symbols
server/src/plugin/plugin-api.ts67 symbols
plugins/rknn/src/rec_utils/rec_postprocess.py64 symbols
plugins/hikvision-doorbell/src/sip/sip.js63 symbols
plugins/objectdetector/src/main.ts61 symbols
server/src/rpc.ts59 symbols

Dependencies from manifests, versioned

@babel/preset-typescript7.27.1 · 1×
@eneris/push-receiver4.3.0 · 1×
@google-cloud/datastore7.3.2 · 1×
@google/local-home-sdk1.5.0 · 1×
@googleapis/homegraph2.0.0 · 1×
@googleapis/smartdevicemanagement1.0.0 · 1×
@homebridge/ciao1.1.5 · 1×
@koush/ring-client-apifile:../../external/ · 1×
@koush/werift-srcfile:../../external/ · 1×
@rollup/plugin-commonjs28.0.5 · 1×
@rollup/plugin-json6.1.0 · 1×
@rollup/plugin-node-resolve16.0.1 · 1×

For agents

$ claude mcp add scrypted \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact