@@ -29,6 +29,7 @@ This MCP (Model Context Protocol) Server provides seamless integration with the
2929
3030| Tool Name | Description |
3131| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
32+ | ` FIRST_STEP_get_api_script_guide ` | ** 🚀 Start here!** Loads comprehensive API script generation guide - call this tool first before using others. |
3233| ` refresh_api_catalog ` | Refreshes the API catalog by fetching the latest OpenAPI specification from the control plane. |
3334| ` search_api_operations ` | Search for operations using fuzzy matching across operation IDs, summaries, descriptions, and tags. |
3435| ` search_api_schemas ` | Search for schemas by name and description to find relevant data structures. |
@@ -65,7 +66,7 @@ Add the following to your `claude_desktop_config.json`:
6566 "command" : " uv" ,
6667 "args" : [" run" , " --directory" , " /path/to/your/cloned/control-plane-openapi-mcp" , " control-plane-openapi-mcp" ],
6768 "env" : {
68- "CONTROL_PLANE_URL" : " https://facetsdemo .console.facets.cloud" ,
69+ "CONTROL_PLANE_URL" : " https://<customername> .console.facets.cloud" ,
6970 "FACETS_USERNAME" : " <YOUR_USERNAME>" ,
7071 "FACETS_TOKEN" : " <YOUR_TOKEN>" ,
7172 "FACETS_PROFILE" : " default" ,
@@ -97,11 +98,10 @@ For credential setup, refer to the [Facets Authentication Guide](https://readme.
9798
9899## Usage Highlights
99100
100- - Use ` search_api_operations ` and ` search_api_schemas ` to find relevant endpoints using natural language
101- - Use specific load operations to get detailed parameter and response information
102- - Use ` call_control_plane_api ` to make actual API calls and get real data from your Facets environment
103- - Leverage the fuzzy search to find operations even with partial or approximate terms
104- - All results exclude deprecated operations for cleaner, more relevant responses
101+ - Uses ` search_api_operations ` and ` search_api_schemas ` to find relevant endpoints using natural language
102+ - Uses specific load operations to get detailed parameter and response information
103+ - Uses ` call_control_plane_api ` to make actual API calls and get real data from your Facets environment
104+ - Leverages the fuzzy search to find operations even with partial or approximate terms
105105
106106## API Coverage
107107
@@ -120,15 +120,15 @@ The server provides access to the complete Facets Control Plane API including:
120120When using with Claude, try these example prompts:
121121
122122```
123- "Show me all stack -related operations in the Facets API"
124- "What are the required parameters for creating a new stack ?"
125- "Find operations related to cluster deployments"
126- "Show me the Stack schema structure with all its properties"
127- "Generate a TypeScript interface for the Stack model"
128- "Get the current list of stacks from my environment"
129- "Show me details of a specific stack named 'my-production-stack '"
130- "What clusters are running in my Facets environment?"
131- "Create an example API call to get stack information"
123+ "Show me all project -related operations in the Facets API"
124+ "What are the required parameters for creating a new project ?"
125+ "Find operations related to environment deployments"
126+ "Show me the project schema structure with all its properties"
127+ "Generate a TypeScript interface for the project model"
128+ "Get the current list of projects from my environment"
129+ "Show me details of a specific project named 'my-production-project '"
130+ "What environments are running in my Facets environment?"
131+ "Create an example API call to get project information"
132132"Find all endpoints that handle artifact routing"
133133"What authentication methods are available in the API?"
134134```
@@ -155,24 +155,6 @@ When using with Claude, try these example prompts:
155155 .venv\S cripts\a ctivate # On Windows
156156 ```
157157
158- ### Running Tests
159-
160- ``` bash
161- # Run the example script to test functionality
162- uv run python example.py
163-
164- # Test direct tool imports
165- uv run python test_final.py
166-
167- # Test specific functionality
168- uv run python -c "
169- from control_plane_openapi_mcp.tools import search_api_operations
170- import json
171- result = search_api_operations('stack')
172- print(f'Found {len(json.loads(result)[\" operations\" ])} operations')
173- "
174- ```
175-
176158### Testing the MCP Server
177159
178160``` bash
@@ -210,34 +192,14 @@ control_plane_openapi_mcp/
210192
211193---
212194
213- ## Example Usage
214-
215- For comprehensive examples of API exploration and integration, check out the included scripts:
216-
217- - ** ` example.py ` ** : Demonstrates all available tools with real API data
218- - ** ` test_final.py ` ** : Validates functionality and shows expected results
219-
220- These examples show the complete workflow from API discovery to detailed operation analysis.
221-
222- ---
223-
224195## Architecture
225196
226197- ** ` SpecLoader ` ** : Fetches and processes OpenAPI specifications with JSON reference resolution
227198- ** ` SpecProcessor ` ** : Extracts operations and schemas while filtering deprecated endpoints
228199- ** ` SearchEngine ` ** : Provides fuzzy search capabilities with configurable matching thresholds
229200- ** ` OpenAPIService ` ** : Main service coordinating all components with intelligent caching
230201- ** ` SimpleCache ` ** : TTL-based caching for performance optimization
231- - ** MCP Tools** : Seven specialized tools exposing functionality to AI assistants
232-
233- ## Comparison with TypeScript Version
234-
235- This Python implementation provides similar functionality to the TypeScript ` @reapi/mcp-openapi ` but is:
236-
237- - ** Simpler** : Single API spec focus, no file system operations required
238- - ** Focused** : Specifically designed for Facets Control Plane integration
239- - ** Efficient** : Direct JSON processing with smart caching strategies
240- - ** Lightweight** : Fewer dependencies and cleaner abstractions
202+ - ** MCP Tools** : Specialized tools exposing functionality to AI assistants
241203
242204## License
243205
0 commit comments