appsetup

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package appsetup holds the text that tells an AI app how to start trading through Mishmar on the person's computer: what the hosted MCP server's set_up_trading tool answers and what the console shows when a person turns trading on for an app (the wiki's design/app-trading-plan.md, section 2.5). It is the one place the text lives. It imports only the standard library, so the hosted control plane can import it, or copy this file; either way spec/vectors/app-setup.json pins the rendered texts, the way the signing vectors pin bytes, and a copy is checked against it.

The text is written to the model, which relays the steps to the person. It says plainly that a server added during a conversation is not usable in it: the app has to restart, or the conversation continue in a new session (seen on 13 Nov 2026 with Claude Code).

Index

Constants

View Source
const FirstUse = "" /* 329-byte string literal not displayed */

FirstUse is what happens once the server runs.

View Source
const Intro = "" /* 208-byte string literal not displayed */

Intro opens every text.

View Source
const OwnComputer = "" /* 150-byte string literal not displayed */

OwnComputer is what may trade: a machine the person sits at. Signing in by typing a code on another device is not built, so a remote machine is refused by the server itself; the text says so first.

View Source
const Package = "mishmar@0.6"

Package is what every app runs: the npm package (and the PyPI one, by the same version) pinned to a minor release, so patch releases arrive by themselves. Bumped with each minor release of the CLI; an installed app keeps the pin it was added with.

View Source
const Restart = "" /* 157-byte string literal not displayed */

Restart is the honest part: a server added during a conversation is not in it.

View Source
const SayAfter = "set up trading with Mishmar"

SayAfter is what the person says to the app once the server is in.

View Source
const ServerName = "mishmar-trade"

ServerName is the name the trading server is added under in every app.

View Source
const Windows = "On Windows, run the app inside WSL (the Linux steps work there): Mishmar's signer has no Windows release yet."

Windows is what an app on Windows is told: the mishmar release has no Windows build yet.

Variables

Apps lists them in the order they are offered.

Functions

func AlreadyTrading

func AlreadyTrading(signedIn time.Time, code string) string

AlreadyTrading is the text for an app that trades already: when its computer signed in, and its code (the first two groups of its key's fingerprint). The computer's name is left out: it is whatever the program on that computer sent, and this text goes into the AI app's context.

func Args

func Args(app App, env string) []string

Args is the npx arguments: -y, the package, mcp and Flags.

func Entry

func Entry(app App, env string) string

Entry is the server's entry as an app's mcpServers map takes it.

func Flags

func Flags(app App, env string) []string

Flags is the server's arguments after mcp: --app and the slug, and --env outside prod.

func PythonRequirement

func PythonRequirement() string

PythonRequirement is Package as a pip requirement (mishmar>=0.6,<0.7), for uvx.

func Text

func Text(app App, env string) (string, error)

Text is the setup text for an app in an environment (prod, testnet or stage; "" is prod).

func UVXEntry

func UVXEntry(app App, env string) string

UVXEntry is the same through uvx, for a computer without Node.js.

Types

type App

type App string

App is an AI app the text is written for; its value is the --app slug the server runs with, and the name the person's computer is approved for.

const (
	ClaudeCode    App = "claude-code"
	Cursor        App = "cursor"
	VSCode        App = "vscode"
	ClaudeDesktop App = "claude-desktop"
	Other         App = "other"
)

The apps with their own steps. Other covers any MCP client that runs a local (stdio) server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL