Skip to content

Nomadic-Labs/claude-code-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polystate — Claude Code Plugin

Version 2.0+ — Live MCP connection to https://polystate-mcp-server.shy-surf-2fdf.workers.dev/mcp plus offline JSON fallbacks (no API key required for fallback).

Immigration & tax intelligence: 171 jurisdictions for crypto-tax and scoring, 100+ visa-program rows, curated residency and company formation catalogs.

MCP setup (live data)

  1. Obtain a Polystate API key (same key as for the MCP product / api_keys in Supabase).
  2. Export it before starting Claude Code:
export POLYSTATE_API_KEY='your-key-here'
  1. Install the plugin (or use --plugin-dir). The plugin ships .mcp.json: HTTP transport + Authorization: Bearer ${POLYSTATE_API_KEY}.
  2. Run /reload-plugins, then /mcp and confirm the polystate server is connected.

Without a key, skills still work using bundled data/*.json (older snapshot).

Install

This repo is its own Claude Code marketplace. Add it, then install the plugin:

/plugin marketplace add Nomadic-Labs/claude-code-plugin
/plugin install polystate@polystate

For live MCP data, get a free API key (100 requests/month) at https://polystate.io/developers and export it:

export POLYSTATE_API_KEY='psk_live_…'   # optional — skills fall back to bundled data without it

Then /reload-plugins and /mcp to confirm the polystate server is connected.

Test locally from a clone:

claude --plugin-dir ./claude-code-plugin

Skills

All skills are namespaced under /polystate:.

Skill Command Notes
Overview /polystate:polystate Setup, list commands
Visa /polystate:visa-check [passport] [dest] MCP: visa_check (ISO)
Tax /polystate:tax-compare [c1] [c2?] MCP: tax_compare (2 ISOs) or get_crypto_tax_treatment (1)
Jurisdiction /polystate:jurisdiction [country] MCP: compare_jurisdictions, get_crypto_tax_treatment, …
Residency /polystate:residency [country] MCP: get_residency_programs
LLC / formation /polystate:llc-setup [country] [type?] MCP: get_company_formation
Services / apply /polystate:polystate-apply [country?] MCP resource polystate://services/{ISO} when available; else https://polystate.io

Examples:

/polystate:visa-check SK TH
/polystate:tax-compare PT DE
/polystate:llc-setup US llc
/polystate:polystate-apply PA

Topic hint hook

When the plugin is enabled, hooks/UserPromptSubmit runs hooks/polystate-topic-hint.py on each prompt. If the text looks immigration/tax related, it injects a short reminder to use Polystate MCP or slash skills.

Jurisdiction Advisor agent

/agents → select "jurisdiction-advisor"

Uses MCP tools when connected, otherwise reads ${CLAUDE_PLUGIN_ROOT}/data/.

Data (offline bundle)

File Role
data/crypto-tax.json 171 jurisdictions
data/jurisdiction-scoring.json Scoring / QoL
data/visa-programs.json 104 program rows
data/residency-compare.json 27 curated entries
data/company-formation.json Company / LLC catalog

Refresh by copying newer JSON from polystate-mcp-server/data/ on branch chore/mcp-phase-2-v2 (or current main) and bumping the plugin version.

MCP server branch

The canonical MCP feature branch used for this phase is origin/chore/mcp-phase-2-v2 on polystate-mcp-server (tools include get_company_formation, country services resource, auth via Bearer).

About Polystate

👉 https://polystate.io — Consultations, applications, services.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages