New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@elicitly/tools

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elicitly/tools

Embeddable MCP elicitation toolkit — register elicit_confirm, elicit_form, elicit_doctor, and elicit_display on any McpServer, plus the elicitation-schema types and capability report/probe layer.

latest
Source
npmnpm
Version
0.8.3
Version published
Maintainers
1
Created
Source

@elicitly/tools

Embeddable MCP elicitation toolkit: put the Elicitly tools — elicit_confirm, elicit_form, elicit_doctor, elicit_display — on your own McpServer, with the elicitation-schema types and the capability report/probe layer they build on.

import { makeElicitAdapter, registerFormTools } from "@elicitly/tools"
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"

const server = new McpServer({ name: "my-server", version: "1.0.0" })
const { elicit, clientView } = makeElicitAdapter(server, {
  getProtocolVersion: () => null,
})
registerFormTools(server, {
  elicit,
  clientView,
  serverInfo: { name: "my-server", version: "1.0.0" },
})

Your server now exposes the three elicitation tools with the same wire contract as elicitly — dialogs rendered by the connected host, results returned as typed JSON.

What's inside

  • registerFormTools(server, deps) — registers elicit_confirm, elicit_doctor, elicit_form (alphabetical wire order).
  • registerDisplayTool(server, { version, extraResourceDomains }) — registers elicit_display and its MCP Apps view (ui://elicitly/display): a LiquidJS template rendered server-side, delivered to the view via the result's _meta (never the model's context).
  • makeElicitAdapter(server, opts) — bridges an McpServer to the injected elicit function the tools use (SDK-coupled edge, kept in one place).
  • confirm / elicitForm / doctor — the tool handlers themselves, SDK-agnostic and unit-tested; use them directly for custom registration.
  • core/ (re-exported) — the SDK-free layer: elicitation-schema types (ElicitSchema, scalarSchema) and the passive capability report + probe classification (buildPassiveReport, classifyProbe).

License

Apache-2.0

Keywords

mcp

FAQs

Package last updated on 10 Oct 2026

Related posts