repo scoperepo scope (full control of private repositories)export GITHUB_TOKEN=ghp_your_token_here
export GITHUB_OWNER=your-github-username-or-org
export GITHUB_REPO=organisation.md
npx @shashank-sn/organisation-md
the mcp server starts in stdio mode. connect your ai agent to it.
git clone https://github.com/YOUR_ORG/organisation.md.git
cd organisation.md
npm install
cp .env.example .env # then edit .env with your values
export GITHUB_TOKEN=ghp_your_token_here
export GITHUB_OWNER=your-github-username-or-org
export GITHUB_REPO=organisation.md
npx tsx src/server.ts
the server starts in stdio mode. connect your local agent to it.
export GITHUB_TOKEN=ghp_your_token_here
export GITHUB_OWNER=your-github-username-or-org
export GITHUB_REPO=organisation.md
export TRANSPORT=sse
export PORT=3000
npx tsx src/server.ts
the server starts on http://localhost:3000/sse. configure your remote mcp host to connect to this endpoint with POST messages at http://localhost:3000/messages.
add to your .mcp.json or project config:
{
"mcpServers": {
"organisation.md": {
"command": "npx",
"args": ["@shashank-sn/organisation-md"],
"env": {
"GITHUB_TOKEN": "ghp_...",
"GITHUB_OWNER": "your-org",
"GITHUB_REPO": "organisation.md"
}
}
}
}
point your mcp host to npx @shashank-sn/organisation-md with the same env variables.
| tool | description |
|---|---|
read_org |
read the full organisation.md file |
read_section |
read a specific section by heading |
update_section |
propose an update to a section (creates pr) |
search_context |
search across organisation.md and context/ files |
propose_change |
propose a change to any file (creates pr) |
list_context_files |
list all files in context/ directory |
import_file |
import a txt, md, or docx file into the knowledge base |
add_info |
add information via natural language — figures out section and file |
remove_info |
remove information matching a description |
check_roles |
check git-based roles and codeowners |
check_permissions |
check if you can add/delete/approve/merge |
configure_codeowners |
update .github/codeowners for team access control |
report_bug |
auto-detect the area and file a github issue |
suggest_feature |
suggest a feature or improvement as a github issue |
the import_file tool lets you add files to the knowledge base.
the ai agent reads the file content and passes it to the tool, which:
context/organisation.md with a link to the imported filesupported formats: .txt, .md, .docx (text extracted automatically).
the add_info tool accepts plain english descriptions of what to add.
it auto-detects the best section to put the information in.
"our new project is called veridian, led by alice"
→ detects "active projects" section → adds entry → creates pr
"we decided to use postgres for storage"
→ detects "decisions" section → adds entry → creates pr
the remove_info tool accepts descriptions of what to remove:
"remove the project veridian entry"
→ finds matching lines → creates pr with the change
.github/codeowners with your team's github handlescheck_roles tool to verify permissionsbranch protection enforces that changes go through pull requests with the right reviewers before merging. this works with any github team — no additional setup needed.
# team members who can approve changes
organisation.md @your-org/leadership @alice
context/ @your-org/team