summaryrefslogtreecommitdiff
path: root/mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-01-16 08:30:14 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-01-16 08:30:14 +0900
commit3fbb9a18372f2b6a675dd6c039ba52be76f3eeb4 (patch)
treeaa694a36cdd323a7853672ee7a2ba60409ac3b06 /mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md
updates
Diffstat (limited to 'mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md')
-rw-r--r--mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md80
1 files changed, 80 insertions, 0 deletions
diff --git a/mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md b/mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md
new file mode 100644
index 0000000..48e747f
--- /dev/null
+++ b/mcp-servers/token-gated-mcp-server/.claude/commands/setup-token-gate.md
@@ -0,0 +1,80 @@
+---
+allowed-tools: "Write, Edit, Bash(npm install*), Bash(npm init*), Read"
+description: Set up a complete token-gated MCP server with FastMCP and Radius SDK
+argument-hint: "[basic|full|testnet]"
+---
+
+## Setup Token-Gated MCP Server
+
+Create a complete token-gated MCP server project with the specified configuration level:
+
+- **basic**: Minimal setup with one protected tool
+- **full**: Complete setup with multiple tiers and examples
+- **testnet**: Configured for Radius Testnet deployment
+
+Configuration: $ARGUMENTS
+
+## Tasks
+
+1. **Initialize Project**
+ - Create package.json with required dependencies
+ - Set up TypeScript configuration
+ - Create directory structure
+
+2. **Install Dependencies**
+
+ ```json
+ {
+ "dependencies": {
+ "fastmcp": "^3.0.0",
+ "@radiustechsystems/mcp-sdk": "^1.0.0",
+ "zod": "^3.22.0",
+ "viem": "^2.31.0"
+ },
+ "devDependencies": {
+ "@types/node": "^20.0.0",
+ "tsx": "^4.0.0",
+ "typescript": "^5.0.0",
+ "prettier": "^3.0.0"
+ }
+ }
+ ```
+
+3. **Create Server Implementation**
+ - Main server file with token protection
+ - Example tools with different token requirements
+ - Proper error handling and responses
+
+4. **Environment Configuration**
+ - Create .env.example with required variables
+ - Set up for Radius Testnet (Chain ID: 1223953)
+ - Configure debug settings
+
+5. **Create Helper Scripts**
+ - Development script with hot reload
+ - Build script for production
+ - Test script for auth flow validation
+
+6. **Documentation**
+ - README with setup instructions
+ - Token tier documentation
+ - Testing guide with ngrok
+
+## Implementation Structure
+
+```text
+project/
+├── src/
+│ ├── index.ts # Main server file
+│ ├── tools/ # Tool implementations
+│ ├── config/ # Configuration
+│ └── types/ # Type definitions
+├── .env.example # Environment template
+├── package.json # Dependencies
+├── tsconfig.json # TypeScript config
+├── README.md # Documentation
+└── .claude/ # Claude Code config
+ └── CLAUDE.md # Project context
+```
+
+Based on the configuration level ($ARGUMENTS), create the appropriate setup with working examples and clear documentation.