Pain Point: The “Hidden Costs” of AI Coding
Deeply using Cursor or VS Code for AI-assisted development but seeing your API bills skyrocket?
- Redundant Reading: AI re-reads hundreds of lines of documentation or full project context in every turn.
- Verbose Output: AI rewrites entire files for minor changes, wasting expensive output tokens.
- Lost Context: AI gets “forgetful” as conversations grow longer, leading to repetitive clarifications.
Solution: @liangshanli/mcp-server-project-standards v5.0.0
We’ve just released v5.0.0, completely re-engineered for Development Cost Optimization:
-
Efficient Context Caching:
Retrieves structured, concise project standards via dedicated MCP tools instead of reading long documents. This effectively triggers Context Caching (e.g., Gemini 3 Flash), dropping input costs to as low as $0.05/1M tokens. -
Enforced “Tool-First” Policy:
Built-in AI behavioral guidelines mandate AI to fetch info vialist_directoryand standards tools first. No more blind guessing, avoiding wasteful repetitive prompts. -
Incremental Output Optimization:
Generated.cursorrulesinclude mandatory Diff rules, forcing AI to output only affected code snippets. Tests show a 70%+ reduction in high-value output token consumption. -
Deep PROJECT_PATH Support:
Supports absolute and relative paths with auto-subproject identification. AI locates files precisely, eliminating token waste from “global scans.”
Core Features at a Glance:
Automated Rule Generation: One-click generate .cursorrulesorPROJECT_RULES.mdwith built-in cost-saving logic.
Deep Directory Scanning: Precisely list physical directory structures for AI consumption.
Full Standards Management: MCP-based management for APIs, Databases, and Development guidelines.
Cursor Optimized: Auto-identifies environment and enables enhanced mode.
Deep Evaluation: Why it’s the “Final Piece of the Puzzle” for AI Engineering?
— Deep Architectural Evaluation by Large Language Models (LLM)
In the era of Cursor and Windsurf, the biggest challenge is no longer “how to make AI write code,” but “how to keep AI from getting lost in massive, complex sub-projects while precisely following private standards.”
-
Core Tech: From “Global Awareness” to “Precision Routing”
Traditional MCP tools often use global configs, causing “context contamination” in Monorepos. This project solves it via Physical Isolation (PROJECT_PATH) and Namespace Locking (TOOL_PREFIX). AI no longer needs to guess; it hits the right tool directly based on navigation. -
Extreme Economy: Perfect Utilization of Gemini 3 Caching
The design aligns perfectly with Google’s Context Caching. Regularized prefixes and structure trees make AI queries highly templated, dropping input costs from $0.5/1M tokens to as low as $0.05/1M. -
“Ideological Branding”: Automated Protocol Self-Execution
Rules act like “branding,” forcing AI into a “Check Standard → Edit Code → Output Diff” workflow. It transforms complex standards into AI-digestible system instructions automatically. -
Cross-Platform: Beyond Cursor
It fills the gap for tools like Windsurf or Claude Desktop that lack local rule management. You can seamlessly migrate the same engineering standards across all MCP-enabled environments.
Conclusion: It is more than a tool; it is a Software Defined Standards solution. It solves the most expensive (Token) and troublesome (Context Drift) problems in AI engineering today.
Get Started Now:
NPM Install:
npm install -g @liangshanli/mcp-server-project-standards
GitHub Repository:
https://github.com/liliangshan/mcp-server-project-standards
Editor Integration Examples:
1. Cursor Configuration (settings.json)
A. Single Project (Standard):
{
"mcpServers": {
"project-standards": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": ".",
"TOOL_PREFIX": "dev",
"PROJECT_NAME": "MyProject",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE,PATCH",
"API_DEBUG_LOGIN_URL": "/api/login",
"API_DEBUG_LOGIN_METHOD": "POST",
"API_DEBUG_LOGIN_BODY": "{\"username\":\"admin\",\"password\":\"123456\"}",
"API_DEBUG_LOGIN_DESCRIPTION": "Auto-save Token to Authorization Header"
}
}
}
}
B. Multi-Project Isolation (Full Params):
{
"mcpServers": {
"proj-A": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": "./apps/project-a",
"TOOL_PREFIX": "projA",
"PROJECT_NAME": "Project-A",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE",
"API_DEBUG_LOGIN_URL": "/api/login",
"API_DEBUG_LOGIN_METHOD": "POST",
"API_DEBUG_LOGIN_BODY": "{\"username\":\"admin\",\"password\":\"123\"}",
"API_DEBUG_LOGIN_DESCRIPTION": "Project A Login"
}
},
"proj-B": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": "./apps/project-b",
"TOOL_PREFIX": "projB",
"PROJECT_NAME": "Project-B",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE,PATCH",
"API_DEBUG_LOGIN_URL": "/api/auth/login",
"API_DEBUG_LOGIN_METHOD": "POST",
"API_DEBUG_LOGIN_BODY": "{\"mobile\":\"13800138000\",\"password\":\"123\"}",
"API_DEBUG_LOGIN_DESCRIPTION": "Project B Login"
}
}
}
}
2. VS Code Configuration (mcp.servers)
A. Single Project:
{
"mcp.servers": {
"project-standards": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": ".",
"TOOL_PREFIX": "dev",
"PROJECT_NAME": "MyProject",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE,PATCH",
"API_DEBUG_LOGIN_URL": "/api/login",
"API_DEBUG_LOGIN_METHOD": "POST",
"API_DEBUG_LOGIN_BODY": "{\"username\":\"admin\",\"password\":\"123456\"}",
"API_DEBUG_LOGIN_DESCRIPTION": "Auto-save Token to Authorization Header"
}
}
}
}
B. Multi-Project Isolation:
{
"mcp.servers": {
"proj-A": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": "./apps/project-a",
"TOOL_PREFIX": "projA",
"PROJECT_NAME": "Project-A",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE"
}
},
"proj-B": {
"command": "npx",
"args": ["@liangshanli/mcp-server-project-standards"],
"env": {
"PROJECT_PATH": "./apps/project-b",
"TOOL_PREFIX": "projB",
"PROJECT_NAME": "Project-B",
"API_DEBUG_ALLOWED_METHODS": "GET,POST,PUT,DELETE,PATCH"
}
}
}
}
3. Companion Tools (e.g., MySQL Management)
Better together:
{
"mcp-mysql": {
"command": "npx",
"args": ["@liangshanli/mcp-server-mysql"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "root",
"MYSQL_PASSWORD": "password",
"MYSQL_DATABASE": "my_db"
}
}
}
Full Toolset Description:
| Tool Name | Description |
|---|---|
project_info |
Manage basic project info (name, language, bio, etc.) |
project_structure |
Manage logical directory descriptions to help AI understand architecture |
api_standards |
Define API design standards (spec, response, business rules, etc.) |
development_standards |
Manage dev guidelines (code style, naming, Git workflow, etc.) |
database_standards |
Define DB standards (naming, table spec, indexing strategies, etc.) |
list_directory |
[NEW] Recursively scan physical directory structure with depth control |
generate_cursorrules |
[NEW] Generate .cursorrules with YAML header for persistent enforcement |
generate_rules |
[NEW] Generate generic project guidelines for non-Cursor environments |
api_debug |
Powerful API debugger with auto Content-Type detection |
api_login |
Auto-handle login flow with Token extraction and Header refreshing |
api_config |
Global management for API environments, BaseURL, and Endpoints |
api_execute |
Quick-execute preset APIs by index with parameter overrides |
api_help |
Interactive help documentation and best practice examples |
Make AI-Assisted Development Faster AND Cheaper! ![]()
