swagger-navigator-mcp / rules
Cursor rule2 starsChanged 17 months agoMITView on GitHub
The Swagger Navigator MCP is a Model Context Protocol server for intelligent discovery and search of Swagger/OpenAPI endpoints. - Environment variables store sensitive data (API keys, tokens) - Configuration files should not contain secrets directly - Use ${VAR_NAME} syntax for environment variable substitution # Project Structure Guide The Swagger Navigator MCP is a Model Context Protocol server for intelligent discovery and search of Swagger/OpenAPI endpoints.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- .cursor/rules/testing-standards.mdcCursor rule
- .cursor/rules/typescript-standards.mdcCursor rule
The file
We split this project-structure.mdc into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Use ${VAR_NAME} syntax for environment variable substitution
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
alwaysApply: true
---
# Project Structure Guide
## Overview
The Swagger Navigator MCP is a Model Context Protocol server for intelligent discovery and search of Swagger/OpenAPI endpoints.
## Key Entry Points
- Main server: [index.ts](mdc:src/index.ts) - MCP server implementation with tools for API discovery
- Configuration loader: [loader.ts](mdc:src/config/loader.ts) - Handles YAML config files with environment variable substitution
- Environment utilities: [env-substitution.ts](mdc:src/utils/env-substitution.ts) - Secure environment variable substitution
## Directory Structure
```
src/
├── config/ # Configuration management
│ └── loader.ts # YAML config loading with env substitution
├── parsers/ # API specification parsers
│ └── swagger-parser.ts
├── types/ # TypeScript type definitions
│ ├── config.ts # Configuration schemas and validation
│ └── swagger.ts # OpenAPI/Swagger type definitions
├── utils/ # Utility functions
│ └── env-substitution.ts # Environment variable handling
└── index.ts # Main MCP server implementation
tests/ # Mirror src/ structure for tests
├── config/
├── utils/
└── setup.ts # Jest test configuration
```
## Configuration Flow
1. [loader.ts](mdc:src/config/loader.ts) reads CONFIG_PATH environment variable
2. Loads YAML configuration file
3. [env-substitution.ts](mdc:src/utils/env-substitution.ts) processes `${VAR}` placeholders
4. [config.ts](mdc:src/types/config.ts) validates the configuration schema
5. Runtime type detection enriches config with source types (http/file)
## Security Considerations
- Environment variables store sensitive data (API keys, tokens)
- Configuration files should not contain secrets directly
- Use `${VAR_NAME}` syntax for environment variable substitution
# Project Structure Guide
## Overview
The Swagger Navigator MCP is a Model Context Protocol server for intelligent discovery and search of Swagger/OpenAPI endpoints.
## Key Entry Points
- Main server: [index.ts](mdc:src/index.ts) - MCP server implementation with tools for API discovery
- Configuration loader: [loader.ts](mdc:src/config/loader.ts) - Handles YAML config files with environment variable substitution
- Environment utilities: [env-substitution.ts](mdc:src/utils/env-substitution.ts) - Secure environment variable substitution
## Directory Structure
```
src/
├── config/ # Configuration management
│ └── loader.ts # YAML config loading with env substitution
├── parsers/ # API specification parsers
│ └── swagger-parser.ts
├── types/ # TypeScript type definitions
│ ├── config.ts # Configuration schemas and validation
│ └── swagger.ts # OpenAPI/Swagger type definitions
├── utils/ # Utility functions
│ └── env-substitution.ts # Environment variable handling
└── index.ts # Main MCP server implementation
tests/ # Mirror src/ structure for tests
├── config/
├── utils/
└── setup.ts # Jest test configuration
```
## Configuration Flow
1. [loader.ts](mdc:src/config/loader.ts) reads CONFIG_PATH environment variable
2. Loads YAML configuration file
3. [env-substitution.ts](mdc:src/utils/env-substitution.ts) processes `${VAR}` placeholders
4. [config.ts](mdc:src/types/config.ts) validates the configuration schema
5. Runtime type detection enriches config with source types (http/file)
## Security Considerations
- Environment variables store sensitive data (API keys, tokens)
- Configuration files should not contain secrets directly
- Use `${VAR_NAME}` syntax for environment variable substitution
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

