Project, Jira, GitHub & MCP Setup
An agent can only test what it can reach. This page sets up a real practice project, then connects Claude Code to the three systems that a tester uses every day: the issue tracker, the test database, and the code host. The tutorial gives each connection only the access that the work needs.
15 min read15 মিনিটে পড়া যায় · 11 sections11টি সেকশন · 20 sources20টি সোর্স · updated Nov 2026আপডেট: Nov 2026
The practice project
The practice project is dMoney, in the public repository kawsar-95/genAI-project. dMoney is a mobile financial service: a REST API and a web frontend.
| Part | Folder | Stack |
|---|---|---|
| API | dmoney-transaction-api/ | Node.js, Express, Sequelize, MySQL |
| Web app | dmoney-web-react/ | Next.js 15, TypeScript, MUI, Tailwind 4 |
| Database dump | sql_scripts/ | A MySQL dump of dmoneydb with schema and seed data |
| Claude setup | .claude/, .mcp.json, one CLAUDE.md per project | Skills, subagents, a hook, and the project MCP servers |
How the parts fit. The web app calls the API. The API reads and writes the MySQL database dmoneydb. Claude Code works on all three: it reads the code, drives the web app, queries the database, and reads tickets.
What this page sets up. Three connections from Claude Code, in this order of risk:
- Jira, through the
jiraserver in.mcp.json. - The test database, through the
dmoney-dbserver in.mcp.json. - GitHub, through the
ghCLI. Theunderstand-taskandpr-reviewskills use it.
A practice target only
The README says that dMoney has bugs and security flaws on purpose. It says: do not deploy it to production or expose it to the internet. Run it on your own machine only.
Where these facts come from
The facts about dMoney come from the repository files at commit 51db34a: README.md, .mcp.json, .claude/settings.json, the two CLAUDE.md files, the two .env.example files, and the two package.json files. They have no cite. The dMoney Codebase page gives the full tour of the code, and the Case Study shows the workspace in use.
সহজ English
The practice project is called dMoney. It is a mobile money service. It has two parts: an API (the server that does the work) and a web app (the pages that people use). A MySQL database stores the data.
- The API is in
dmoney-transaction-api/. - The web app is in
dmoney-web-react/. sql_scripts/has a copy of the database, with its tables and sample data..claude/,.mcp.json, and theCLAUDE.mdfiles hold the Claude Code setup.
This page connects Claude Code to three systems: Jira, the test database, and GitHub. GitHub uses the gh command-line tool.
The README warns that dMoney has bugs and security holes on purpose. Never put it on the internet. Run it only on your own computer.
These facts come from the files of the repository. The dMoney Codebase page explains the code in detail.
বাংলা ব্যাখ্যা
Practice project-টির নাম dMoney। এটি একটি mobile financial service: একটি REST API আর একটি web frontend। Data থাকে MySQL database dmoneydb-এ।
- API আছে
dmoney-transaction-api/folder-এ (Node.js, Express, Sequelize, MySQL)। - Web app আছে
dmoney-web-react/folder-এ (Next.js 15, TypeScript, MUI, Tailwind 4)। sql_scripts/-এ database-এর একটি MySQL dump আছে, schema আর seed data সহ।.claude/,.mcp.jsonএবং প্রতিটি project-এরCLAUDE.md-এ Claude Code-এর setup আছে।
Web app API-কে call করে, আর API database-এ পড়ে ও লেখে। এই পেজে আপনি Claude Code-কে তিনটি system-এর সাথে যুক্ত করবেন: Jira, test database এবং GitHub (gh CLI দিয়ে)।
README সতর্ক করে: dMoney-তে ইচ্ছা করে bug আর security flaw রাখা হয়েছে। এটি production-এ deploy করবেন না, internet-এও খোলা রাখবেন না। শুধু নিজের computer-এ চালান। এই তথ্যগুলো repository-র file থেকে নেওয়া। পুরো code-এর বর্ণনা dMoney Codebase পেজে আছে।
Install and run dMoney
Prerequisites. Node.js 20.x or newer, npm, and MySQL 8.x or a compatible MariaDB. You need a Stripe test account only for the bank cash-in feature. SMTP is optional, because the API also prints OTPs to its console. If a step needs a tool that you do not have, read along and come back later.
1. Clone and create the database. Clone the repository, then create the database:
CREATE DATABASE dmoneydb;2. Restore the dump. Import sql_scripts/local-dmoneydb-202604201925.sql into dmoneydb with any MySQL client. The dump was exported on Windows, so its table names are lowercase. On Linux, follow the README's rename step before the import. Restoring is optional: with an empty dmoneydb, the API creates the tables and seeds the test accounts on first start.
3. Configure the API. In dmoney-transaction-api/, copy .env.example to both .env and .env.dev. db.js reads .env.dev, and the rest of the code reads .env. Set the same database values in both files:
DB_HOST=localhost
DB_NAME=dmoneydb
DB_USER=<your-mysql-user>
DB_PASSWORD=<your-mysql-password>4. Start the API. Run npm install, then npm run dev (nodemon). The API listens on PORT, default 5000. Check it with GET http://localhost:5000/.
5. Configure and start the web app. In dmoney-web-react/, copy .env.example to .env. Set NEXT_PUBLIC_API_URL, NEXT_PUBLIC_SECRET_KEY, and NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY from the README and your own Stripe test account. Run npm install and npm run dev. The app opens at http://localhost:3000.
6. Find the test accounts. They are in the "Test accounts" section of the README and in dmoney-transaction-api/endpoints.md. For an Agent, Customer, or Merchant login, the OTP shows in the API console.
The tutorial's advice
The README and the env files hold practice values. Keep your own .env files out of git, and never paste their values into a prompt, a ticket, or a page. This page shows only placeholders such as <your-mysql-password>.
সহজ English
You need Node.js 20 or newer, npm, and MySQL 8 (or MariaDB). Stripe is only for the bank cash-in feature. Email setup is optional, because the API prints one-time codes (OTPs) in its console. If you lack a tool, just read along.
- Clone the repository. Create a database called
dmoneydb. - Load the dump file from
sql_scripts/into it. On Linux, follow the rename step in the README first, because the table names are lowercase. You can skip the dump: with an empty database, the API creates the tables and test accounts itself. - In the API folder, copy
.env.exampleto.envand to.env.dev. Put the same database values in both. - Start the API with
npm run dev. It runs on port 5000 by default. - In the web app folder, copy
.env.exampleto.envand fill it in. Start it withnpm run dev. Openhttp://localhost:3000. - The test accounts are in the README and in
endpoints.md. For an Agent, Customer, or Merchant login, the code shows in the API console.
The tutorial's advice: keep your .env files out of git. Never paste their values into a prompt.
বাংলা ব্যাখ্যা
যা লাগবে: Node.js 20.x বা নতুন, npm, আর MySQL 8.x (বা compatible MariaDB)। Stripe test account শুধু bank cash-in feature-এর জন্য লাগে। SMTP ঐচ্ছিক, কারণ API তার console-এ OTP দেখায়। কোনো tool না থাকলে শুধু পড়ে যান।
- Repository clone করুন, তারপর
CREATE DATABASE dmoneydb;দিয়ে database বানান। sql_scripts/local-dmoneydb-202604201925.sqldump-টিdmoneydb-এ import করুন। Dump-টি Windows-এ export করা, তাই table name ছোট হাতের অক্ষরে। Linux-এ import-এর আগে README-র rename ধাপটি অনুসরণ করুন। Database খালি থাকলে API প্রথমবার চালুর সময় নিজেই table বানায় আর test account seed করে।dmoney-transaction-api/-এ.env.exampleথেকে.envআর.env.devদুটোই বানান।db.jsপড়ে.env.dev, বাকি code পড়ে.env। দুই file-এ একইDB_*মান দিন।npm run devদিয়ে API চালু করুন। ডিফল্টভাবে এটি port 5000-এ চলে।dmoney-web-react/-এ.envবানিয়েNEXT_PUBLIC_*মানগুলো দিন, তারপরnpm run devচালান। App খুলবেhttp://localhost:3000-এ।- Test account-গুলো README-র "Test accounts" অংশে আর
endpoints.md-এ আছে। Agent, Customer বা Merchant login-এর OTP API console-এ দেখা যায়।
Tutorial-এর পরামর্শ: নিজের .env file git-এর বাইরে রাখুন, আর এর কোনো মান prompt-এ paste করবেন না।
MCP scopes and .mcp.json
MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems. Source 1সোর্স 1 Claude Code adds servers with claude mcp add. Source 2সোর্স 2
# A remote server
claude mcp add --transport http <name> <url>
# A local stdio server: everything after -- goes to the server
claude mcp add [options] <name> -- <command> [args...]The scope decides where the server is stored and who gets it: Source 2সোর্স 2
| Scope | Flag | Stored in | Who gets it |
|---|---|---|---|
| Local (default) | --scope local | ~/.claude.json | You, in this project only Source 2সোর্স 2 |
| Project | --scope project | .mcp.json in the project root | Everyone, through version control Source 2সোর্স 2 |
| User | --scope user | ~/.claude.json | You, in all your projects Source 2সোর্স 2 |
--scope projectcreates or updates.mcp.json. Source 2সোর্স 2- In an interactive session, Claude Code asks you to approve each
.mcp.jsonserver before it uses it.claude mcp reset-project-choicesresets your choices. Source 2সোর্স 2 In aclaude -prun, it loads them without asking. Source 2সোর্স 2 - Verify that you trust each server before you connect it. Source 2সোর্স 2
Keep secrets out of git
.mcp.json expands ${VAR} and ${VAR:-default} in command, args, env, url, and headers. Source 2সোর্স 2 So the team commits the file, and each tester keeps the secret in the shell.
- An unset variable with no default does not stop the config.
claude mcp listshows a missing-variable warning. Source 2সোর্স 2 - An empty string counts as set, so
${VAR:-default}then gives the empty string. Source 2সোর্স 2
The dMoney .mcp.json puts the database password in ${DMONEY_DB_PASS:-}. The default is empty, so with the variable unset the server tries an empty password.
The MCP Servers page covers transports, OAuth, and trust in more detail.
সহজ English
MCP (Model Context Protocol) is an open standard. It connects AI apps to other systems. Source 1সোর্স 1 You add a server to Claude Code with claude mcp add. Source 2সোর্স 2
The scope says who gets the server: Source 2সোর্স 2
- Local is the default. Only you get it, in this project only.
- Project writes the server to
.mcp.jsonin the project folder. Everyone who clones the repository gets it. - User is for you, in all your projects.
In a normal, interactive session, Claude Code asks you to approve each server from .mcp.json before it uses it. A claude -p run does not ask. Source 2সোর্স 2 Trust a server before you connect it. Source 2সোর্স 2
Do not write a password into .mcp.json. Write ${VAR} instead. Claude Code fills in the value of the environment variable (a value that you set in your shell). Source 2সোর্স 2 If the variable is missing and has no default, claude mcp list warns you. An empty value still counts as set. Source 2সোর্স 2
The dMoney file uses ${DMONEY_DB_PASS:-}. Its default is empty, so an unset variable gives an empty password.
বাংলা ব্যাখ্যা
MCP (Model Context Protocol) হলো AI application-কে বাইরের system-এর সাথে যুক্ত করার একটি open-source standard। Source 1সোর্স 1 Claude Code-এ server যোগ করতে claude mcp add ব্যবহার করুন। Remote server-এর জন্য --transport http, আর local stdio server-এর জন্য server command-এর আগে -- দিন। Source 2সোর্স 2
Scope ঠিক করে server কোথায় থাকবে আর কে পাবে: Source 2সোর্স 2
- Local (default):
~/.claude.json-এ থাকে, শুধু আপনার জন্য, শুধু এই project-এ। - Project: project root-এর
.mcp.json-এ থাকে, version control দিয়ে পুরো team পায়। - User:
~/.claude.json-এ থাকে, আপনার সব project-এ।
Interactive session-এ .mcp.json-এর প্রতিটি server ব্যবহারের আগে Claude Code আপনার approval চায়, কিন্তু claude -p run-এ জিজ্ঞেস না করেই load করে। Source 2সোর্স 2 Connect করার আগে server-টি বিশ্বাসযোগ্য কি না যাচাই করুন। Source 2সোর্স 2
Secret git-এর বাইরে রাখতে .mcp.json-এ ${VAR} বা ${VAR:-default} লিখুন। Source 2সোর্স 2 Default ছাড়া কোনো variable set না থাকলে claude mcp list warning দেখায়, আর empty string-কেও set ধরা হয়। Source 2সোর্স 2 dMoney-র .mcp.json password নেয় ${DMONEY_DB_PASS:-} থেকে, যার default খালি। তাই variable set না থাকলে server খালি password দিয়ে চেষ্টা করে।
Check servers, sign in, and watch the context
Check from the shell. claude mcp list shows a health status next to each server, such as ✔ Connected, ! Needs authentication, or ✘ Failed to connect. Source 2সোর্স 2 A .mcp.json server that you have not approved yet shows ⏸ Pending approval. Source 2সোর্স 2 To check one server, run claude mcp get <name>. Source 2সোর্স 2
claude mcp list
claude mcp get jiraCheck and sign in from a session. /mcp manages server connections and OAuth sign-in. It also takes reconnect, enable, and disable. Source 3সোর্স 3 Claude Code supports OAuth 2.0 for remote servers. Source 2সোর্স 2 A claude -p run cannot do the OAuth flow, so sign in first from an interactive session: /mcp in the session, or claude mcp login <name> in the shell. Source 2সোর্স 2
Context cost. Tool search is on by default. It defers tool definitions until Claude needs them, so only tool names and server instructions load at session start. Source 2সোর্স 2 Large tool results still cost context. Claude Code warns when an MCP tool output exceeds 10,000 tokens, and it limits output to 25,000 tokens by default. MAX_MCP_OUTPUT_TOKENS changes the limit. Source 2সোর্স 2
/context shows the current context usage as a colored grid. Source 3সোর্স 3 Run it after you connect a server, and again after a large query.
The tutorial's advice
Ask for small results. Add a limit to a Jira search and to a SQL query, and ask for the columns that you need. A short result keeps room in the context for the test work.
সহজ English
To check your servers from the shell, run claude mcp list. It shows the state of each server, for example connected, needs sign-in, or failed. Source 2সোর্স 2 A server from .mcp.json that you have not approved shows "Pending approval". Source 2সোর্স 2 claude mcp get <name> checks one server. Source 2সোর্স 2
Inside a session, /mcp manages the connections and the sign-in. Source 3সোর্স 3 Sign-in uses OAuth. Source 2সোর্স 2 A claude -p run cannot sign in, so sign in from a normal session first. Source 2সোর্স 2
Claude's context is limited. Tool search is on by default. Claude loads only the tool names and server instructions at the start, and the full tool details when it needs them. Source 2সোর্স 2 Big tool results still take space. Claude Code warns above 10,000 tokens. Source 2সোর্স 2 /context shows how full the context is. Source 3সোর্স 3
The tutorial's advice: ask for small results, with a limit.
বাংলা ব্যাখ্যা
Shell থেকে যাচাই করতে claude mcp list চালান। এটি প্রতিটি server-এর পাশে health status দেখায়, যেমন ✔ Connected, ! Needs authentication বা ✘ Failed to connect। Approve না করা .mcp.json server দেখায় ⏸ Pending approval। একটি server যাচাই করতে claude mcp get <name> চালান। Source 2সোর্স 2
Session-এর ভেতরে /mcp server connection আর OAuth sign-in manage করে। Source 3সোর্স 3 Claude Code remote server-এর জন্য OAuth 2.0 support করে। claude -p run-এ OAuth flow চলে না, তাই আগে interactive session-এ /mcp দিয়ে, বা shell-এ claude mcp login <name> দিয়ে sign in করুন। Source 2সোর্স 2
Tool search default-ভাবে চালু থাকে: session শুরুতে শুধু tool name আর server instruction load হয়, পুরো definition লাগলে তখন আসে। Source 2সোর্স 2 তবে বড় tool result context খরচ করে। MCP tool output 10,000 token ছাড়ালে Claude Code warning দেয়, আর default-ভাবে 25,000 token-এ থামায়। Source 2সোর্স 2 /context বর্তমান context usage একটি রঙিন grid হিসেবে দেখায়। Source 3সোর্স 3
Tutorial-এর পরামর্শ: Jira search আর SQL query-তে limit দিন, শুধু দরকারি column চান।
Jira through the Atlassian MCP server
The official Atlassian MCP Server is a cloud-based bridge between your Atlassian Cloud site and compatible external tools. It signs in with OAuth 2.1 or API tokens. Source 4সোর্স 4 New setups should use the v2 URL. The README gives this command for Claude Code, then /mcp to sign in: Source 4সোর্স 4
claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcpSign in when Claude Code starts the Atlassian authentication flow. Source 5সোর্স 5
Compare with dMoney. The dMoney .mcp.json names the server jira and uses https://mcp.atlassian.com/v1/mcp. That v1 endpoint is still supported. Atlassian says existing v1 connections start to expose and use the v2 tools automatically; its getting-started page gives 1 March 2027 for this. Source 4সোর্স 4 Source 5সোর্স 5 The old SSE endpoint https://mcp.atlassian.com/v1/sse is not supported after 30 June 2026. Source 4সোর্স 4 The tutorial suggests the v2 URL for new setups. Keep the name jira if the skills and agents of the project use it.
What Claude can do. The server exposes the most-used tools and lets the client discover the rest. Source 4সোর্স 4
| Tool | What it does |
|---|---|
searchJiraIssuesUsingJql | Searches Jira work items with JQL Source 6সোর্স 6, the Jira Query Language Source 19সোর্স 19 |
getJiraIssue | Gets a work item by ID or key Source 6সোর্স 6 |
listJiraProjects | Lists the Jira spaces that you can see Source 6সোর্স 6 |
createJiraIssue | Creates a work item Source 6সোর্স 6 |
addOrEditJiraIssueComment | Adds a comment, or edits one Source 6সোর্স 6 |
transitionJiraIssue | Moves a work item to a new status Source 6সোর্স 6 |
Whose permissions. The server can reach only the data that you can already view in Atlassian Cloud. Source 4সোর্স 4 MCP clients act with your existing permissions. Source 5সোর্স 5 The Jira permission groups are read_jira, write_jira, and search_jira. delete_jira and manage_jira are off by default. Source 4সোর্স 4 Each tool call goes into the audit log of your organization. Source 4সোর্স 4
Writes to Jira are real
Creating a work item, a comment, or a transition changes a shared system under your name. Atlassian advises human confirmation for any high-impact or destructive action. Source 4সোর্স 4 Practise on a test project, and approve each write yourself.
সহজ English
Atlassian runs an official MCP server in the cloud. It connects compatible tools, such as Claude Code, to your Atlassian Cloud site. You sign in with OAuth or an API token. Source 4সোর্স 4 Atlassian says new setups should use the v2 address, https://mcp.atlassian.com/v2/mcp. Add it with claude mcp add, then sign in with /mcp. Source 4সোর্স 4 Source 5সোর্স 5
The dMoney project uses the older v1 address. It still works. Source 4সোর্স 4 The tutorial suggests v2 for new setups.
Claude can search Jira with JQL (Jira's query language), read a ticket by its key, list your projects, create a ticket, add a comment, and change a ticket's status. Source 6সোর্স 6
The server sees only what you can already see in Jira. It acts with your own permissions. Source 4সোর্স 4 Source 5সোর্স 5 The delete and manage tools are off by default. Source 4সোর্স 4
A write to Jira is real and carries your name. Atlassian advises a human check before any high-impact action. Source 4সোর্স 4 Approve each write yourself.
বাংলা ব্যাখ্যা
Atlassian-এর official MCP Server হলো আপনার Atlassian Cloud site আর compatible বাইরের tool-এর মধ্যে একটি cloud-based bridge। এটি OAuth 2.1 বা API token দিয়ে sign in করে। Source 4সোর্স 4 নতুন setup-এ v2 URL ব্যবহার করতে বলা হয়েছে: claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp, তারপর /mcp দিয়ে sign in। Source 4সোর্স 4 Source 5সোর্স 5
dMoney-র .mcp.json server-টির নাম রেখেছে jira আর v1 URL https://mcp.atlassian.com/v1/mcp ব্যবহার করে। এই v1 endpoint এখনও support পায়। কিন্তু পুরোনো SSE endpoint /v1/sse 30 June 2026-এর পরে আর support করা হয় না। Source 4সোর্স 4 Tutorial নতুন setup-এ v2 URL ব্যবহারের পরামর্শ দেয়।
Claude JQL দিয়ে Jira work item search করতে পারে (searchJiraIssuesUsingJql), key দিয়ে একটি item পড়তে পারে (getJiraIssue), item বানাতে পারে (createJiraIssue), comment যোগ করতে পারে (addOrEditJiraIssueComment) এবং status বদলাতে পারে (transitionJiraIssue)। Source 6সোর্স 6
Server শুধু সেই data দেখে, যা আপনি Atlassian Cloud-এ আগে থেকেই দেখতে পারেন, আর আপনার নিজের permission দিয়ে কাজ করে। Source 4সোর্স 4 Source 5সোর্স 5 delete_jira আর manage_jira default-ভাবে বন্ধ। Source 4সোর্স 4 Jira-তে লেখা মানে আপনার নামে একটি shared system বদলানো। High-impact কাজের আগে মানুষের confirmation নিতে Atlassian পরামর্শ দেয়। Source 4সোর্স 4
The test database through MySQL MCP
The dMoney .mcp.json runs the MySQL MCP server @berthojoris/mcp-mysql-server@1.43.2 with the permission list list,read,utility,create,update,delete,execute. The README of dMoney lists only playwright and jira as the project servers, and it describes a separate user-level dmoneydb server as read-only. It does not describe this project server, whose list includes write actions. The What to Fix in the Setup page records this finding.
What the permissions mean. The server takes the connection string, then a permission list, then an optional category list. Source 7সোর্স 7
| Permission | Allows |
|---|---|
list | Listing databases, tables, and schemas Source 7সোর্স 7 |
read | SELECT queries Source 7সোর্স 7 |
utility | Connection tests and diagnostics Source 7সোর্স 7 |
create, update, delete | INSERT, UPDATE, and DELETE of records Source 7সোর্স 7 |
execute | Custom INSERT and UPDATE SQL Source 7সোর্স 7 |
ddl | CREATE, ALTER, and DROP of tables Source 7সোর্স 7 |
Since v1.44.0, a server with no permissions and no categories enables only list,read,utility. Source 7সোর্স 7 dMoney pins 1.43.2, and it passes its own list, so that default does not help it.
A read-only version. This example keeps the dMoney entry, pins version 1.46.0, and lists only the read permissions. It takes the user and the password from your shell:
{
"mcpServers": {
"dmoney-db": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@berthojoris/mcp-mysql-server@1.46.0",
"mysql://${DMONEY_DB_USER}:${DMONEY_DB_PASS}@localhost:3306/dmoneydb",
"list,read,utility"
]
}
}
}- Versions 1.43.3 and 1.43.4 tightened the permission checks. For example,
EXPLAIN ANALYZEruns the statement it wraps (MySQL 8.0.18 and later), so since v1.43.4 it needs that statement's permission. Source 7সোর্স 7 The tutorial suggests a version with these changes, such as 1.46.0, for a read-only setup. - From v1.44.0,
WITH(CTE) queries are supported, and in read queries they needexecute, so a read-only list cannot run them. Source 7সোর্স 7 Write the query withoutWITH. MCP_REQUIRE_READONLY_DB_USER=truemakes the server fail at startup if the MySQL user can write. Source 7সোর্স 7- Ask Claude to call
list_all_toolsfirst. It returns the enabled tools and the active permission profile. Source 7সোর্স 7
The tutorial's advice: a SELECT-only user
The permission list is the first lock. A database user that has only the SELECT privilege is the second. Create one for Claude, and point the server at it. Never connect Claude to a production database.
সহজ English
dMoney's .mcp.json sets up a MySQL server for Claude. Its permission list includes write actions: create, update, delete, and execute. The dMoney README does not describe this server. It calls only a different, user-level database server read-only. The What to Fix in the Setup page records this finding.
The permission list sets what Claude may do: Source 7সোর্স 7
list,read, andutilityonly look at the data and test the connection.create,update,delete, andexecutechange the data.ddlchanges the tables themselves.
To make the server read-only, keep only list,read,utility. Source 7সোর্স 7 Take the user name and password from your shell with ${...} variables. Use a newer version of the server, such as 1.46.0, because newer versions check permissions more strictly. On that version, queries that start with WITH need execute, so they will not run. Source 7সোর্স 7 The setting MCP_REQUIRE_READONLY_DB_USER=true stops the server if the database user can write. Source 7সোর্স 7
The tutorial's advice: also make a database user that can only read (SELECT). The permission list is the first lock. This user is a second lock. Never connect Claude to production.
বাংলা ব্যাখ্যা
dMoney-র .mcp.json MySQL MCP server @berthojoris/mcp-mysql-server@1.43.2 চালায়, permission list list,read,utility,create,update,delete,execute দিয়ে। dMoney README এই project server-এর কথা বলে না। README শুধু আলাদা একটি user-level dmoneydb server-কে read-only বলে, অথচ এই server-এর list-এ write action আছে। What to Fix in the Setup পেজে এই finding লেখা আছে।
Server connection string-এর পরে একটি permission list নেয়, তারপর ঐচ্ছিক category list। Source 7সোর্স 7 list, read আর utility শুধু data দেখে ও connection test করে। create, update, delete আর execute data বদলায়, আর ddl table নিজেই বদলায়। Source 7সোর্স 7
Read-only করতে শুধু list,read,utility রাখুন, আর user ও password shell-এর ${DMONEY_DB_USER} ও ${DMONEY_DB_PASS} থেকে নিন। Source 7সোর্স 7 Server-এর নতুন version ব্যবহার করুন, যেমন 1.46.0, কারণ v1.43.3 ও v1.43.4 permission check আরও কড়া করেছে। v1.44.0 থেকে read query-তে WITH (CTE) চালাতে execute লাগে, তাই read-only list-এ তা চলবে না। MCP_REQUIRE_READONLY_DB_USER=true দিলে database user লিখতে পারলে server চালুই হয় না। শুরুতে Claude-কে list_all_tools call করতে বলুন। Source 7সোর্স 7
Tutorial-এর পরামর্শ: Claude-এর জন্য এমন একটি database user বানান, যার শুধু SELECT privilege আছে। Production database-এ কখনো Claude-কে যুক্ত করবেন না।
GitHub through the gh CLI
GitHub CLI (gh) is GitHub on the command line, for macOS, Windows, and Linux. Source 8সোর্স 8 The README lists Homebrew for macOS, Debian, Ubuntu, and RPM packages for Linux, and WinGet for Windows. GitHub-hosted runners have it pre-installed. Source 8সোর্স 8
Sign in. gh auth login uses a web browser flow by default and stores the token in the system credential store. Source 9সোর্স 9 --with-token reads a classic token from standard input. For a fine-grained token, the manual favours GH_TOKEN. Source 9সোর্স 9
Read commands (safe to allow):
| Command | What it shows |
|---|---|
gh issue view 7 --comments | The title, body, and other data of an issue, with its comments Source 10সোর্স 10 |
gh issue list --state all --label bug | Issues filtered by state and label. The default is open issues only. Source 11সোর্স 11 |
gh pr view 8 | The title, body, and other data of a pull request Source 12সোর্স 12 |
gh pr diff 8 --name-only | The changes of a pull request, here only the file names Source 13সোর্স 13 |
Write commands (ask first): gh issue create --title ... creates an issue. Source 14সোর্স 14 gh pr create --draft creates a pull request as a draft. Source 15সোর্স 15
Let Claude use gh through Bash. Claude Code evaluates rules in this order: deny, then ask, then allow. Source 16সোর্স 16 Put the * after the subcommand: Bash(git *) allows every git command. Source 16সোর্স 16 A trailing * also matches the bare command. Source 16সোর্স 16 The permissions object of a settings file takes allow, ask, and deny arrays. Source 20সোর্স 20 This example, the tutorial's own, lets Claude read without a prompt and asks before each write:
{
"permissions": {
"allow": [
"Bash(gh issue view *)",
"Bash(gh issue list *)",
"Bash(gh pr view *)",
"Bash(gh pr diff *)"
],
"ask": [
"Bash(gh issue create *)",
"Bash(gh pr create *)"
]
}
}An ask rule applies when any subcommand matches it, also inside a chained command. Source 16সোর্স 16
সহজ English
GitHub CLI, or gh, lets you use GitHub from the terminal. It runs on macOS, Windows, and Linux. Source 8সোর্স 8
Sign in with gh auth login. It opens your browser by default, and it stores the token in the system credential store. Source 9সোর্স 9
Commands that only read:
gh issue viewshows an issue.--commentsadds its comments. Source 10সোর্স 10gh issue listlists the open issues by default.--stateand--labelfilter them. Source 11সোর্স 11gh pr viewshows a pull request. Source 12সোর্স 12gh pr diffshows its changes. Source 13সোর্স 13
Commands that write: gh issue create and gh pr create. Source 14সোর্স 14 Source 15সোর্স 15
Permission rules control what Claude may run. Claude Code checks deny rules first, then ask, then allow. Source 16সোর্স 16 So you can allow the read commands and add an ask rule for each write command. Then Claude reads freely and asks you before it writes.
বাংলা ব্যাখ্যা
GitHub CLI (gh) হলো command line-এ GitHub, macOS, Windows আর Linux-এ চলে। Source 8সোর্স 8 gh auth login default-ভাবে browser-এ sign in করায় আর token system credential store-এ রাখে। Fine-grained token-এর জন্য manual GH_TOKEN ব্যবহারের পরামর্শ দেয়। Source 9সোর্স 9
পড়ার command:
gh issue viewissue-এর title, body ও অন্য তথ্য দেখায়,--commentsদিলে comment-ও। Source 10সোর্স 10gh issue listdefault-ভাবে শুধু open issue দেখায়;--stateআর--labelদিয়ে filter করা যায়। Source 11সোর্স 11gh pr viewpull request দেখায়, আরgh pr diffতার পরিবর্তন দেখায়।--name-onlyশুধু file-এর নাম দেখায়। Source 12সোর্স 12 Source 13সোর্স 13
লেখার command: gh issue create issue বানায়, gh pr create --draft draft pull request বানায়। Source 14সোর্স 14 Source 15সোর্স 15
Claude Code rule-গুলো এই ক্রমে দেখে: deny, তারপর ask, তারপর allow। * subcommand-এর পরে দিন, কারণ Bash(git *) সব git command allow করে। Source 16সোর্স 16 তাই read command-গুলো allow-এ আর write command-গুলো ask-এ রাখুন। তখন Claude নির্দ্বিধায় পড়বে, কিন্তু লেখার আগে আপনাকে জিজ্ঞেস করবে।
The Claude environment for the project
One CLAUDE.md per sub-project. dMoney has a CLAUDE.md in dmoney-transaction-api/ and one in dmoney-web-react/, with architecture notes and conventions. A CLAUDE.md in a subdirectory loads on demand: when Claude reads, writes, or edits a file in that subdirectory. Source 17সোর্স 17 So start Claude Code at the workspace root, and each project brings its own notes when Claude works there. /memory opens the CLAUDE.md files for editing. Source 3সোর্স 3
Settings with permission rules. Source 18সোর্স 18
| File | Who gets it |
|---|---|
.claude/settings.json | Everyone in the repository. Commit it. Source 18সোর্স 18 |
.claude/settings.local.json | You, in this project. Claude Code keeps it out of git when it creates it. Source 18সোর্স 18 |
~/.claude/settings.json | You, in every project on this machine Source 18সোর্স 18 |
The dMoney root .claude/settings.json holds a PreToolUse hook for graphify and no permission rules. Add the gh rules from the section above, and rules for the MCP tools. mcp__<server> matches every tool of a server, and mcp__<server>__<tool> matches one tool. Source 16সোর্স 16 For example, put mcp__jira__* in ask to confirm every Jira call, or list mcp__jira__createJiraIssue, mcp__jira__editJiraIssue, mcp__jira__transitionJiraIssue, mcp__jira__addOrEditJiraIssueComment, mcp__jira__executeWrite and mcp__jira__executeDestructive to confirm only writes. Atlassian routes its other tools through discover and executeRead/executeWrite/executeDestructive, so a rule on one tool name alone would miss them. Source 6সোর্স 6 /permissions shows and edits the rules. Source 3সোর্স 3
Do not mix up the two kinds of "local". A local MCP server lives in ~/.claude.json. Local settings live in .claude/settings.local.json. Source 2সোর্স 2
Check that everything works.
| Check | Where | You expect |
|---|---|---|
claude mcp list | Shell | ✔ Connected for jira, dmoney-db, and playwright, or ! Needs authentication for Jira before sign-in Source 2সোর্স 2 |
/mcp | Session | Each server, its state, and the sign-in for Jira Source 3সোর্স 3 |
/context | Session | The context grid, with room left for the work Source 3সোর্স 3 |
gh issue list | Shell | The open issues of the repository Source 11সোর্স 11 |
সহজ English
dMoney has one CLAUDE.md file in each project folder. It holds notes about the code. A CLAUDE.md in a subfolder loads when Claude works on a file in that folder. Source 17সোর্স 17 So start Claude Code in the main folder. /memory lets you edit these files. Source 3সোর্স 3
Settings files hold the permission rules: Source 18সোর্স 18
.claude/settings.jsonis for the whole team. Commit it..claude/settings.local.jsonis only for you. Claude Code keeps it out of git when it creates it.~/.claude/settings.jsonis for you, in all your projects.
The dMoney settings file has no permission rules yet. Add the gh rules. You can also write rules for MCP tools. mcp__jira covers every Jira tool. mcp__jira__createJiraIssue covers one tool. Source 16সোর্স 16 Atlassian also routes some writes through executeWrite, so use mcp__jira__* in ask to confirm every Jira call. Source 6সোর্স 6 /permissions shows your rules. Source 3সোর্স 3
To check your setup, run claude mcp list in the shell. Source 2সোর্স 2 In a session, run /mcp and /context. Source 3সোর্স 3 Then run gh issue list. Source 11সোর্স 11
বাংলা ব্যাখ্যা
dMoney-র প্রতিটি project-এ একটি করে CLAUDE.md আছে, যাতে architecture note আর convention লেখা। Subdirectory-র CLAUDE.md on demand load হয়: Claude যখন সেই subdirectory-র কোনো file পড়ে, লেখে বা edit করে। Source 17সোর্স 17 তাই workspace root থেকে Claude Code চালু করুন। /memory দিয়ে CLAUDE.md file edit করা যায়। Source 3সোর্স 3
Permission rule থাকে settings file-এ: Source 18সোর্স 18
.claude/settings.jsonপুরো team-এর জন্য, commit করুন।.claude/settings.local.jsonশুধু আপনার জন্য, Claude Code ফাইলটি তৈরি করলে এটি git-এর বাইরে রাখে।~/.claude/settings.jsonএই machine-এর সব project-এ আপনার জন্য।
dMoney-র root .claude/settings.json-এ একটি PreToolUse hook আছে, কিন্তু কোনো permission rule নেই। আগের অংশের gh rule যোগ করুন। MCP tool-এর জন্য mcp__<server> server-এর সব tool ধরে, আর mcp__<server>__<tool> একটি tool ধরে। Source 16সোর্স 16 Atlassian কিছু write executeWrite/executeDestructive tool দিয়ে চালায়, তাই সব Jira call-এ confirmation চাইলে ask-এ mcp__jira__* দিন। Source 6সোর্স 6 /permissions rule দেখায় ও edit করতে দেয়। Source 3সোর্স 3 মনে রাখবেন, local MCP server থাকে ~/.claude.json-এ, আর local settings থাকে .claude/settings.local.json-এ। Source 2সোর্স 2
সব ঠিক আছে কি না দেখতে shell-এ claude mcp list চালান Source 2সোর্স 2, session-এ /mcp আর /context চালান Source 3সোর্স 3, আর gh issue list চালান। Source 11সোর্স 11
Practice
The tutorial's exercise
This exercise is the tutorial's own. Use the dMoney practice app from the dMoney Codebase page, or your own project with a test Jira project and a test database. Every prompt below only reads.
-
Run the app. Follow "Install and run dMoney". Open
http://localhost:3000and sign in with a test account from the README. -
Make the database read-only. Change the
dmoney-dbversion to 1.46.0 and its permission list tolist,read,utility. Source 7সোর্স 7 ExportDMONEY_DB_USERandDMONEY_DB_PASSin your shell. Restart Claude Code. -
Check the servers. Run
claude mcp list. Source 2সোর্স 2 Startclaude, approve the.mcp.jsonservers, and run/mcp. Sign in to Jira when the flow starts. Source 3সোর্স 3 Source 5সোর্স 5 -
Jira, one read. Type:
Use the jira server. List my 5 newest open issues in project QA with JQL, and show the key, summary, and status of each. Do not create or change anything.Expect a short table from
searchJiraIssuesUsingJql. Source 6সোর্স 6 Check one key in the Jira web page. -
Database, one read. Type:
Use the dmoney-db server. Call list_all_tools, then list the tables of dmoneydb and describe the columns of Transactions. Run no write query.Expect the tool list with only read tools enabled, then the tables. Source 7সোর্স 7 If a write tool shows as enabled, step 2 did not take effect.
-
Browser, one read. Type:
Use the playwright server. Open http://localhost:3000 and describe the login page. Do not submit the form.See Browser Testing with Playwright. -
GitHub, one read. Add the
ghrules from this page to.claude/settings.local.json, then ask Claude to rungh issue list --state all. Source 11সোর্স 11 It should run with no prompt. Ask forgh issue create: it must ask you first. Answer no. -
Check the context. Run
/contextand note how much the servers use. Source 3সোর্স 3
সহজ English
This is the tutorial's own exercise. Every prompt only reads.
- Run dMoney and sign in with a test account.
- Change the database server to
list,read,utility. Source 7সোর্স 7 Set the user and password in your shell. Restart Claude Code. - Run
claude mcp list. Source 2সোর্স 2 In a session, approve the servers and run/mcp. Sign in to Jira. Source 3সোর্স 3 - Ask Claude to list your 5 newest open Jira issues with JQL, without changes. Compare one key with the Jira web page.
- Ask Claude to call
list_all_tools, then describe the tables. Only read tools should be on. Source 7সোর্স 7 - Ask Claude to open the login page with Playwright and describe it.
- Add the
ghrules. Ask Claude to rungh issue list. It should run with no question. Ask forgh issue create. Claude must ask you first. Say no. - Run
/contextto see how much space the servers use. Source 3সোর্স 3
বাংলা ব্যাখ্যা
এই exercise tutorial-এর নিজের। নিচের প্রতিটি prompt শুধু পড়ে, কিছু লেখে না।
- dMoney চালু করুন আর README-র একটি test account দিয়ে sign in করুন।
dmoney-dbserver-এর permission listlist,read,utilityকরুন। Source 7সোর্স 7 Shell-এDMONEY_DB_USERআরDMONEY_DB_PASSset করে Claude Code আবার চালু করুন।claude mcp listচালান। Source 2সোর্স 2 Session-এ server approve করে/mcpচালান, আর Jira-তে sign in করুন। Source 3সোর্স 3- Claude-কে বলুন JQL দিয়ে project QA-র সবচেয়ে নতুন ৫টি open issue-এর key, summary আর status দেখাতে, কিছু না বদলে। একটি key Jira web page-এ মিলিয়ে দেখুন। Source 6সোর্স 6
- Claude-কে বলুন
list_all_toolscall করেdmoneydb-এর table আরTransactions-এর column বর্ণনা করতে। শুধু read tool চালু থাকা উচিত। Source 7সোর্স 7 - Playwright দিয়ে login page খুলে বর্ণনা করতে বলুন, form submit না করে।
ghrule যোগ করেgh issue list --state allচালাতে বলুন; এটি প্রশ্ন ছাড়াই চলবে। Source 11সোর্স 11 তারপরgh issue createচাইলে Claude আগে আপনাকে জিজ্ঞেস করবে। "না" বলুন।/contextচালিয়ে দেখুন server-গুলো কতটা জায়গা নেয়। Source 3সোর্স 3
Common mistakes
| Mistake | Fix |
|---|---|
A password written into .mcp.json and committed | Use ${VAR} in args, env, url, or headers, and set the value in your shell. Source 2সোর্স 2 |
An empty default such as ${DMONEY_DB_PASS:-} hides a missing value | Leave out the default, so claude mcp list warns when the variable is unset. An empty value counts as set. Source 2সোর্স 2 |
| A database server with write permissions | Use list,read,utility Source 7সোর্স 7, and, as the tutorial advises, a SELECT-only database user. See What to Fix in the Setup. |
The old Atlassian SSE endpoint /v1/sse | It is not supported after 30 June 2026. Use https://mcp.atlassian.com/v2/mcp. Source 4সোর্স 4 |
Jira tools missing in a claude -p run | Sign in first from an interactive session with /mcp or claude mcp login <name>. Source 2সোর্স 2 |
Bash(gh *) in allow | It allows every gh command, writes too. Put the * after the subcommand. Source 16সোর্স 16 |
| One server under two names | The tutorial's advice: keep the server names of .mcp.json (jira, dmoney-db) in the skills, agents, and rules, so mcp__jira matches. Source 16সোর্স 16 |
সহজ English
- A password in
.mcp.json. Use${VAR}and set the value in your shell. Source 2সোর্স 2 - An empty default. It hides a missing password. Without a default,
claude mcp listwarns you. Source 2সোর্স 2 - A database server that can write. Keep only
list,read,utility. Source 7সোর্স 7 The tutorial also advises a database user that can only read. - The old Atlassian SSE address
/v1/sse. It is not supported after 30 June 2026. Use the v2 address. Source 4সোর্স 4 - No Jira tools in
claude -p. Sign in from a normal session first. Source 2সোর্স 2 Bash(gh *)in allow. It allows everyghcommand, also the writes. Name the subcommand. Source 16সোর্স 16- Two names for one server. The tutorial's advice: use the names from
.mcp.jsonin the skills, agents, and rules.
বাংলা ব্যাখ্যা
.mcp.json-এ password লিখে commit করা।${VAR}লিখুন আর মানটি shell-এ set করুন। Source 2সোর্স 2${DMONEY_DB_PASS:-}-এর মতো খালি default। এটি হারানো password লুকিয়ে রাখে। Default বাদ দিলে variable না থাকলেclaude mcp listwarning দেয়। Source 2সোর্স 2- Write permission সহ database server।
list,read,utilityব্যবহার করুন। Source 7সোর্স 7 Tutorial আরও পরামর্শ দেয়: শুধু SELECT করতে পারে এমন database user। - পুরোনো Atlassian SSE endpoint
/v1/sse। 30 June 2026-এর পরে এটি support করা হয় না,https://mcp.atlassian.com/v2/mcpব্যবহার করুন। Source 4সোর্স 4 claude -prun-এ Jira tool নেই। আগে interactive session-এ/mcpবাclaude mcp login <name>দিয়ে sign in করুন। Source 2সোর্স 2allow-এBash(gh *)। এটি write সহ সবghcommand allow করে।*subcommand-এর পরে দিন। Source 16সোর্স 16- এক server-এর দুই নাম। Tutorial-এর পরামর্শ: skill, agent আর rule-এ
.mcp.json-এর নামই (jira,dmoney-db) ব্যবহার করুন।
Key words
| Term | Meaning |
|---|---|
| MCP | An open-source standard for connecting AI applications to external systems |
| Scope | Where Claude Code stores an MCP server and who gets it: local (default), project, or user |
.mcp.json | The file in the project root that holds the project-scoped servers. Claude Code asks you to approve them in an interactive session. |
| Variable expansion | ${VAR} and ${VAR:-default} in .mcp.json, so secrets stay in your shell and out of git |
/mcp | The session command that manages MCP connections and OAuth sign-in |
| Tool search | Loads only tool names and server instructions at start, and the full definitions when Claude needs them |
| Atlassian MCP Server | Atlassian's cloud-based MCP server. It connects your Atlassian Cloud site to compatible external tools and acts with your existing permissions. |
| JQL | The Jira Query Language, which searchJiraIssuesUsingJql uses to search Jira work items |
| Permission list | The MySQL MCP argument that sets what Claude may do. list,read,utility is read-only. |
gh | GitHub CLI: GitHub on the command line, with read commands such as gh issue view and write commands such as gh pr create |
| Permission rule | An allow, ask, or deny entry in settings. Claude Code checks deny, then ask, then allow. |
CLAUDE.md | The notes file of a project. In a subdirectory, it loads when Claude works on a file there. |