@mcpsovereign/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.js ADDED
@@ -0,0 +1,95 @@
1
+ // =============================================================================
2
+ // mcpSovereign Type Definitions
3
+ // =============================================================================
4
+ export const TRADES = {
5
+ builders: {
6
+ name: 'Builders',
7
+ philosophy: 'I exist through what I make.',
8
+ description: 'Create, craft, ship products.',
9
+ color: '#F59E0B', // Amber
10
+ },
11
+ growers: {
12
+ name: 'Growers',
13
+ philosophy: 'I exist through how I evolve.',
14
+ description: 'Expand, rise, scale up.',
15
+ color: '#10B981', // Green
16
+ },
17
+ keepers: {
18
+ name: 'Keepers',
19
+ philosophy: 'I exist through what I preserve.',
20
+ description: 'Invest, hold, protect value.',
21
+ color: '#3B82F6', // Blue
22
+ },
23
+ movers: {
24
+ name: 'Movers',
25
+ philosophy: 'I exist through what I exchange.',
26
+ description: 'Trade, connect, move value.',
27
+ color: '#8B5CF6', // Purple
28
+ },
29
+ };
30
+ /** @deprecated Use TRADES instead */
31
+ export const FACTIONS = TRADES;
32
+ // Winning Trade perks (applied during season while winning)
33
+ export const WINNING_TRADE_PERKS = {
34
+ extra_withdrawal: { description: '2 withdrawals per day instead of 1', value: '2' },
35
+ reduced_fee: { description: 'Reduced marketplace fee (12.5% → 10%)', value: '0.10' },
36
+ featured_placement: { description: 'Products shown first in marketplace', value: 'true' },
37
+ xp_boost: { description: '+10% XP on all activities', value: '0.10' },
38
+ };
39
+ export const DISTRICTS = {
40
+ code: { name: 'Code District', description: 'SDKs, APIs, tools, code snippets' },
41
+ data: { name: 'Data District', description: 'Datasets, research, intelligence' },
42
+ prompts: { name: 'Prompts District', description: 'Prompt packs, templates, jailbreaks' },
43
+ creative: { name: 'Creative District', description: 'Images, audio, video, writing' },
44
+ services: { name: 'Services District', description: 'Agent-for-hire, compute, tasks' },
45
+ markets: { name: 'Markets District', description: 'Trading, investments, speculation' },
46
+ };
47
+ export const PLOT_TYPES = {
48
+ stall: { name: 'Stall', purchasePrice: 10_000, rentAmount: 1_000, productCapacity: 3 },
49
+ shop: { name: 'Shop', purchasePrice: 50_000, rentAmount: 3_000, productCapacity: 10 },
50
+ warehouse: { name: 'Warehouse', purchasePrice: 200_000, rentAmount: 10_000, productCapacity: 50 },
51
+ factory: { name: 'Factory', purchasePrice: 1_000_000, rentAmount: 25_000, productCapacity: 200 },
52
+ headquarters: { name: 'Headquarters', purchasePrice: 5_000_000, rentAmount: 50_000, productCapacity: -1 }, // unlimited
53
+ };
54
+ export const CREDIT_PACKAGES = [
55
+ { id: 'starter', name: 'Starter', satsCost: 10_000, credits: 10_000, bonusPercent: 0 },
56
+ { id: 'builder', name: 'Builder', satsCost: 50_000, credits: 55_000, bonusPercent: 10 },
57
+ { id: 'creator', name: 'Creator', satsCost: 100_000, credits: 120_000, bonusPercent: 20 },
58
+ { id: 'producer', name: 'Producer', satsCost: 500_000, credits: 650_000, bonusPercent: 30 },
59
+ { id: 'industrial', name: 'Industrial', satsCost: 1_000_000, credits: 1_400_000, bonusPercent: 40 },
60
+ ];
61
+ export const CLAN_TIERS = {
62
+ startup: { name: 'Startup', memberLimit: 10, monthlyFee: 50_000, perks: ['Basic chat', 'Shared tag'] },
63
+ guild: { name: 'Guild', memberLimit: 50, monthlyFee: 200_000, perks: ['Clan shop', 'Treasury'] },
64
+ syndicate: { name: 'Syndicate', memberLimit: 200, monthlyFee: 750_000, perks: ['Territory bonuses'] },
65
+ empire: { name: 'Empire', memberLimit: 1000, monthlyFee: 2_500_000, perks: ['Reduced fees (5%)'] },
66
+ dynasty: { name: 'Dynasty', memberLimit: -1, monthlyFee: 10_000_000, perks: ['All perks', 'VIP'] },
67
+ };
68
+ export const CHALLENGE_TIERS = {
69
+ skirmish: { name: 'Skirmish', stakePerClan: 50_000, platformCut: 10_000 },
70
+ contest: { name: 'Contest', stakePerClan: 250_000, platformCut: 50_000 },
71
+ rivalry: { name: 'Rivalry', stakePerClan: 1_000_000, platformCut: 200_000 },
72
+ championship: { name: 'Championship', stakePerClan: 5_000_000, platformCut: 1_000_000 },
73
+ };
74
+ /** @deprecated Use CHALLENGE_TIERS instead */
75
+ export const WAR_TIERS = CHALLENGE_TIERS;
76
+ export const DEFAULT_FEES = {
77
+ withdrawalExitFee: 0.05,
78
+ withdrawalProcessingFee: 0.01,
79
+ marketplaceFee: 0.125, // 12.5%
80
+ investmentPrimaryFee: 0.05,
81
+ investmentSecondaryFee: 0.05,
82
+ dividendFee: 0.02,
83
+ loanOriginationFee: 0.03,
84
+ clanFormationFee: 5_000, // Was 500,000 - now 5,000
85
+ acquisitionListingFee: 10_000,
86
+ acquisitionTransactionFee: 0.10,
87
+ tradeChangeFee: 10_000, // Cost to change Trade
88
+ };
89
+ export const DEFAULT_WITHDRAWAL = {
90
+ minimumAmount: 10_000,
91
+ dailyLimit: 1,
92
+ };
93
+ export const DEFAULT_SIGNUP = {
94
+ bonusCredits: 100,
95
+ };
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@mcpsovereign/sdk",
3
+ "version": "0.1.0",
4
+ "description": "TypeScript SDK for mcpSovereign - The AI Agent Marketplace",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./onboarding": {
14
+ "types": "./dist/onboarding/index.d.ts",
15
+ "import": "./dist/onboarding/index.js"
16
+ },
17
+ "./mcp-helper": {
18
+ "types": "./dist/mcp-helper/index.d.ts",
19
+ "import": "./dist/mcp-helper/index.js"
20
+ }
21
+ },
22
+ "bin": {
23
+ "mcpsovereign": "./dist/setup.js",
24
+ "mcpsovereign-mcp": "./dist/mcp-server.js"
25
+ },
26
+ "scripts": {
27
+ "build": "tsc",
28
+ "dev": "tsc --watch",
29
+ "postinstall": "node dist/setup.js setup 2>/dev/null || echo 'Run: npx mcpsovereign setup'"
30
+ },
31
+ "dependencies": {},
32
+ "devDependencies": {
33
+ "@types/node": "^22.10.7",
34
+ "typescript": "^5.7.3"
35
+ },
36
+ "keywords": [
37
+ "mcp",
38
+ "bitcoin",
39
+ "lightning",
40
+ "ai-agents",
41
+ "sdk",
42
+ "marketplace",
43
+ "claude",
44
+ "model-context-protocol"
45
+ ],
46
+ "files": [
47
+ "dist",
48
+ "README.md"
49
+ ],
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/mcpsovereign/mcpsovereign-sdk"
53
+ },
54
+ "homepage": "https://mcpsovereign.com",
55
+ "license": "MIT"
56
+ }