Initial commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "api-connector-marketplace",
|
||||
"owner": {
|
||||
"name": "Skill Porter User",
|
||||
"email": "user@example.com"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.",
|
||||
"version": "2.1.0"
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "api-connector",
|
||||
"description": "Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.",
|
||||
"source": ".",
|
||||
"strict": false,
|
||||
"author": "Converted from Gemini",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/user/api-connector"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"connect",
|
||||
"rest",
|
||||
"apis,",
|
||||
"manage",
|
||||
"authentication,"
|
||||
],
|
||||
"category": "general",
|
||||
"tags": [],
|
||||
"skills": [
|
||||
"."
|
||||
],
|
||||
"mcpServers": {
|
||||
"api-client": {
|
||||
"command": "node",
|
||||
"args": [
|
||||
"mcp-server/api-client.js"
|
||||
],
|
||||
"env": {
|
||||
"API_BASE_URL": "${API_BASE_URL}",
|
||||
"API_KEY": "${API_KEY}",
|
||||
"API_TIMEOUT": "${API_TIMEOUT}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
37
examples/before-after/api-connector-converted/GEMINI.md
Normal file
37
examples/before-after/api-connector-converted/GEMINI.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# API Connector - Gemini CLI Extension
|
||||
|
||||
Connect to REST APIs, manage authentication, and process responses.
|
||||
|
||||
## Features
|
||||
|
||||
- Make GET, POST, PUT, DELETE requests
|
||||
- Automatic authentication header management
|
||||
- JSON response parsing
|
||||
- Rate limiting and retry logic
|
||||
- Response caching
|
||||
|
||||
## Configuration
|
||||
|
||||
**Required:**
|
||||
- `API_KEY`: Your API authentication key
|
||||
|
||||
**Optional:**
|
||||
- `API_BASE_URL`: Base URL (default: https://api.example.com)
|
||||
- `API_TIMEOUT`: Timeout in ms (default: 30000)
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
"Get data from /users endpoint"
|
||||
"POST this JSON to /api/create"
|
||||
"Check the API status"
|
||||
```
|
||||
|
||||
## Safety
|
||||
|
||||
This extension operates in read-only mode:
|
||||
- Cannot execute bash commands
|
||||
- Cannot edit local files
|
||||
- Cannot write files to disk
|
||||
|
||||
Only makes HTTP requests to configured API endpoints.
|
||||
72
examples/before-after/api-connector-converted/SKILL.md
Normal file
72
examples/before-after/api-connector-converted/SKILL.md
Normal file
@@ -0,0 +1,72 @@
|
||||
---
|
||||
name: api-connector
|
||||
description: Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Glob
|
||||
- Grep
|
||||
- Task
|
||||
- WebFetch
|
||||
- WebSearch
|
||||
- TodoWrite
|
||||
- AskUserQuestion
|
||||
- SlashCommand
|
||||
- Skill
|
||||
- NotebookEdit
|
||||
- BashOutput
|
||||
- KillShell
|
||||
---
|
||||
|
||||
# api-connector - Claude Code Skill
|
||||
|
||||
Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.
|
||||
|
||||
## Configuration
|
||||
|
||||
This skill requires the following environment variables:
|
||||
|
||||
- `API_BASE_URL`: Base URL for API requests (default: https://api.example.com)
|
||||
- `API_KEY`: API authentication key **(required)**
|
||||
- `API_TIMEOUT`: Request timeout in milliseconds (default: 30000)
|
||||
|
||||
Set these in your environment or Claude Code configuration.
|
||||
|
||||
Connect to REST APIs, manage authentication, and process responses.
|
||||
|
||||
## Features
|
||||
|
||||
- Make GET, POST, PUT, DELETE requests
|
||||
- Automatic authentication header management
|
||||
- JSON response parsing
|
||||
- Rate limiting and retry logic
|
||||
- Response caching
|
||||
|
||||
## Configuration
|
||||
|
||||
**Required:**
|
||||
- `API_KEY`: Your API authentication key
|
||||
|
||||
**Optional:**
|
||||
- `API_BASE_URL`: Base URL (default: https://api.example.com)
|
||||
- `API_TIMEOUT`: Timeout in ms (default: 30000)
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
"Get data from /users endpoint"
|
||||
"POST this JSON to /api/create"
|
||||
"Check the API status"
|
||||
```
|
||||
|
||||
## Safety
|
||||
|
||||
This extension operates in read-only mode:
|
||||
- Cannot execute bash commands
|
||||
- Cannot edit local files
|
||||
- Cannot write files to disk
|
||||
|
||||
Only makes HTTP requests to configured API endpoints.
|
||||
|
||||
---
|
||||
|
||||
*This skill was converted from a Gemini CLI extension using [skill-porter](https://github.com/jduncan-rva/skill-porter)*
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "api-connector",
|
||||
"version": "2.1.0",
|
||||
"description": "Connect to REST APIs, manage authentication, and process responses. Use for API integration tasks.",
|
||||
"contextFileName": "GEMINI.md",
|
||||
"settings": [
|
||||
{
|
||||
"name": "API_BASE_URL",
|
||||
"description": "Base URL for API requests",
|
||||
"default": "https://api.example.com"
|
||||
},
|
||||
{
|
||||
"name": "API_KEY",
|
||||
"description": "API authentication key",
|
||||
"secret": true,
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "API_TIMEOUT",
|
||||
"description": "Request timeout in milliseconds",
|
||||
"default": "30000"
|
||||
}
|
||||
],
|
||||
"mcpServers": {
|
||||
"api-client": {
|
||||
"command": "node",
|
||||
"args": ["${extensionPath}/mcp-server/api-client.js"],
|
||||
"env": {
|
||||
"API_BASE_URL": "${API_BASE_URL}",
|
||||
"API_KEY": "${API_KEY}",
|
||||
"API_TIMEOUT": "${API_TIMEOUT}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"excludeTools": [
|
||||
"Bash",
|
||||
"Edit",
|
||||
"Write"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Usage Examples
|
||||
|
||||
Comprehensive usage examples and tutorials.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Technical Reference
|
||||
|
||||
Detailed API documentation and technical reference.
|
||||
Reference in New Issue
Block a user