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

@oryntra/mcp

v0.1.2

Published

MCP server that lets AI agents manage an Oryntra workspace (agents, specialists, LLM keys, products, knowledge base, external tools) via a workspace-scoped API token.

Readme

@oryntra/mcp

MCP server that lets an AI agent (Claude, Cursor, a LangGraph graph, …) manage an Oryntra workspace — agents, specialists, LLM keys, categories, products, knowledge base (RAG), HTTP connectors and MCP servers — through a workspace-scoped API token.

It is a thin wrapper over Oryntra's public REST API (/api/v1): every tool maps to one HTTP call, authenticated with a personal access token you generate in the panel. The token is scoped to one workspace; the server can never touch another.

Get a token

In the Oryntra panel: avatar menu → Tokens da APIGerar token. Pick the workspace and the abilities (scopes) the token may use. Copy the token — it is shown only once.

Install

Register the published server with your AI client (replace the URL and token). The Oryntra panel shows these same snippets right after you generate a token.

Claude Code

claude mcp add oryntra \
  --env ORYNTRA_API_URL=https://your-domain.com/api/v1 \
  --env ORYNTRA_API_TOKEN='your-token' \
  -- npx -y @oryntra/mcp

Codex CLI

codex mcp add oryntra \
  --env ORYNTRA_API_URL=https://your-domain.com/api/v1 \
  --env ORYNTRA_API_TOKEN='your-token' \
  -- npx -y @oryntra/mcp

Gemini CLI

gemini mcp add oryntra \
  --env ORYNTRA_API_URL=https://your-domain.com/api/v1 \
  --env ORYNTRA_API_TOKEN='your-token' \
  -- npx -y @oryntra/mcp

Other clients (Cursor, Windsurf, …) that use a JSON config: add a server that runs npx -y @oryntra/mcp with the two env vars below.

From a local checkout (before publishing), point at the built entrypoint instead:

npm install && npm run build      # in packages/oryntra-mcp
claude mcp add oryntra \
  --env ORYNTRA_API_URL=http://localhost:8080/api/v1 \
  --env ORYNTRA_API_TOKEN='your-token' \
  -- node /absolute/path/to/packages/oryntra-mcp/dist/index.js

The API token contains a | character. Always wrap it in single quotes so the shell doesn't interpret it as a pipe.

Environment variables:

| Var | Required | Description | |-----|----------|-------------| | ORYNTRA_API_URL | yes | Base URL of your Oryntra API, ending in /api/v1. | | ORYNTRA_API_TOKEN | yes | Personal access token (or set ORYNTRA_API_TOKEN_FILE to read it from a file). |

Self-documenting

The server ships its own usage guidance, so a consuming agent learns how to drive the workspace, not just what each tool does:

  • instructions — returned on initialize; a short orientation every client sees.
  • Resources — readable on demand:
    • oryntra://guide/intake — the questions to ask the user before building an agent (mode, voice, LLM, routing, each specialist's tools, knowledge, activation).
    • oryntra://guide/getting-started — order of operations, scoping, async knowledge, write-only secrets, error semantics.
    • oryntra://guide/agent-design — how an Oryntra agent maps to the LangGraph runtime; modes, specialists, tools_allowlist, RAG.
    • oryntra://guide/tools-and-scopes — ability→tool map, pagination, connectors vs MCP servers.

Tools

Call whoami first to confirm the connection and see which abilities your token grants.

  • Agentslist_agents, get_agent, create_agent, update_agent, delete_agent
  • Specialistslist_specialists, create_specialist, update_specialist, delete_specialist
  • LLM keyslist_llm_keys, list_llm_models, create_llm_key, delete_llm_key
  • Cataloglist_categories, create_category, list_products, create_product, update_product, delete_product
  • Knowledge (RAG)list_knowledge, add_knowledge_from_text, delete_knowledge
  • External toolslist_connectors, create_connector, delete_connector, list_mcp_servers, create_mcp_server, list_mcp_server_tools, delete_mcp_server
  • Lookupslist_chatwoot_teams, list_chatwoot_agents, list_chatwoot_labels, list_calendar_connections, list_calendar_calendars (resolve the id fields used by handoff_config and google_calendar_config)

Typical flow to build a working agent

  1. create_llm_key — register a provider key (BYOK); api_key is write-only.
  2. list_llm_models — discover a valid llm_model for that key.
  3. create_agent (mode single) — a specialist is auto-created.
  4. list_specialists then update_specialist — set role_prompt, llm_key_id, llm_model, and tools_allowlist.
  5. add_knowledge_from_text — feed domain knowledge (indexed in the background: pendingindexed).
  6. update_agent { status: "active" }.

Advanced behaviour is configurable inline: agents take debounce_config, guard_config, rag_config; specialists take contact_tools_config, product_tools_config, document_tools_config, memory_config, resolution_config, handoff_config, google_calendar_config. All optional with sane defaults. Resolve the id fields inside handoff_config (Chatwoot team/agent) and google_calendar_config (connection/calendar) with the lookup tools (list_chatwoot_teams, list_calendar_connections, …) — don't guess them.

How agents run (LangGraph)

Oryntra compiles each agent to a LangGraph StateGraph (route → specialist → respond). In supervisor mode the route node uses the supervisor LLM to pick a specialist by intent_keywords / confidence_threshold (falling back to fallback_specialist_id); in single mode one specialist handles everything. Each specialist is a tool-calling loop limited to its tools_allowlist — native tools (e.g. query_products, search_knowledge_base), connector slugs, and registered MCP server tools. See oryntra://guide/agent-design.

Security

llm_key.api_key, connector.secret, and mcp_server.secret.token are write-only: accepted on create, stored encrypted, and never returned. Reads expose only has_credentials. A read-only token (no :write scopes) can inspect but not mutate.

Required token abilities

Each tool needs the matching ability on the token: agent:read/write, specialist:read/write, llmkey:read/write, category:read/write, product:read/write, knowledge:read/write, tool:read/write, media:read/write.

Development

  • npm run build — transpile src/dist/.
  • npm run typecheck — diagnostics only, no emit.
  • Node 22+ required.