agentleFS
Node804Node804/node804-freshservice-mcp/CLAUDE.md

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.

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
  1. Distinctive:

    Do not use third-party blogs, Stack Overflow, or other unofficial sources when adding or modifying tools.

    line 11
  2. Very specific:

    Add the async function in the appropriate tools/*.py module with @conditional_tool().

    line 28
  3. Very specific:

    Add the function name to TOOL_PERMISSIONS in config.py with the correct minimum mode (read, standard, full, or admin).

    line 29
  4. Very specific:

    If the tool returns rarely-changing data, add @cached_response() below @conditional_tool().

    line 30
  5. Very specific:

    All list endpoints must accept page and per_page parameters and return pagination metadata.

    line 31
  6. Very specific:

    Run pytest tests/ and verify the tool count in the smoke test.

    line 32

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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:

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.

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 in TOOL_PERMISSIONS with its minimum required mode. New tools that aren't in this map will be blocked by default.
  • client.py — Shared httpx.AsyncClient singleton with RateLimitTransport (429 retry + header tracking) and TTLCache / @cached_response for caching.
  • tools/ — One module per Freshservice domain (tickets, changes, agents, etc). Each tool uses @conditional_tool() and calls get_client() for HTTP access.
  • .claude-plugin/ — Claude Code plugin manifest (plugin.json, with the MCP server and userConfig inline) and a single-plugin marketplace (marketplace.json). skills/freshservice/SKILL.md is the Tool Selection Guide (imported below); keep it in step with tool behavior. On a version bump, update version and the uvx pin in plugin.json alongside pyproject.toml.

Adding a New Tool

  1. Add the async function in the appropriate tools/*.py module with @conditional_tool().
  2. Add the function name to TOOL_PERMISSIONS in config.py with the correct minimum mode (read, standard, full, or admin).
  3. If the tool returns rarely-changing data, add @cached_response() below @conditional_tool(). TTL is controlled by FRESHSERVICE_CACHE_TTL env var (default 3600s). Only override with @cached_response(ttl_seconds=N) if a tool genuinely needs a different TTL.
  4. All list endpoints must accept page and per_page parameters and return pagination metadata.
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.