feat: rebuild axanta-erp MCP server with FastMCP - #4
Draft
vidaunited wants to merge 2 commits into
Draft
Conversation
Rewrites the Axanta ERP MCP server following the mcp-builder skill guidelines: FastMCP framework, Pydantic input validation, tool annotations, lifespan-managed connection, proper pagination with offset/total metadata, actionable error messages, and namespaced tool names (axanta_ prefix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DabQMAvcuSTywVbemuNSsu
Adds one-command setup script, requirements.txt, Claude Desktop config template, and updated SKILL.md with streamlined install instructions. Users can now run `bash tools/mcp-servers/setup.sh` to install deps, configure credentials, and register the server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DabQMAvcuSTywVbemuNSsu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/mcp-servers/axanta_mcp_server.py) following themcp-builderskill's best practicesmcp.server.Serverto FastMCP framework with Pydantic input validation, tool annotations, and lifespan-managed connectionsskills/axanta-erp/SKILL.mdto reflect new namespaced tool names and updated install instructionsWhat changed
MCP Server (
axanta_mcp_server.py)mcp.server.Server(low-level)FastMCPwith lifespan context managerapp_lifespanwith clear error messagesBaseModelwithField()constraints andfield_validatortotal,count,offset,has_more,next_offsetsearch_records)axanta_search_records) to prevent conflictsreadOnlyHint,destructiveHint,idempotentHint,openWorldHintexcept Exceptionreturning raw errorsSkill file (
SKILL.md)pip install "mcp[cli]" pydanticaxanta_prefixed namesTest plan
python3 -c "import py_compile; py_compile.compile('tools/mcp-servers/axanta_mcp_server.py', doraise=True)"— syntax check passesAXANTA_URL,AXANTA_DB,AXANTA_USER,AXANTA_KEYenv vars and runclaude mcp add axanta-erp -- python3 tools/mcp-servers/axanta_mcp_server.py/mcpshowsaxanta-erpserver with all 12 toolsaxanta_get_inventory,axanta_get_customers,axanta_get_sales_summaryaxanta_create_record,axanta_update_recordoffsetparameter🤖 Generated with Claude Code
https://claude.ai/code/session_01DabQMAvcuSTywVbemuNSsu
Generated by Claude Code