Docs Packages

@procedures/bundle-assistant

packages/bundle-assistant/README.md on GitHub · Package map · Procedures

The opt-in tools of the personal assistant for an MCP host. The bundle has the procedures of @procedures/ics, @procedures/mail, @procedures/geo, @procedures/weather and @procedures/exif.

Use#

The dev-tools server of @procedures/mcp-dev-tools loads the bundles of MCP_BUNDLES. Add this bundle to the default bundle:

MCP_BUNDLES=@procedures/bundle-mcp,@procedures/bundle-assistant mark mcp

The tools#

ToolWhat it does
ics.parse, ics.occurrencesThey read a calendar file and its repeated events. They are pure.
ics.writeIt writes a calendar file from events. It is pure.
mail.parseIt reads the headers and the text of a message. It is pure.
geo.geocode, geo.route, geo.soilAtPointThey read one public service each. geo.soilAtPoint sends a POST that only reads, and only to Soil Data Access.
geo.distanceKm, geo.geohashThey give the distance between two points and the geohash of a point. They are pure.
geo.distanceIt gives the same distance as geo.distanceKm with radiusKm: 6371. It is deprecated: use geo.distanceKm.
weather.forecastIt reads one public service.
exif.readIt reads the date and the place of a photo on the host.

The dev-tools server sends the requests of geo.geocode, geo.route, geo.osmFeatures, geo.arcgisFeatures, weather.forecast and ics.fetch through the default host policy of @procedures/http. The policy refuses a baseUrl or a feed on a loopback, private or link-local address.

  • weather.forecast uses the policy in each registry.
  • The export mcpHostModules gives geo and ics with the policy. The fetch of geo also takes the POST of geo.soilAtPoint, and only for the host sdmdataaccess.sc.egov.usda.gov (the option readOnlyPost of createHostFetch()). The dev-tools server gives them to createRegistry() before the bundle, so they replace the default modules.
  • The bundle keeps the default modules of geo and ics. Thus mark and the site load the bundle next to the packages geo and ics.

Another host does the same:

import bundleAssistantModule, { mcpHostModules } from "@procedures/bundle-assistant/module";

const registry = createRegistry(...mcpHostModules, bundleAssistantModule);

These procedures are not tools:

  • ics.fetch fetches any URL, so a tool call can carry data out in the URL.
  • geo.arcgisFeatures reads a layer of any host, for the same reason.
  • geo.osmFeatures can give megabytes of features for one box. That is too large for a tool result.
  • mail.headers reads a private mailbox.
  • The other procedures of geoManifest are pure, but each tool adds approximately 386 tokens to the tool list of each session. The bundle has them, so a call in process can use them.
  • notify.send, restic.run and tailscale.run are not in the bundle. The first one posts to any topic of a public server, and the others run destructive commands.

A test pins the list of tools. Each tool changes nothing.