---
title: Jaspers for developers
description: Build on Jaspers Terminal, the open-source agentic terminal for public markets - plugins with @jaspers-ai/sdk (data sources, views, MCP connections, skills), publishing to Jaspers Hub, and the hosted Hub and MCP APIs.
canonical: https://jsprai.com/developers
last-updated: 2026-10-14
---

# Jaspers for developers

Jaspers Terminal is open source under the Business Source License 1.1 at [github.com/JaspersAI/terminal](https://github.com/JaspersAI/terminal). Everything on its grid comes from plugins, and a plugin is a small TypeScript package written against one SDK, [`@jaspers-ai/sdk`](https://www.npmjs.com/package/@jaspers-ai/sdk): define a source, define a view, declare the MCP servers and keys it needs. This page is how to run the Terminal from source, write and publish a plugin, write a skill, and, at the end, how to call the APIs Jaspers hosts. The agent-oriented version is https://jsprai.com/agents.md; the OpenAPI document for the hosted APIs is https://jsprai.com/openapi.json.

## Jaspers Terminal, from source

An Electron app: the main process owns one state tree, runs the assistant, talks to MCP servers, and builds plugins; the window is React and TypeScript; plugins fill the grid. Node 24 (`nvm use` reads `.nvmrc`). Developed on macOS; Windows is packaged by the release workflow.

```sh
git clone https://github.com/JaspersAI/terminal.git
cd terminal
npm install
npm run dev
```

`npm run typecheck`, `npm test`, `npm run dist` (package the app), `npm run sdk:build` (build the SDK into `packages/sdk/dist`). The SDK lives in `packages/sdk` of the same repo, the npm workspace the app itself imports.

| Read | For |
| --- | --- |
| [Getting started](https://github.com/JaspersAI/terminal/blob/main/docs/getting-started.md) | Run it, first launch, commands, packaging |
| [How it works](https://github.com/JaspersAI/terminal/blob/main/docs/architecture.md) | The processes, the state tree, how a plugin is wired in, project layout |
| [Writing a plugin](https://github.com/JaspersAI/terminal/blob/main/docs/writing-a-plugin.md) | A watchlist plugin from scratch: an MCP server, a source, and a view |
| [SDK reference](https://github.com/JaspersAI/terminal/blob/main/docs/sdk-reference.md) | `definePlugin`, `defineSource`, `defineView`, `ctx`, the hooks, connections and secrets |
| [Skills](https://github.com/JaspersAI/terminal/blob/main/docs/skills.md) | Writing, installing, and using skills, and skills in a plugin |
| [Publishing a plugin](https://github.com/JaspersAI/terminal/blob/main/docs/publishing-a-plugin.md) | To Jaspers Hub from Settings, or as an archive on a GitHub release |
| [Connections and data](https://github.com/JaspersAI/terminal/blob/main/docs/connections-and-data.md) | Adding an MCP server, the built-in views, the SQLite file everything is kept in |
| [Development](https://github.com/JaspersAI/terminal/blob/main/docs/development.md) and [CLAUDE.md](https://github.com/JaspersAI/terminal/blob/main/CLAUDE.md) | Implementation constraints, contributor commands and rules |

Bugs and feature requests: https://github.com/JaspersAI/terminal/issues.

## How a plugin fits

A plugin is a folder in `~/Jaspers/plugins/<id>` whose `plugin.tsx` default-exports one declaration, `definePlugin({ id, secrets, connections, sources, views })`. The app picks the folder up while running and rebuilds it on every save; a failed build keeps the last good version and reports the error.

- **Sources** are named data calls: one tool on an MCP server (`defineSource({ mcp: "server", tool: "quotes" })`) or a function the plugin runs itself, with `input` parsed by zod and `ctx.fetch` limited to the hosts it declares. A source that answers a list of records produces rows, which feed the plugin's views, the built-in table, chart, and metric views, and the assistant alike. Every run is filed in the user's local SQLite file, `~/Jaspers/data/jaspers.db`.
- **Views** are React components the assistant places and drives: `defineView(Component, { title, state, output, instructions, renders })`. `state` is a zod schema of what the assistant may set, checked by the app on every write; `output` is what the view reports back; `instructions` tell the assistant when and how to use it. A view runs in a sandboxed iframe with no network of its own and reaches the app only through the SDK hooks.
- **Connections** are the MCP servers a plugin ships or reaches: `defineConnection({ command: ["node", "server.ts"] })` for a server over stdio, run in the plugin's folder, or `{ url, auth, headers }` for streamable HTTP. A source's `mcp` can also name another plugin's connection as `<plugin>/<name>`.
- **Secrets** are keys the user supplies once, referenced as `${secret:name}` in an address, a header, or a server's environment. The app asks for the value in a secure field, seals it in the OS keychain, and fills it in at request time; it never reaches plugin code, the assistant, or the logs.
- **Skills** ride along in a `skills/<name>/SKILL.md` folder beside `plugin.tsx`, named `<plugin>:<name>`.

Plugin code gets these capabilities and nothing else: `fetch` (declared hosts only, every redirect checked again), `live`, `jobs`, and `notify` without declaration, and `llm` (completions on the user's model, key never exposed), `tools` (the app's MCP connections), `files` (the plugin's own data folder), `state` (read only), and `skills` when listed in `definePlugin({ capabilities })`. The definitions run once in a sandbox with no file system, no network, and a 2-second limit; a plugin with code of its own runs it in a separate process.

## Quickstart: a plugin in a folder

```sh
mkdir -p ~/Jaspers/plugins/watchlist && cd ~/Jaspers/plugins/watchlist
npm init -y
npm pkg set type=module
npm install @modelcontextprotocol/sdk zod
npm install --save-dev @jaspers-ai/sdk react typescript @types/react @types/node
```

The app provides `@jaspers-ai/sdk`, `react`, `react-dom`, and `zod` at run time, so that install is for types. `plugin.tsx` declares what the plugin offers; here a stdio MCP server beside it, one of its tools as a source, and a view that renders it:

```tsx
import { defineConnection, definePlugin, defineSource, defineView } from "@jaspers-ai/sdk";
import { z } from "zod";
import { WatchlistView } from "./WatchlistView";

const server = defineConnection({ command: ["node", "server.ts"] });
const quotes = defineSource({ mcp: "server", tool: "quotes" });

export default definePlugin({
  id: "watchlist",
  connections: { server },
  sources: { quotes },
  views: {
    watchlist: defineView(WatchlistView, {
      title: "Watchlist",
      state: z.object({ tickers: z.array(z.string()).max(50).default([]) }),
      output: z.object({ tickers: z.array(z.string()), count: z.number() }),
      instructions: "A list of companies to watch. Set state.tickers to the ticker symbols, up to 50.",
      renders: [quotes],
    }),
  },
});
```

Inside the view, `useData("watchlist/quotes", { tickers })` runs the source and returns its rows, and `usePublish(panel, output)` reports what is on screen. `npx tsc` checks the plugin; with the app running, Settings > Plugins lists `watchlist` as local and ready, and "put a watchlist with Apple, Microsoft, and Nvidia on the left half" places it. The whole plugin, server and view included, is in [Writing a plugin](https://github.com/JaspersAI/terminal/blob/main/docs/writing-a-plugin.md). A plugin that fetches an API itself needs no server at all: a function source with `hosts` and `run(args, ctx)`.

## The SDK

[`@jaspers-ai/sdk`](https://www.npmjs.com/package/@jaspers-ai/sdk) on npm, MIT, currently 0.3.0. Import it by its root name only. What it exports:

| Export | What it is |
| --- | --- |
| `definePlugin`, `defineSource`, `defineView`, `defineConnection` | The declarations above |
| `useData(source, args)` | Runs a source in a view, again whenever the arguments change; returns data, loading, error, meta |
| `useData(path)` | Subscribes to a path in the app state, such as the panel's own state |
| `usePanelState(panel, key, init)` | One key of the panel's state, with a setter that goes through the app's schema check |
| `usePublish(panel, output)`, `usePublishText(panel, text)` | What the view shows, as structured output (4 KB) or as text the assistant reads a part at a time |
| `useBridge()` | `openLink(url)` and `copyText(text)`, since the sandboxed frame can do neither itself |
| `skillsPrompt`, `skillTools`, `runSkillTool` | A skills loop for a plugin that runs its own model |
| `BackendContext`, `Files`, `Jobs`, `Llm`, and the other types | What `ctx` offers a function source and `start(ctx)` |

A view's CSS can use the app's theme variables (`--jaspers-background`, `--jaspers-foreground`, `--jaspers-muted-foreground`, `--jaspers-border`, `--jaspers-primary`, `--jaspers-positive`, `--jaspers-negative`, the font faces), so it follows light and dark with the app. Full detail, including `ctx`, rows and citations, and connections with `oauth`, is in the [SDK reference](https://github.com/JaspersAI/terminal/blob/main/docs/sdk-reference.md).

## Templates and examples

[`docs/templates/`](https://github.com/JaspersAI/terminal/tree/main/docs/templates) in the Terminal repo holds four whole plugins to copy, one per kind: a feed (one function source over a keyless JSON API, shown by the built-in views), a feed with a key and a table view of its own, a document producer (the `files` capability, writing a report and opening it), and a connection (an MCP server over HTTP with a key in a header). The assistant's own builder starts from the same four.

Every official plugin is a public repo under [github.com/JaspersAI](https://github.com/JaspersAI), `plugin-<name>`, and listed on Jaspers Hub under [jaspers](https://hub.jsprai.com/jaspers): [screener-mcp](https://github.com/JaspersAI/plugin-screener-mcp) (the fullest example), [research](https://github.com/JaspersAI/plugin-research), [sec](https://github.com/JaspersAI/plugin-sec), [yfinance](https://github.com/JaspersAI/plugin-yfinance), [tradingview](https://github.com/JaspersAI/plugin-tradingview) (a framed site), [fed](https://github.com/JaspersAI/plugin-fed), [treasury](https://github.com/JaspersAI/plugin-treasury), [bls](https://github.com/JaspersAI/plugin-bls), [finra](https://github.com/JaspersAI/plugin-finra), [cftc](https://github.com/JaspersAI/plugin-cftc), [oecd](https://github.com/JaspersAI/plugin-oecd), [imf](https://github.com/JaspersAI/plugin-imf), [ecb](https://github.com/JaspersAI/plugin-ecb), [fmp](https://github.com/JaspersAI/plugin-fmp), [earningscall](https://github.com/JaspersAI/plugin-earningscall), and [markdown](https://github.com/JaspersAI/plugin-markdown) (a single-view plugin).

For a coding agent, two ready-made skills cover this page: [jaspers-terminal-plugin](https://jsprai.com/.well-known/agent-skills/jaspers-terminal-plugin/SKILL.md) and [jaspers-terminal-skill](https://jsprai.com/.well-known/agent-skills/jaspers-terminal-skill/SKILL.md), installed with `npx skills add JaspersAI/skills` or from the index at https://jsprai.com/.well-known/agent-skills/index.json.

## Skills

A skill is written know-how the assistant loads when a request calls for it: how a DCF is laid out, what a morning brief covers, which views a credit review opens. Jaspers uses the [Agent Skills](https://agentskills.io) format, so a skill written for Claude Code, Codex, or another client works here, and one written here works there. A skill is a folder with a `SKILL.md`, YAML frontmatter (`name`, `description`, optional `argument-hint` and `arguments`) then instructions in Markdown; it lives in `~/Jaspers/skills/<name>/`, or in a plugin's `skills/` folder, and `/name` loads it by hand, with arguments as `$ARGUMENTS`.

```markdown
---
name: morning-brief
description: A morning brief across the watchlist. Use when the user asks for a brief, a morning update, or what moved overnight.
argument-hint: [tickers]
---

# Morning brief

1. Place a watchlist with $ARGUMENTS, or the tickers on screen if none are given.
2. Put the biggest movers' news beside it.
3. Write a five-line summary in a document: what moved, why, what to watch today.
```

Jaspers runs no code from a skill: scripts are listed for the assistant to read, not run. Write instructions as steps the assistant takes on the grid and in conversation. A plugin with a model loop of its own, like the research plugin's analysts, loads skills through the `skills` capability and the SDK helpers.

## Publishing

- **To Jaspers Hub.** A plugin in `~/Jaspers/plugins` that you wrote, or the assistant built, publishes from its page in Settings > Plugins with Publish to Hub; a skill from Settings > Skills. The first time, you claim a handle, and your items are listed at `https://hub.jsprai.com/<handle>/<name>`. The app packs the folder as a `.tar.gz` (at most 50 MB, dotfiles and dev dependencies left out); Hub reads the name and version from `package.json`, and a new version has to sort above the last. Every version is reviewed before it is listed; Your Hub items in Settings shows where each stands.
- **As an archive on a GitHub release.** Attach a `.zip` or `.tar.gz` holding the plugin folder (with `node_modules` only if it imports packages the app does not provide) to a release, and the repo's URL installs it from Settings > Plugins; Update picks up each new release. The official repos automate it: `npm version patch && git push --follow-tags` runs a workflow that checks the plugin and attaches `<id>-<version>.zip`.

Installing, from Hub, a repo, a link, or a file, shows the plugin's name, version, origin, and SHA-256 and asks before anything of it runs; a Hub install is refused unless its hash is the one Hub sent. A plugin runs with the user's permissions, so say plainly what it reads and where it connects.

## Or ask the assistant

Users need not write any of this. When nothing installed does what they ask, the assistant searches Hub first and offers to install a match; otherwise its builder, a second model loop with the SDK documentation and the four templates in front of it, researches the service's API and writes the plugin. One question shows the plugin's envelope, every host it may reach, every capability, key, connection, and npm package, and the files, and nothing runs until the user approves. The app then holds every build of that plugin to the envelope: an edit that reaches a new host or adds a package fails to build until the user is asked again. The result is an ordinary folder in `~/Jaspers/plugins`, theirs to edit or publish. See [Asking the assistant for a plugin](https://github.com/JaspersAI/terminal/blob/main/docs/asking-for-a-plugin.md).

## Hosted services

Three things Jaspers runs over HTTP. The Terminal is complete without them.

| Service | Base | Auth | Describes itself at |
| --- | --- | --- | --- |
| Jaspers Hub API | `https://hub-api.jsprai.com/v1` | None for reads | [openapi.json](https://jsprai.com/openapi.json) |
| Jaspers Screener MCP | `https://s.jsprai.com/mcp` | OAuth 2.0, scope `mcp` | [server card](https://jsprai.com/.well-known/mcp/server-card.json), [resource metadata](https://s.jsprai.com/.well-known/oauth-protected-resource/mcp) |
| Jaspers Research MCP | `https://r.jsprai.com/mcp` | OAuth 2.0, scope `mcp` | [server card](https://jsprai.com/.well-known/mcp/research-server-card.json), [resource metadata](https://r.jsprai.com/.well-known/oauth-protected-resource/mcp) |

**The Hub API** lists what is published for the Terminal. No key, no sign-up; JSON in and out, camelCase names, ISO 8601 times in UTC.

```sh
curl 'https://hub-api.jsprai.com/v1/items?q=treasury&kind=plugin'   # search
curl https://hub-api.jsprai.com/v1/items/jaspers/yfinance             # one item, every version
curl https://hub-api.jsprai.com/v1/items/jaspers/yfinance/versions/1.0.2
curl https://hub-api.jsprai.com/v1/publishers/jaspers                 # Jaspers' own plugins
```

`GET /items` takes `q` (at most 200 characters), `kind` (`plugin` or `skill`), `tag`, `sort` (`stars`, `new`, `downloads`; ignored with `q`), and `page`, thirty items a page. `GET /items/{handle}/{name}/archive` is the `.tar.gz` the Terminal installs, with `X-Hub-Version`, `X-Hub-Sha256`, and `X-Hub-Reviewed` headers. Publishing and starring need a Jaspers Account token and happen from the Terminal's Settings.

**The MCP servers** are Model Context Protocol endpoints over SEC data: the Screener finds US public companies by their numbers and reads a short list against criteria in words; the Research server searches and reads one company's filings and verifies every quote against sec.gov. Each is a subscription on a Jaspers account, with a preview period on new accounts, managed at https://account.jsprai.com/auth/account. Add either to any MCP client that speaks Streamable HTTP and OAuth 2.0, and sign in when it asks; for Claude Code, `claude mcp add --transport http jaspers-screener https://s.jsprai.com/mcp`. Inside the Terminal both connect on the sign-in with Jaspers, through the [Screener](https://github.com/JaspersAI/plugin-screener-mcp) and [Research](https://github.com/JaspersAI/plugin-research) plugins. Tool workflows and conventions: [agents.md](https://jsprai.com/agents.md), and the skills [jaspers-screener](https://jsprai.com/.well-known/agent-skills/jaspers-screener/SKILL.md) and [jaspers-research](https://jsprai.com/.well-known/agent-skills/jaspers-research/SKILL.md).

**Authentication.** One authorization server, `https://account.jsprai.com`, signs in to both MCP servers; its metadata (RFC 8414) is at https://account.jsprai.com/.well-known/oauth-authorization-server: authorization code with PKCE `S256`, refresh tokens, public clients, dynamic client registration at `/oauth/register`, and client ID metadata documents. Request the token for the resource you will call (RFC 8707): `https://s.jsprai.com/mcp` or `https://r.jsprai.com/mcp`. The one scope is `mcp`; what each tool may do follows the account's subscriptions. An unauthenticated request answers `401` with a `WWW-Authenticate: Bearer` challenge naming the server's protected resource metadata (RFC 9728). No API keys, no sandbox: the preview period on a new account is the trial. Step by step for agents: https://jsprai.com/auth.md.

**Versioning, errors, limits.** The Hub API is versioned in its path, `/v1`; additive changes arrive without a version change, and a breaking change ships as a new path version with the old one answering for at least 90 days under `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers. Its errors are JSON, `{"error": {"message": "…"}}`: `400` bad query, `404` nothing there, `410` a rejected or withdrawn version, `429` too many requests with `Retry-After`, `502` and `503` when something behind it did not answer. Reads are limited to 20 requests per second per client. The MCP servers speak the protocol version negotiated at `initialize`, their tool lists are what `tools/list` returns on the day, and they answer MCP's own JSON-RPC errors inside a `200`, with `401` for a missing or invalid token.

## Trust and verification

- Jaspers Terminal is open source at https://github.com/JaspersAI/terminal under the Business Source License 1.1: free to use, at home or at work; nobody may offer the Terminal or a fork of it to others as a product or service; each version becomes MIT four years after it is published. The SDK and the official plugins under https://github.com/JaspersAI are MIT. A release is signed with Jaspers Inc.'s Developer ID on macOS and notarized by Apple.
- Every discovery document on this site (the ARD catalog, the server cards, the skills index, this page) is served from `https://jsprai.com` over TLS; the catalog's `trustManifest.identity` is that origin.
- Each skill in https://jsprai.com/.well-known/agent-skills/index.json carries the SHA-256 of its `SKILL.md`; verify the bytes before loading. The same skills are the public repository https://github.com/JaspersAI/skills.
- Each MCP server publishes RFC 9728 protected resource metadata on its own host, naming `https://account.jsprai.com` as its only authorization server; tokens are ES256 JWTs verifiable against https://account.jsprai.com/.well-known/jwks.json.

## Discovery files

- [openapi.json](https://jsprai.com/openapi.json): the hosted APIs as OpenAPI 3.1
- [ard.json](https://jsprai.com/.well-known/ard.json): the Agentic Resource Discovery catalog
- [api-catalog](https://jsprai.com/.well-known/api-catalog): RFC 9727 linkset
- [llms.txt](https://jsprai.com/llms.txt) and [agents.md](https://jsprai.com/agents.md)
- [auth.md](https://jsprai.com/auth.md): how an agent obtains credentials, step by step
- [Agent Plugin](https://github.com/JaspersAI/skills): `plugin.json` and `mcp.json` bundle the skills and both MCP servers; `AGENTS.md` there is for coding agents
- Status: https://hub-api.jsprai.com/v1/health, https://s.jsprai.com/health, https://r.jsprai.com/health, https://account.jsprai.com/health

## Support

info@jsprai.com. Bugs in Jaspers Terminal: https://github.com/JaspersAI/terminal/issues. See [contact](https://jsprai.com/contact).
