connect

A command that configures an IDE to use a Gnosys server running somewhere else instead of starting one on the local computer.

In plain words
What is it for?
Use it to create configuration for Cursor or Claude Desktop, choose a project directory for Cursor, or print the configuration without writing files.
Why use it?
It removes the need to enter the remote server details manually in the IDE. An optional bearer token can be added for authenticated access.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/proticom/gnosys/connect
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00691
Opus 5 $0.00000 $0.00345
Sonnet 5 $0.00000 $0.00138
Haiku 4.5 $0.00000 $0.00069

Measured 2d ago against content hash 5424d37ee1ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

connect scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

wrote: /path/to/.cursor/mcp.json (bearer token included)
docs/commands/connect.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gnosys connect

Point an IDE at a remote Gnosys MCP server (central-server topology) instead of spawning a local one.

Usage

gnosys connect --url http://studio.tailnet.ts.net:7777/mcp
gnosys connect --url http://studio.tailnet.ts.net:7777/mcp --token "$GNOSYS_MCP_TOKEN"
gnosys connect --url http://studio.tailnet.ts.net:7777/mcp --ide claude-desktop
gnosys connect --url http://studio.tailnet.ts.net:7777/mcp --dir /path/to/project
gnosys connect --url http://studio.tailnet.ts.net:7777/mcp --print

Options

Option Description
--url <url> Required remote MCP URL
--token <token> Optional bearer token written as an Authorization header
--ide <ide> IDE config to write: cursor (default) or claude-desktop
--dir <dir> Project directory for Cursor config (default: current working directory)
--print Print the MCP config snippet instead of writing files

Behavior

  1. Builds a remote MCP entry from --url and optional --token.
  2. With --print, outputs JSON { mcpServers: { gnosys: ... } } and exits.
  3. Otherwise resolves --ide (claude-desktop or default cursor) and writes the client config via writeRemoteClientConfig.
  4. Cursor config uses --dir or process.cwd() as the project directory.
  5. Prints success message with written file path and restart reminder.
{
  "mcpServers": {
    "gnosys": {
      "url": "http://studio.tailnet.ts.net:7777/mcp"
    }
  }
}

When --token is set, the entry includes bearer authorization headers.

Write output

✓ Pointed cursor at http://studio.tailnet.ts.net:7777/mcp
  wrote: /path/to/.cursor/mcp.json  (bearer token included)
  Restart the IDE / MCP servers to pick it up.

Platform notes

Cursor — writes or merges into the project's .cursor/mcp.json under --dir (default cwd).

Claude Desktop — writes the Claude Desktop MCP config when --ide claude-desktop is set.

Restart the IDE or reload MCP servers after writing config.

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 87 lines · 0 tokens per session scan B 5424d37ee1ac

Subscribe to this mod's changes

connect is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 691 tokens. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.