npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@oml/mcp

v0.23.0

Published

MCP bridge for the OML REST server

Readme

@oml/mcp

MCP (Model Context Protocol) bridge that exposes the OML server REST interface to AI applications.

Usage

npx @oml/mcp [--workspace <path>] [--url <url>]

Options

| Flag | Short | Description | |------|-------|-------------| | --workspace | -w | Path to the OML workspace directory. Used to locate the server lock file under ~/.oml. Defaults to the current working directory. | | --url | -u | Explicit base URL of the OML server, including protocol and port (e.g. http://127.0.0.1:8080). Takes priority over --workspace when both are provided. |

When neither flag is given, the current working directory is treated as the workspace.

URL Resolution

  • If --url is provided, it is used directly.
  • Otherwise, the workspace path (from --workspace or cwd) is hashed (SHA-256 of its canonical path) to locate the server lock file at ~/.oml/workspaces/<hash>/server.lock, and the port is read from that file.

Exposed Tools

| Tool | Backend API | Description | |------|-------------|-------------| | oml_workspace | GET /v0/workspace | Return workspace root path | | oml_models | GET /v0/models | List model URIs (paginated) | | oml_ontologies | GET /v0/models + SPARQL | Map ontology IRI to oml:type (paginated) | | oml_members | SPARQL | List ontology members in context (paginated) | | oml_shapes | SPARQL | Find SHACL node shapes for a type (sh:targetClass or sh:class) | | oml_assertions | POST /v0/assertions | Return RDF assertions serialization | | oml_paths | SPARQL SELECT | Return path triples from source to target | | oml_sparql | SPARQL SELECT / ASK / CONSTRUCT / DESCRIBE | Return rows, booleans, or graph triples based on query kind | | oml_imports | SPARQL SELECT | Return owl:imports triples (paginated) | | oml_search | POST /v0/fuzzysearch | Fuzzy member search (paginated) | | oml_update | POST /v0/update | Apply operations and return diagnostics | | oml_preview | POST /v0/update with preview=true | Return workspace edit without persistence | | oml_lint | POST /v0/lint | Lint diagnostics (optional context filter client-side) | | oml_validate | POST /v0/validate | SHACL diagnostics (optional context filter client-side) |

oml_update / oml_preview operation types

Update operations use the same wrapper schema as the REST API: each item has exactly one top-level property named after the operation.

  • { createInstance: { descriptionIri, instanceName } }
  • { createRelationInstance: { descriptionIri, instanceName } }
  • { createInstanceRef: { descriptionIri, instanceIri, typeIri? } }
  • { createRelationInstanceRef: { descriptionIri, instanceIri, typeIri? } }
  • { addAssertion: { descriptionIri, subjectIri, predicateIri, object } }
  • { updateAssertion: { descriptionIri, subjectIri, predicateIri, object } }
  • { removeAssertion: { descriptionIri, subjectIri, predicateIri, object? } }
  • { addAnnotation: { ontologyIri, subjectIri, predicateIri, object } }
  • { updateAnnotation: { ontologyIri, subjectIri, predicateIri, object } }
  • { removeAnnotation: { ontologyIri, subjectIri, predicateIri, object? } }
  • { deleteMemberCascade: { ontologyIri, memberIri } }
  • { deleteMemberRef: { ontologyIri, memberIri, typeIri? } }
  • { deleteOntology: { ontologyIri } } (deletes ontology file only; caller must ensure safety)
  • { addImport: { importingIri, importedIri } }
  • { removeImport: { importingIri, importedIri } }
  • { createOntology: { ontologyKind, ontologyNamespace, ontologyPrefix } }

For backward compatibility, MCP still accepts the flat form like { kind: 'createInstance', ... } and normalizes it before calling REST.

Notes:

  • referencingUri is a request-level anchor for update placement. For createOntology, pass an existing nearby .oml file URI under the workspace oml/ tree. Do not pass the destination URI you want created.
  • createOntology derives the new file path from referencingUri plus ontologyNamespace; it does not accept an explicit output path.
  • Prefer addImport after createOntology instead of hand-writing import text. addImport infers the correct extends / includes / uses kind and reuses the imported ontology prefix when possible.
  • When creating a new ontology and importing it in the same request, send both operations in one oml_update transaction and keep referencingUri at the top level of the request.