Skip to content

Commit f628712

Browse files
committed
feat: enable write operations for Odoo data management
Fixes #5
1 parent b429e19 commit f628712

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ 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-
## [Unreleased]
8+
## [0.2.0] - 2025-06-19
9+
10+
### Added
11+
- **Write Operations**: Enabled full CRUD functionality with `create_record`, `update_record`, and `delete_record` tools (#5)
912

1013
### Changed
1114
- **Resource Simplification**: Removed query parameters from resource URIs due to FastMCP limitations - use tools for advanced queries (#4)
@@ -48,9 +51,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4851
- **Session Management**: Automatic credential injection and session handling
4952
- **Audit Logging**: Complete operation logging for security
5053

51-
### Limitations
52-
- **Read-Only**: Write operations (create, update, delete) not implemented
54+
## Limitations
5355
- **No Prompts**: Guided workflows not available
5456
- **Alpha Status**: API may change before 1.0.0
5557

56-
**Note**: This alpha release provides production-ready read operations for Odoo data access via AI assistants.
58+
**Note**: This alpha release provides production-ready data access for Odoo via AI assistants.

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
99
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)
1010

11-
An MCP server that enables AI assistants like Claude to interact with Odoo ERP systems. Access business data, search records, and work with Odoo through natural language.
11+
An MCP server that enables AI assistants like Claude to interact with Odoo ERP systems. Access business data, search records, create new entries, update existing data, and manage your Odoo instance through natural language.
1212

1313
## Features
1414

1515
- 🔍 **Search and retrieve** any Odoo record (customers, products, invoices, etc.)
16+
-**Create new records** with field validation and permission checks
17+
- ✏️ **Update existing data** with smart field handling
18+
- 🗑️ **Delete records** respecting model-level permissions
1619
- 📊 **Browse multiple records** and get formatted summaries
1720
- 🔢 **Count records** matching specific criteria
1821
- 📋 **Inspect model fields** to understand data structure
@@ -269,13 +272,22 @@ The HTTP endpoint will be available at: `http://localhost:8000/mcp/`
269272

270273
Once configured, you can ask Claude:
271274

275+
**Search & Retrieve:**
272276
- "Show me all customers from Spain"
273277
- "Find products with stock below 10 units"
274278
- "List today's sales orders over $1000"
275279
- "Search for unpaid invoices from last month"
276280
- "Count how many active employees we have"
277281
- "Show me the contact information for Microsoft"
278282

283+
**Create & Manage:**
284+
- "Create a new customer contact for Acme Corporation"
285+
- "Add a new product called 'Premium Widget' with price $99.99"
286+
- "Create a calendar event for tomorrow at 2 PM"
287+
- "Update the phone number for customer John Doe to +1-555-0123"
288+
- "Change the status of order SO/2024/001 to confirmed"
289+
- "Delete the test contact we created earlier"
290+
279291
## Available Tools
280292

281293
### `search_records`

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mcp-server-odoo"
7-
version = "0.1.2"
7+
version = "0.2.0"
88
description = "A Model Context Protocol server for Odoo ERP systems"
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)