Sign In

@mastyf_ai/plugin-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastyf_ai/plugin-sdk

Stable detector plugin SDK for MCP MastyfAi

latest
Source
npmnpm
Version
4.1.7
Version published
Maintainers
1
Created
Source

@mastyf_ai/plugin-sdk

Stable v3.0 detector plugin API for Mastyf AI.

pnpm add @mastyf_ai/plugin-sdk
import { createDetectorPlugin } from '@mastyf_ai/plugin-sdk';

export default createDetectorPlugin({
  name: 'acme-pii-scanner',
  version: '1.0.0',
  onLoad() { console.error('[acme] loaded'); },
  scanArguments(text, ctx) {
    if (/SSN-\d{3}-\d{2}-\d{4}/.test(text)) {
      return [{ type: 'ssn', location: ctx.location || 'args', severity: 'HIGH', redacted: 'SSN-[REDACTED]' }];
    }
    return [];
  },
});

Enable at runtime:

export MASTYF_AI_PLUGINS_ENABLED=true
export MASTYF_AI_PLUGIN_PATH=/path/to/built/plugins

See docs/PLUGIN_SDK.md for publishing and lifecycle details.

FAQs

Package last updated on 04 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts