Socket · Capability

Socket Dependencies Search

Socket dependencies search business capability. Self-contained Naftiko capability covering one Socket business surface.

Socket Dependencies Search is a Naftiko capability published by Socket, one of 21 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the POST and GET methods.

The capability includes 1 read-only operation and 1 state-changing operation. Lead operation: Search dependencies. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Socket, Supply Chain Security, Dependencies, and Search.

Run with Naftiko SocketSupply Chain SecurityDependenciesSearch

What You Can Do

POST
Post dependencies search — Search dependencies
/v1/dependencies/search
GET
Get orgs org slug historical dependencies trend — Trend of historical dependencies (Beta)
/v1/orgs/{org_slug}/historical/dependencies/trend

MCP Tools

socket-post-dependencies-search

Search dependencies

socket-get-orgs-org-slug-historical-dependencies-trend

Trend of historical dependencies (Beta)

read-only idempotent

Capability Spec

dependencies-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Socket Dependencies Search
  description: Socket dependencies search business capability. Self-contained Naftiko capability covering one Socket business surface.
  tags:
  - Socket
  - Supply Chain Security
  - Dependencies
  - Search
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    SOCKET_API_KEY: SOCKET_API_KEY
capability:
  consumes:
  - type: http
    namespace: dependencies-search
    baseUri: https://api.socket.dev/v0
    description: Socket dependencies search business capability. Self-contained, no shared references.
    resources:
    - name: dependencies-search
      path: /dependencies/search
      operations:
      - name: post-dependencies-search
        method: POST
        description: Search dependencies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-slug-historical-dependencies-trend
      path: /orgs/{org_slug}/historical/dependencies/trend
      operations:
      - name: get-orgs-org-slug-historical-dependencies-trend
        method: GET
        description: Trend of historical dependencies (Beta)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: date
          in: query
          type: string
          description: The UTC date in YYYY-MM-DD format for which to fetch dependencies
          required: false
        - name: range
          in: query
          type: string
          description: The number of days of data to fetch as an offset from input date
          required: false
        - name: repoFullName
          in: query
          type: string
          description: Comma-separated list of repo full names that should be included
          required: false
        - name: repoSlug
          in: query
          type: string
          description: Comma-separated list of repo slugs that should be included
          required: false
        - name: repoLabels
          in: query
          type: string
          description: Comma-separated list of repo labels that should be included
          required: false
        - name: artifactType
          in: query
          type: string
          description: Comma-separated list of artifact types (e.g. "npm", "pypi", "gem", "maven", "golang", etc.) that should be included
          required: false
        - name: dependencyDirect
          in: query
          type: boolean
          description: Direct/transitive dependency filter flag
          required: false
        - name: dependencyDev
          in: query
          type: boolean
          description: Development/production dependency filter flag
          required: false
        - name: dependencyDead
          in: query
          type: boolean
          description: Dead/reachable dependency filter flag
          required: false
    authentication:
      type: basic
      username: '{{env.SOCKET_API_KEY}}'
      password: ''
      description: Socket authenticates via HTTP Basic with the API key as the username and empty password.
  exposes:
  - type: rest
    namespace: dependencies-search-rest
    port: 8080
    description: REST adapter for Socket dependencies search.
    resources:
    - path: /v1/dependencies/search
      name: dependencies-search
      description: REST surface for dependencies-search.
      operations:
      - method: POST
        name: post-dependencies-search
        description: Search dependencies
        call: dependencies-search.post-dependencies-search
        with:
          body: rest.body.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org_slug}/historical/dependencies/trend
      name: orgs-org-slug-historical-dependencies-trend
      description: REST surface for orgs-org-slug-historical-dependencies-trend.
      operations:
      - method: GET
        name: get-orgs-org-slug-historical-dependencies-trend
        description: Trend of historical dependencies (Beta)
        call: dependencies-search.get-orgs-org-slug-historical-dependencies-trend
        with:
          org_slug: rest.path.org_slug
          date: rest.query.date
          range: rest.query.range
          repoFullName: rest.query.repoFullName
          repoSlug: rest.query.repoSlug
          repoLabels: rest.query.repoLabels
          artifactType: rest.query.artifactType
          dependencyDirect: rest.query.dependencyDirect
          dependencyDev: rest.query.dependencyDev
          dependencyDead: rest.query.dependencyDead
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: dependencies-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Socket dependencies search.
    tools:
    - name: socket-post-dependencies-search
      description: Search dependencies
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: dependencies-search.post-dependencies-search
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-get-orgs-org-slug-historical-dependencies-trend
      description: Trend of historical dependencies (Beta)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: dependencies-search.get-orgs-org-slug-historical-dependencies-trend
      with:
        org_slug: tools.org_slug
        date: tools.date
        range: tools.range
        repoFullName: tools.repoFullName
        repoSlug: tools.repoSlug
        repoLabels: tools.repoLabels
        artifactType: tools.artifactType
        dependencyDirect: tools.dependencyDirect
        dependencyDev: tools.dependencyDev
        dependencyDead: tools.dependencyDead
      outputParameters:
      - type: object
        mapping: $.