Skip to content

Commit fcf832b

Browse files
committed
chore: bump version to 2.5.1 and add JSON schema validation to function inputs
1 parent 7a27fd0 commit fcf832b

File tree

7 files changed

+280
-445
lines changed

7 files changed

+280
-445
lines changed

.claude/settings.local.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git add:*)",
5+
"Bash(grep:*)",
6+
"Bash(ls:*)",
7+
"Bash(npm run:*)",
8+
"Bash(npm update)",
9+
"Bash(npm uninstall:*)",
10+
"Bash(npm install:*)"
11+
],
12+
"deny": []
13+
}
14+
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2.5.0] - 2025-04-11
8+
## [2.5.1] - 2025-05-06
99

1010
### Changed
1111

CLAUDE.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
15
# Strapi MCP Server Development Guide
26

3-
## Build Commands
4-
- `npm run build` - Build the project
5-
- `npm run build:watch` - Build with watch mode
6-
- `npm run start` - Start the server from build
7-
- `npm run dev` - Run with ts-node
8-
- `npm run dev:watch` - Run with nodemon watch mode
9-
- `npm run prepublishOnly` - Prepare for publishing
7+
## Development Commands
8+
- `npm run build` - Compile TypeScript to build/ directory and make executable
9+
- `npm run build:watch` - Build with watch mode for development
10+
- `npm run start` - Start the compiled server from build/index.js
11+
- `npm run dev` - Run directly with ts-node for development
12+
- `npm run dev:watch` - Run with nodemon for hot reload during development
13+
- `npm run prepublishOnly` - Prepare for publishing (runs build automatically)
14+
15+
## Testing
16+
- No formal test suite exists; test manually using MCP client
17+
- Use Claude Desktop or other MCP clients for integration testing
18+
- Configuration testing: create test config in `~/.mcp/strapi-mcp-server.config.json`
1019

1120
## Code Style Guidelines
1221
- **TypeScript**: Use strict mode with ES2022 target
@@ -20,10 +29,13 @@
2029
- **Formatting**: 2-space indentation, semicolons required
2130

2231
## Project Architecture
32+
- Single TypeScript file (`src/index.ts`) implements the entire MCP server
33+
- Built on @modelcontextprotocol/sdk with stdio transport for CLI usage
34+
- Configuration loaded from `~/.mcp/strapi-mcp-server.config.json`
2335
- Server implements Model Context Protocol (MCP) for Strapi CMS
2436
- Serves as middleware between AI assistants and Strapi instances
2537
- Handles schema introspection, REST operations, media uploads
26-
- Version 2.2.0 focuses on security and version compatibility
38+
- Current version focuses on security and version compatibility
2739
- Supports both Strapi v4 and v5 with automatic version detection
2840

2941
## Key Features

README.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A Model Context Protocol server for interacting with Strapi CMS. This server ena
1010

1111
## Changelog
1212

13-
### Version 2.3.0 - Documentation & Configuration Enhancement
13+
### Version 2.5.1 - Documentation & Configuration Enhancement
1414

1515
- 📚 Added comprehensive project documentation in CLAUDE.md
1616
- ⚙️ Expanded configuration options with better version detection
@@ -20,23 +20,7 @@ A Model Context Protocol server for interacting with Strapi CMS. This server ena
2020
- 🐛 Fixed version parsing from different format patterns
2121
- 🔍 Improved error messaging with version-specific guidance
2222

23-
### Version 2.2.0 - Security & Version Handling Update
24-
25-
- 🔒 Added strict write protection policy
26-
- 🔄 Enhanced version format support (5.\* , 4.1.5, v4, etc.)
27-
- 📚 Integrated documentation into server capabilities
28-
- 🚫 Removed connect prompt (now in capabilities)
29-
- ⚡ Improved error handling and validation
30-
- 🔍 Added version-specific differences guide
31-
- 📋 Enhanced server capabilities documentation
32-
33-
### Version 2.1.0
34-
35-
- Improved compatibility with both Strapi v4 and v5
36-
- Removed automatic validation to support different data structures between versions
37-
- Enhanced error messages with version-specific hints
38-
- Simplified request handling to give clients more control
39-
- Updated documentation with clear examples for both versions
23+
For complete version history, see [CHANGELOG.md](./CHANGELOG.md).
4024

4125
## Features
4226

@@ -61,7 +45,7 @@ You can use this server directly with npx in your Claude Desktop configuration:
6145
"mcpServers": {
6246
"strapi": {
6347
"command": "npx",
64-
"args": ["-y", "@bschauer/[email protected].0"]
48+
"args": ["-y", "@bschauer/[email protected].1"]
6549
}
6650
}
6751
}

0 commit comments

Comments
 (0)