node804-freshservice-mcp
CLAUDE.md1 starsChanged 6 months agoMITView on GitHub
Project-level instructions for Claude Code when working on this repository. The only documentation source for Freshservice API endpoints, parameters, response formats, and behavior is: https://api.freshservice.com/ Do not use third-party blogs, Stack Overflow, or other unofficial sources when adding or modifying tools. Always verify endpoint paths, required fields, query parameters, and response schemas against the official docs before writing code. This is an MCP (Model Context Protocol) server that wraps the Freshservice REST API v2 with permission-based tool gating. The FRESHSERVICE_MODE…
- Installs packages
In this repositoryOne other file it gives its agents.
- freshserviceSkill
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Do not use third-party blogs, Stack Overflow, or other unofficial sources when adding or modifying tools.
- Very specific: line 28
Add the async function in the appropriate tools/*.py module with @conditional_tool().
- Very specific: line 29
Add the function name to TOOL_PERMISSIONS in config.py with the correct minimum mode (read, standard, full, or admin).
- Very specific: line 30
If the tool returns rarely-changing data, add @cached_response() below @conditional_tool().
- Very specific: line 31
All list endpoints must accept page and per_page parameters and return pagination metadata.
- Very specific: line 32
Run pytest tests/ and verify the tool count in the smoke test.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
CLAUDE.md
Project-level instructions for Claude Code when working on this repository.
Authoritative API Reference
The only documentation source for Freshservice API endpoints, parameters, response formats, and behavior is:
Do not use third-party blogs, Stack Overflow, or other unofficial sources when adding or modifying tools. Always verify endpoint paths, required fields, query parameters, and response schemas against the official docs before writing code.
Project Overview
This is an MCP (Model Context Protocol) server that wraps the Freshservice REST API v2 with permission-based tool gating. The FRESHSERVICE_MODE environment variable controls which tools are exposed to the LLM.
Key Architecture
- src-layout Python package using hatchling build backend
server.py— FastMCP instance +conditional_tool()decorator. Tool modules are imported at the bottom to avoid circular imports.config.py— Every tool function name must be listed inTOOL_PERMISSIONSwith its minimum required mode. New tools that aren't in this map will be blocked by default.client.py— Sharedhttpx.AsyncClientsingleton withRateLimitTransport(429 retry + header tracking) andTTLCache/@cached_responsefor caching.tools/— One module per Freshservice domain (tickets, changes, agents, etc). Each tool uses@conditional_tool()and callsget_client()for HTTP access..claude-plugin/— Claude Code plugin manifest (plugin.json, with the MCP server anduserConfiginline) and a single-plugin marketplace (marketplace.json).skills/freshservice/SKILL.mdis the Tool Selection Guide (imported below); keep it in step with tool behavior. On a version bump, updateversionand theuvxpin inplugin.jsonalongsidepyproject.toml.
Adding a New Tool
- Add the async function in the appropriate
tools/*.pymodule with@conditional_tool(). - Add the function name to
TOOL_PERMISSIONSinconfig.pywith the correct minimum mode (read,standard,full, oradmin). - If the tool returns rarely-changing data, add
@cached_response()below@conditional_tool(). TTL is controlled byFRESHSERVICE_CACHE_TTLenv var (default 3600s). Only override with@cached_response(ttl_seconds=N)if a tool genuinely needs a different TTL. - All list endpoints must accept
pageandper_pageparameters and return pagination metadata. - Run
pytest tests/and verify the tool count in the smoke test.
Tool Selection Guide
The guide to which tools to call (convenience tools, service requests, filter syntax, write safety, pagination, cache) lives in skills/freshservice/SKILL.md, which ships to plugin users. It is the single copy; update it there when tool behavior changes.
@skills/freshservice/SKILL.md
Testing
pip install -e ".[dev]"
pytest tests/Tests use monkeypatch to set fake credentials. No real API calls are made in tests.
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.

