dataverse-mcp CLAUDE.md

dataverse-mcp CLAUDE.md is an instructions file for coding agents from ryanmichaeljames/dataverse-mcp. It costs 924 tokens per session, scanned A, original, MIT.

A set of project instructions for building and maintaining a Python server that connects coding agents to Microsoft Dataverse, a business-data service.

In plain words
What is it for?
Use it when changing the Dataverse server, its tools, data models, or API behavior.
Why use it?
It gives contributors shared rules for tool names, input validation, HTTP requests, responses, errors, and safety annotations.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ryanmichaeljames/dataverse-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/ryanmichaeljames/dataverse-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dataverse-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ryanmichaeljames/dataverse-mcp/claude-md.svg)](https://agentmods.dev/instructions/ryanmichaeljames/dataverse-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ryanmichaeljames/dataverse-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/ryanmichaeljames/dataverse-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 924 This file is loaded in full into every session.
When invoked 924 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00924 $0.00924
Opus 5 $0.00462 $0.00462
Sonnet 5 $0.00185 $0.00185
Haiku 4.5 $0.00092 $0.00092

Measured 3d ago against content hash 224b5ed3ce77, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dataverse-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dataverse-mcp

Purpose

This repository is a Python MCPServer (mcp.server.mcpserver) server for Microsoft Dataverse (Web API v9.2), with tools implemented under src/dataverse_mcp/tools/.

Keep These Invariants

  • Python 3.10+, Pydantic v2, mcp[cli], httpx>=0.20.0,<1.0
  • Follow existing project patterns; do not introduce new architectural styles without clear need
  • Tool modules stay domain-scoped (solutions.py, tables.py, metadata.py, environments.py)
  • Use async httpx patterns already established in this codebase

Tool Design Rules

  • Tool names: dataverse_{verb}_{noun}
  • Input models: {Action}{Resource}Input in src/dataverse_mcp/models.py
  • Input models must use ConfigDict(str_strip_whitespace=True, extra='forbid')
  • Use Field(...) constraints/descriptions on public tool inputs
  • Set tool annotations truthfully:
    • readOnlyHint=True only for read operations
    • destructiveHint=True for delete operations
    • idempotentHint=True for GET/PUT/DELETE style behavior
    • openWorldHint=True

Response and Error Contract

  • Every tool returns str containing JSON (no Markdown)
  • Do not raise uncaught exceptions from tools
  • HTTP/API failures should return:
{"error": true, "message": "Actionable message"}
  • Catch httpx.HTTPStatusError before broad exceptions
  • Include count on list-style responses
  • Include has_more where pagination applies

Dataverse-Specific Conventions

  • Use entity_set_name where table collection names are required
  • Prefer explicit select in queries to keep payloads small
  • Default paging should remain conservative (top=50 unless tool-specific needs differ)
  • Navigation properties in expand are case-sensitive
  • Use lowercase logical names where Dataverse expects logical names
  • The Dataverse base URL must be supplied per call via dataverse_url; there is no server-side fallback

Security and Config Hygiene

  • Never hardcode or commit credentials, tenant IDs, client IDs, or real org URLs
  • Use generic placeholders in docs/examples (yourorg, your-tenant-id, your-client-id)
  • Keep authentication env-driven (DATAVERSE_AUTH_TYPE supports interactive and azure_cli)
  • Write/delete behavior is controlled by server env flags (DATAVERSE_ALLOW_WRITE, DATAVERSE_ALLOW_DELETE)

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 81 lines · 924 tokens per session scan A 224b5ed3ce77

Subscribe to this mod's changes

dataverse-mcp CLAUDE.md is an instructions file published in the GitHub repository ryanmichaeljames/dataverse-mcp (2 stars, last pushed 9d ago), licensed MIT. It adds 924 tokens to every session, about $0.0046 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.