A lean, locally running Model Context Protocol server for developer tools, built to keep LLM token usage low.
- .NET 11,
WebApplication.CreateSlimBuilder, officialModelContextProtocol.AspNetCoreSDK over Streamable HTTP (/mcp), or stdio with--stdioso clients can start it themselves - Published as a single-file, self-contained Native AOT executable (~28 MB on linux-x64,
/healthanswers about 0.1 s after launch) - Double-click to run: a built-in settings page (
http://localhost:5180/) opens on first start; paste your URL and token and the tools switch on without a restart - Optional Aspire 17 AppHost for development, with OpenTelemetry traces, metrics and logs in the Aspire dashboard
- Integrations: Atlassian Confluence and Jira (Cloud and Data Center / Server), GitHub issues (github.com and GitHub Enterprise) and ArchiMate diagrams (PNG export with a local Archi install, Open Exchange Format from compact JSON, draw.io diagrams on Confluence pages)
- No MCP allowed? Downloadable Agent Skills for Claude Code, Codex, Copilot, Cursor and Gemini CLI run the executable directly (
simple-architecture-mcp skill …) with the same services instead; no PowerShell or shell script is needed, so they also work where script execution is disabled - Vertical feature slices, so further providers plug in without touching the core
- Connect your client: VS Code / GitHub Copilot, Copilot CLI, Claude Code, Claude Desktop, Cursor, Windsurf, JetBrains AI Assistant and Codex CLI, over HTTP or stdio, with and without an API key
- What you can do with it: example prompts and cross-tool workflows
- Aspire: dashboard, telemetry, parameters, and the Aspire MCP server for coding agents
- Token savings: measurements and why they matter
- Agent Skills without MCP: install the skills, the
skillcommand line, its JSON output, exit codes and policy switch
See docs/token-savings.md for what this brings, why it matters, and measurements against raw APIs and the official GitHub MCP server.
| Technique | Effect |
|---|---|
Tools of unconfigured modules are hidden from tools/list |
Unused integrations add zero schema tokens |
| Terse tool descriptions, primitive parameters | All 9 Confluence tool schemas total ≈ 4.3 KB (~1,080 tokens); the 7 Jira tools ≈ 2.8 KB (~700 tokens); the 6 GitHub tools ≈ 2.7 KB (~670 tokens); the 4 Archi tools ≈ 4.0 KB (~1,000 tokens); migrate_issues ≈ 0.8 KB (~200 tokens) |
Workflow skills over MCP (skills/list), shown only while the tools they drive are |
A client loads a skill's name and description up front and its instructions only when it uses it (see Skills) |
| Per-client tool scopes | /mcp/jira,github, /mcp/readonly, --tools jira (stdio): a client sees only the tools it needs |
| Jira issues are returned as front matter + Markdown, with only the fields that matter | No custom fields, avatars, self links or changelog |
| Pages are returned as Markdown, not storage XHTML | Usually several times smaller than the raw body |
Search/children return one id | title | … line per hit |
No _links, _expandable, reactions, node ids or user objects |
One github_update_issue for edit, close/reopen, labels and assignees |
One schema instead of five; a single call changes several things |
Archi tools return PNG paths, not pictures, unless inline=true |
A path costs a few tokens; an image costs hundreds or more |
archi_create_model takes ids + types + names; layout is automatic |
No coordinates, styles or XML in the prompt |
confluence_append_to_page |
Adds content without the model re-sending the whole page |
| Automatic version handling | No failed calls and retries for version conflicts |
| One short error sentence per failure | Timeouts, unreachable hosts, login pages instead of JSON and API errors all say what to do next; no stack traces |
simple_architecture_mcp.tool.output.size metric |
See exactly how many characters each tool returns |
- Download the archive for your OS from the latest release and extract it.
- Double-click
simple-architecture-mcp(simple-architecture-mcp.exeon Windows). A console window shows the server log. - On first start the settings page opens in your browser (
http://localhost:5180/). Fill in the modules you use (Confluence and Jira: base URL, email for Cloud, API token; GitHub: a personal access token, plus the URL only for GitHub Enterprise), then Save. The page tests the connection, and that module's tools become available immediately. - Open the MCP clients tab on the settings page and download the config for your client; it shows where the file goes. Or point your MCP client at
http://localhost:5180/mcpyourself, or let the client startsimple-architecture-mcp --stdio. docs/clients.md has the setup for VS Code / GitHub Copilot, Claude Code, Claude Desktop, Cursor, Windsurf, JetBrains and Codex. If the client was already connected, reload its MCP server so it fetches the new tool list. - Ask away: docs/examples.md has example prompts and workflows across Confluence, Jira and GitHub.
When you only use the Skills (no MCP client), start the program to configure it and click Stop server at the bottom of the settings page when you're done: the command line reads the same settings file and needs no running server. The button isn't shown when an MCP client started the server with --stdio.
Settings are stored per user in %APPDATA%\simple-architecture-mcp\settings.json (Windows) or ~/.config/simple-architecture-mcp/settings.json (Linux/macOS), readable only by you on Linux/macOS. Environment variables and appsettings.json work too; environment variables win over the settings page.
brew tap dapplo/tap
brew install simple-architecture-mcp
simple-architecture-mcp # starts the server and opens the settings page
brew services start simple-architecture-mcp # or keep it running in the backgroundThe skill programs come the same way: brew install simple-architecture-jira (or -confluence, -github, -archi, -migration), then simple-architecture-jira config in a terminal (it explains each setting, says where to create the token and tests the connection; see What config asks); it works from the PATH as is, or install it as a skill for your agent, see docs/skills.md. An installed skill keeps its own copy of the program, so run install again after brew upgrade. The server's MCP client configs and skill install point at Homebrew's version-independent path ($(brew --prefix)/opt/…), so they keep working after an upgrade.
The binaries aren't signed with an Apple Developer ID or a Windows code-signing certificate. Browsers mark downloaded files as coming from the internet, and the operating system then asks before running them:
-
Homebrew: nothing to do.
brew installdownloads without that mark, so macOS doesn't block the programs. -
macOS, downloaded with a browser: the extracted program inherits the mark (the
com.apple.quarantineattribute), and macOS refuses to open it ("Apple could not verify … is free of malware"). Remove the mark once, in Terminal, in the folder you extracted it to:xattr -d com.apple.quarantine simple-architecture-mcp # or simple-architecture-jira, …Or try to open it once, then click Open Anyway in System Settings → Privacy & Security. Do this before
install: an installed skill is a copy and keeps the mark otherwise (xattr -dr com.apple.quarantine <skill folder>fixes it afterwards). -
Windows, downloaded with a browser: the zip carries the Mark of the Web and SmartScreen shows "Windows protected your PC". Unblock the zip before extracting it (right-click → Properties → Unblock, or
Unblock-File .\simple-architecture-mcp-win-x64.zipin PowerShell), or click More info → Run anyway on the first start. -
Downloaded with
curlorgh release download: no mark, nothing to do.
Each configured tab also has a Convert & download box for doing things by hand, without an agent (these are not MCP tools, so they cost no tokens):
| Tab | Input | Download |
|---|---|---|
| Confluence | page id or page URL | the page as Markdown (.md, same content as confluence_get_page); a page with attachments comes as a .zip with the Markdown and an attachments/ folder that its images and attachment links point to. The table of contents (toc macro) is written out, and links within the page become heading links, so the zip opens as-is in Obsidian |
| Jira | issue key or URL | the issue with its comments as Markdown |
| GitHub | owner/repo#123, #123 (default repository) or an issue/PR URL |
the issue or PR with its comments as Markdown |
| Archi | an uploaded Open Exchange .xml or .archimate file |
PNG (one view) or a .zip of PNGs; a draw.io file (a page per view); or the other format (.xml ⇄ .archimate) |
Uploads (up to 25 MB) go to a temporary folder that is deleted after the conversion; nothing is written to the Archi output folder.
SimpleArchitectureMcp.slnx
src/
SimpleArchitectureMcp.Core/ The modules and services, without ASP.NET or the MCP SDK; shared by the server and the per-system programs
CoreModules.cs Every module's services (no MCP tools), for the Skill CLI
Core/
Cli/ SkillCli (`skill …` command line), SkillCommands (one per MCP tool), SingleSkill (per-system programs: config, install)
Http/ Named HttpClient per module: auth handler, payload metrics, rate-limit waits, retries
Markdown/ Shared Markdown parser (AST) used by provider emitters
Modules/ ModuleRegistry (enabled/disabled modules, settings form, /health), ModuleConversion
Security/ PathGuard, LocalFiles, LocalSavePath, LocalTargetFolder (file and folder guards), CredentialStore, OwnTempFolder
Settings/ SettingsStore (per-user settings.json), LegacyNames (devtools-mcp migration)
Skills/ AgentSkillPackages/Clients: downloadable Agent Skills; StableExecutablePath (Homebrew)
Tools/ ErrorText (short error sentences), WorkProgress
AgentSkills/<name>/SKILL.md Downloadable Agent Skills (one per system), _shared/execution.md (rules in every skill), _scripts/ (optional wrappers)
Modules/Confluence/ The Confluence vertical slice
ConfluenceModule.cs AddConfluenceServices(): services and the settings form
ConfluenceOptions.cs Options, deployment auto-detection, auth
IConfluenceApiAdapter.cs Deployment-specific REST surface
CloudConfluenceAdapter.cs REST v2 pages (+ v1 CQL search)
DataCenterConfluenceAdapter.cs REST v1 content API, context path respected
ConfluenceJsonContext.cs Source-generated DTOs
ConfluenceMarkupConverter*.cs Storage XHTML <-> Markdown
ConfluenceService*.cs Versioning, validation, compact output; exports (.Export), page trees (.Tree), spaces and page links (.Space)
DrawioMacro.cs The draw.io app's macro in storage format
Modules/Jira/ The Jira slice (same shape: options, connection, adapters, service)
JiraAdapterBase.cs REST API v2 on Cloud and Data Center
CloudJiraAdapter.cs /search/jql, users by accountId
DataCenterJiraAdapter.cs /search, users by name, context path respected
JiraWikiConverter.cs Jira wiki markup <-> Markdown
JiraService.cs Validation, user resolution, compact output
Modules/GitHub/ The GitHub issues slice (github.com, ghe.com, Enterprise Server): options, GitHubApi, service
Modules/Migration/ Jira <-> GitHub copy, user map, local migration record
Modules/Archi/ ArchiMate: compact JSON model, Open Exchange builder, ArchiRunner (xvfb-run on headless Linux), draw.io converter, layout capture
SimpleArchitectureMcp.Server/ Native AOT MCP server (assembly: simple-architecture-mcp)
Program.cs Composition root: JSON contexts, MCP server, modules
ServerModules.cs The module list (JSON contexts and MCP tools) for the server and its `skill` command line
Core/ Server-only parts: Polly resilience, DevToolsJson, ModuleToolGate and ToolScope, loopback binding and API key,
settings page and endpoints, MCP client configs, ModuleSkills, telemetry, ToolErrors, ToolSchemaCompactor
Modules/<system>/ <System>McpModule.cs (services + tools) and <System>Tools.cs: Confluence 9, Jira 7, GitHub 6, Archi 4, Migration 1 MCP tools
Skills/<name>/SKILL.md Built-in workflow skills served over MCP (embedded in the binary)
SimpleArchitectureMcp.Cli/ One small program per system: dotnet publish -r <rid> -p:SkillModule=jira|confluence|github|archi|migration
SimpleArchitectureMcp.AppHost/ Aspire 17 AppHost
tests/SimpleArchitectureMcp.Tests/ xUnit v3 tests, grouped by slice
.vscode/mcp.json VS Code / GitHub Copilot client config
Every page_id (and parent_id) also takes a pasted page URL (…/pages/123/…, …/pages/edit-v2/123, …?pageId=123) a short link (…/wiki/x/D4AB, decoded locally), a title link (…/display/SPACE/Page+Title, …/viewpage.action?spaceKey=SPACE&title=Title; one search request) or a space link (…/display/SPACE, …/spaces/SPACE/overview: its home page). Only the page is taken from the URL; requests always go to the configured Confluence.
The two exports report progress: MCP clients that ask for it (a progress token in the call) get progress notifications; the command line shows a status line only in a terminal, so an agent running it gets nothing but the result.
| Tool | Inputs | Returns |
|---|---|---|
confluence_search |
query (CQL or plain text), space_key?, limit (10, max 25) |
id | title | space | yyyy-MM-dd + excerpt per hit |
confluence_get_page |
page_id, format (markdown | storage) |
Front matter (id, title, version) + body |
confluence_export_page |
page_id, save_to (.md file, .zip for Markdown plus all attachments, or folder), format, overwrite (false: a file that is not an earlier export is kept) |
Saved <id> '<title>' v<n> to <path> (<n> KB)., plus , <n> attachments for a .zip (the body and the files stay out of the conversation). Files get the toc macro written out; confluence_get_page keeps its placeholder so the Markdown can be written back |
confluence_export_tree |
target_dir (new or empty folder), page_id, or instead space (key, or a link to the space or one of its pages) for every page of a space, depth (1; 0 = the page alone, max 5; ignored for a space), max_pages (50, max 500; for a space 1000, max 5000), attachments (true), into_existing (false), overwrite (false) |
Exported <n> pages (depth <d>) to <dir>, <n> attachments. (a space: Exported <n> pages of space <KEY> (<name>) to <dir>, …) The folder gets the unpacked zip layout: <title>.md and attachments/ for the page, one subfolder per child page with the same layout. Refuses hidden, AppData, system and program folders (also behind links), and never writes outside the folder, also through links or ... A non-empty folder needs into_existing=true, which keeps every existing file (any name clash stops the export before anything is written), or overwrite=true, which replaces the files the export writes again. A space export writes every page with all its descendants: a space with one top-level page (usually the home page) puts it straight into the folder, otherwise each top-level page gets its own folder, home page first |
confluence_get_page_children |
page_id, limit (25) |
id | title per child |
confluence_create_page |
space_key, title, body (Markdown), parent_id? |
Created <id> | <title> | <url> |
confluence_update_page |
page_id, body (Markdown, or storage XHTML with format=storage), title?, format, version_message? |
Updated <id> to version <n>. |
confluence_append_to_page |
page_id, body (Markdown), version_message? |
Appended to <id>; now version <n>. |
confluence_add_drawio |
page_id, file (.drawio), name? (default the file name), png? (preview) |
Added|Updated draw.io diagram '<name>' (attachment v<n>) on <id>; page version <n>. |
Plain-text queries become type = page AND text ~ "..."; queries that already contain CQL operators pass through unchanged. space_key is validated and AND-ed in front, and any ORDER BY stays at the end.
confluence_add_drawio stores the diagram the way the draw.io app for Confluence does: the .drawio XML as a page attachment named after the diagram (no extension), the optional PNG as <name>.png, and a drawio macro (diagramName, revision = attachment version) appended to the page. Running it again with the same name uploads a new attachment version and only bumps the existing macro's revision, so the diagram updates in place. The tool is only listed when the draw.io app is available (see Confluence:DiagramApps below); the upload uses the v1 content/{id}/child/attachment endpoint on both Cloud and Data Center. The file must be an ordinary local file (same hidden-folder guard as Jira attachments); simple-architecture-mcp's own output folder %TEMP%/simple-architecture-mcp, where the Archi tools write by default, is always allowed.
Updates read the current version first and write version + 1. If someone else saves in between (HTTP 409), the server re-reads the version and retries once. Appends work on the raw storage body, so existing macros are never converted or lost.
Confluence:DeploymentType is Auto (default), Cloud or DataCenter. Auto picks Cloud when the host ends in .atlassian.net or Confluence:Email is set, otherwise Data Center.
| Cloud | Data Center / Server | |
|---|---|---|
| Auth | Basic email:apiToken |
Bearer <PAT> (or Basic user:password if Email is set with DeploymentType=DataCenter) |
| Pages, children, create, update | /wiki/api/v2/pages… (space key → spaceId resolved and cached) |
/rest/api/content… (space.key, ancestors) |
| Search | /wiki/rest/api/search?cql=… |
/rest/api/search?cql=… |
| Base URL | https://site.atlassian.net (with or without /wiki) |
https://host/context-path (context path respected) |
Search uses the v1 /rest/api/search CQL endpoint rather than /rest/api/content/search, because it is the one that returns excerpts and lastModified in a single call on both Cloud and Data Center.
Storage XHTML → Markdown uses System.Xml.Linq. Markdown → storage uses the shared parser in Core/Markdown plus a StringBuilder emitter. Neither uses reflection or a third-party library.
- Headings, paragraphs, bold/italic/strike/inline code, links, images, line breaks, nested ordered/unordered lists, task lists, tables, block quotes and rules all map both ways.
code/noformatmacros ↔ fenced code blocks. Extra parameters ride on the fence line, e.g.```java title="Example".- Confluence links use small URL schemes:
page:Title?space=KEY,attachment:file.pdf,user:account-id=…. - Other macros become placeholders:
**[Confluence Macro: jira | key=ABC-1]**. Macros with a rich-text body (info,note,warning,expand, …) become a block quote that starts with the placeholder. Simple macros like these round-trip back to real macros. Macros with nested resource parameters or non-code plain-text bodies do not round-trip. For those, the tool description tells the model to useformat=storagewith bothconfluence_get_pageandconfluence_update_page.
Basic issue work with your own Jira permissions. There are no admin tools (no projects, workflows, schemes or user management).
| Tool | Inputs | Returns |
|---|---|---|
jira_search |
query (JQL, an issue key, or plain text), limit (20, max 50), cursor? |
key | type | status | assignee | yyyy-MM-dd | summary per issue, then next cursor: … when there are more |
jira_get_issue |
issue_key, comments (5, max 50) |
Front matter (key, summary, type, status, priority, assignee, labels, parent, subtasks, links, fix versions, components, url, attachments, …) + Markdown description + latest comments |
jira_create_issue |
project_key, summary, issue_type (Task), description?, assignee?, labels?, priority?, parent_key? |
Created <key> | <url> |
jira_update_issue |
issue_key, summary?, description?, priority?, add_labels?, remove_labels?, assignee? |
Updated <key>: <changed fields>. |
jira_transition_issue |
issue_key, transition?, comment?, resolution? |
Without transition: id | name → status per available transition. With it: <key> → <status>. |
jira_add_comment |
issue_key, body |
Commented on <key>. |
jira_attach_file |
issue_key, file |
Attached <name> (<size>) to <key>. |
- Markdown in, Markdown out. Descriptions and comments are written and read as Markdown and converted to and from Jira wiki markup. Both Cloud and Data Center use REST API v2, which stores wiki markup, so there is no Atlassian Document Format JSON in the prompt.
- Close an issue with
jira_transition_issueandtransition=Done(or the transition's name or id, or the target status). Passresolutionif your workflow asks for one. A wrong name returns the list of valid transitions. - Assignees can be
me,none(unassign), a username, an email, a display name or (Cloud) an account id. Ambiguous names fail with a short list of candidates, before anything is written. Assigning uses the assignee endpoint, which needs only the Assign permission. - Labels are added and removed individually, so existing labels are never overwritten.
- Plain-text search becomes
text ~ "..." ORDER BY updated DESC; a bare key likeabc-12becomeskey = ABC-12. Cloud uses the enhanced/rest/api/2/search/jqlendpoint; Data Center uses/rest/api/2/search. - An unknown
issue_typeon create returns the project's valid issue types in the error. - Attachments are read from the local disk with your permissions, up to 100 MB. Files in hidden files or folders (
~/.ssh,~/.aws,.env,~/.config/simple-architecture-mcp, …) or in WindowsAppDataare refused, also through symbolic links, so a prompt-injected issue cannot talk the model into uploading credentials.
Jira configuration mirrors Confluence: Jira:BaseUrl, Jira:Email (Cloud only), Jira:ApiToken and Jira:DeploymentType (Auto picks Cloud for *.atlassian.net or when an email is set). On Cloud, any path in the URL (/jira/software/...) is ignored; on Data Center the context path (https://host/jira) is kept.
| Tool | Inputs | Returns |
|---|---|---|
github_search_issues |
query (GitHub search syntax), repo?, limit (20, max 50), page (1) |
#n | state | title | labels | assignees | yyyy-MM-dd per hit, then next page: n when there are more (GitHub search stops at 1,000 results) |
github_get_issue |
number, repo?, comments (latest 5, 0–100) |
Front matter (state, author, labels, assignees, milestone, url) + body + [comment_id] @author date comments |
github_create_issue |
title, body?, repo?, labels?, assignees?, milestone? |
Created owner/repo#n | <url> |
github_update_issue |
number, repo?, title?, body?, state?, state_reason?, milestone? (0 clears), add_labels?, remove_labels?, add_assignees?, remove_assignees? |
Updated owner/repo#n: <what changed>. |
github_comment |
number, body, repo?, comment_id? (edit that comment instead) |
Commented <id> | <url> |
github_list_labels |
repo? |
name | description per label |
- Everything runs with your token's permissions; there are no admin tools (no repository, team, webhook or branch-protection settings). A fine-grained token needs Issues: read and write on the repositories you pick; a classic token needs
repo(orpublic_repo). repoisowner/repo(a pastedhttps://github.com/owner/repoURL works too). It is optional everywhere whenGitHub:DefaultRepois set.- Search adds
is:issueunless the query already saysis:pr/is:issue, and addsrepo:<repo>(or the default repository) unless the query has its ownrepo:,org:oruser:qualifier. Inside one repository, refs are printed as#nto save tokens. github_get_issueworks for pull requests too (they share the issue number space) and marks them(pull request). Bodies are already Markdown, so they pass through unchanged.- Closing:
state=closedwithstate_reasoncompleted(default),not_plannedorduplicate.state_reasonalone also closes (or reopens, forreopened). - Attachments are not supported: GitHub's REST and GraphQL APIs have no endpoint for uploading issue attachments (the web editor uses an internal upload flow). Link to files instead, e.g. a file committed to the repository or a release asset.
| Key (env var) | Meaning |
|---|---|
GitHub:ApiToken (GitHub__ApiToken) |
Required to enable the module: personal access token (classic or fine-grained) |
GitHub:BaseUrl (GitHub__BaseUrl) |
Empty for github.com. GitHub Enterprise Server: https://github.example.com (/api/v3 is added). Enterprise Cloud with data residency: https://SUBDOMAIN.ghe.com |
GitHub:DefaultRepo (GitHub__DefaultRepo) |
Optional owner/repo used when a call omits repo |
GitHub:TimeoutSeconds |
Total request timeout (default 30; read at start-up) |
Listed only while both Jira and GitHub are configured. migrate_issues copies issues on the server, so descriptions and comments never pass through the model: each issue costs one short result line instead of reading and re-typing its text.
| Tool | Inputs | Returns |
|---|---|---|
migrate_issues |
target (owner/repo to copy from Jira, a Jira project key to copy from GitHub), issues? (Jira keys, or #12 / owner/repo#12) or query? (JQL, or a GitHub search), cursor?, limit (10, max 25), dry_run |
OPS-7 → o/r#45 | 3 comments, 1 attachments | <url> per issue, = … (already migrated) for finished ones, ✗ <error> for failures, then next cursor: … |
What is copied:
| Jira → GitHub | GitHub → Jira | |
|---|---|---|
| Text | Description and all comments, wiki markup → Markdown | Body and all comments, Markdown → wiki markup |
| Author and date | Header line on the issue and on every comment (posted as you; keeping the original author needs admin import tools) | Same |
| Status | Done category → closed; resolution → completed / not_planned / duplicate; In-progress statuses → status: <name> label |
Closed → a transition to a Done status, with a resolution when the screen asks for one |
| Labels | Labels, issue type, components, priority: <name> |
Labels (spaces become -); a bug label makes it a Bug |
| Assignee | Mapped user (Migration:UserMap), if they can be assigned |
Mapped user |
| Milestone | First fix version → milestone (created when missing) | Milestone → fix version, if the project has one with that name |
| Attachments | Links to the Jira file, or committed to a branch (Migration:Attachments=Commit) |
Downloaded from GitHub and attached; images point at the attachment |
| Hierarchy and links | Sub-tasks and parents become GitHub sub-issues once both sides are copied; links are listed with the new numbers | Sub-issues are listed with their Jira keys |
- Idempotent. A local record (
migration-map.jsonnext tosettings.json) stores what was copied where, and progress is saved after every comment, so re-running a call skips finished issues and resumes an interrupted one. Keep the file if you migrate in several sessions. - Nobody gets pinged by accident. A Jira mention becomes
@loginonly for mapped users; others become inert`@name`text. - Rate limits. GitHub writes are spaced a second apart, as GitHub asks. Every module now waits for
Retry-After/X-RateLimit-Reset(up to a minute) on HTTP 429 and GitHub's rate-limit 403s, also for POSTs. Longer waits stop the batch with a message; run the same call again later. - Large projects. Page through with
cursor. Jira queries withoutORDER BYare copied oldest first. GitHub search stops at 1,000 results, so slice larger repositories by date (created:2024-01-01..2024-06-30). - A GitHub target must be a repository you can push to. Anyone may open issues in a public repository, so this keeps a prompt-injected
targetfrom copying private Jira issues to someone else's repo. - Try
dry_run=truefirst: it shows title, labels, assignee, state and counts without writing anything.
| Key (env var) | Meaning |
|---|---|
Migration:UserMap |
jira-user=github-login pairs, separated by commas. The Jira side may be a username, account id, email or display name |
Migration:Attachments |
Link (default) or Commit: copy Jira attachments into the repository |
Migration:AttachmentBranch |
Branch for Commit (default migrated-attachments, created from the default branch) |
Migration:MapFile |
Where the migration record is kept |
Renders ArchiMate views to PNG with your local Archi (5.x), headless through its command line, and writes Open Exchange Format files from a compact JSON model.
| Tool | Inputs | Returns |
|---|---|---|
archi_render |
file (.archimate or exchange .xml), views? (names or ids, default all), out_dir?, inline (false) |
view | png path | WxH per view, plus the images when inline |
archi_create_model |
model (JSON below), path? (.xml), render (true), inline (false), overwrite (false: an existing file that is not an exchange model is kept) |
<xml path> (n elements, n relationships, views: …) then the archi_render lines |
archi_to_drawio |
file (exchange .xml or .archimate), views?, path? (.drawio), overwrite (false: an existing non-draw.io file is kept) |
<drawio path> (pages: …) |
archi_capture_layout |
file (the .archimate or exchange .xml someone rearranged in Archi), spec (the model JSON file), path? (default: spec itself) |
<json path> (layout of view (n nodes), …), then a skipped: line for anything the JSON can't hold |
{
"name": "Web shop",
"elements": [
{ "id": "cust", "type": "BusinessActor", "name": "Customer" },
{ "id": "order", "type": "BusinessProcess", "name": "Place order" },
{ "id": "shop", "type": "ApplicationComponent", "name": "Shop" },
{ "id": "db", "type": "DataObject", "name": "Orders" },
{ "id": "srv", "type": "Node", "name": "Web server" }
],
"relationships": [
{ "type": "Assignment", "source": "cust", "target": "order" },
{ "type": "Serving", "source": "shop", "target": "order" },
{ "type": "Access", "source": "shop", "target": "db", "access": "ReadWrite" },
{ "type": "Realization", "source": "srv", "target": "shop" }
],
"views": [
{ "name": "Overview" },
{ "name": "Deployment", "nodes": [ { "ref": "srv", "nodes": [ { "ref": "shop" } ] } ] }
]
}typeis any ArchiMate 3.1 element type (BusinessActor,ApplicationComponent,Node,Goal,WorkPackage,Grouping,Location,AndJunction/OrJunction, …; case and spaces don't matter) and relationship type (Composition,Aggregation,Assignment,Realization,Serving,Access,Influence,Triggering,Flow,Specialization,Association).- Without
viewsthere is one view with every element. A view listselements(auto layout) and/ornodes(nesting; optionalx/y/w/h, relative to the parent). Auto layout puts each ArchiMate layer in its own row band, top to bottom: motivation, strategy, business, application, technology, physical, implementation, other. Parents grow to fit nested children. - Reproducible layout. Auto layout is a starting point. When someone arranges a view by hand in Archi,
archi_capture_layoutcopies the positions, sizes and nesting of every view back into the JSON asnodeswithx/y/w/h, soarchi_create_modelregenerates the same diagram instead of discarding the work. Elements are matched by the idsarchi_create_modelgave them (id-<key>), else by type and name; views by name. Elements added to the JSON afterwards are auto-placed below the positioned ones. Notes, visual groups, bendpoints and elements that exist only in Archi are not carried over (the result lists them). - Every relationship whose ends are both on a view is drawn (
"connections": falseturns that off), except structural ones between a parent and its nested child, which the nesting already shows. - Errors are collected into one message (unknown types, duplicate ids, dangling references), so a model can fix them in one go. The output validates against the Open Group
archimate3_Diagram.xsd. - PNGs are named after their views and overwrite older ones. Tools only write
.png/.xmlfiles and refuse hidden orAppDatafolders (except the configured output folder).
draw.io. archi_to_drawio writes one draw.io page per view with draw.io's ArchiMate 3 shapes, Archi's default layer colours, the same positions, nesting and bendpoints, and the ArchiMate line and arrow styles (access read/write direction, directed association, …). Exchange .xml is converted without starting Archi; an .archimate model is first exported by Archi (--xmlexchange.export). Together with confluence_add_drawio this puts an editable diagram on a Confluence page in two calls: archi_create_model (or an existing model) → archi_to_drawio → confluence_add_drawio.
Renderer. HtmlReport (default) works with plain Archi: it imports the model, creates Archi's HTML report in a temporary folder and takes the view PNGs from it (100% scale). jArchi runs a generated script with the jArchi scripting plugin instead: it renders only the requested views, faster, and honours Archi:Scale and Archi:Margin. Test connection on the settings page tells you whether jArchi is installed.
Headless Linux. Archi is an SWT application and needs a display even on the command line. Without DISPLAY/WAYLAND_DISPLAY, simple-architecture-mcp runs it through xvfb-run -a (install xvfb). One Archi process runs at a time; a run usually takes a few seconds for the JVM start.
| Key (env var) | Meaning |
|---|---|
Archi:ExecutablePath (Archi__ExecutablePath) |
Required to enable the module: Archi.exe (Windows), the Archi launcher (Linux), Archi.app (macOS) or the folder that contains it |
Archi:Renderer |
HtmlReport (default) or jArchi |
Archi:OutputDirectory |
Where PNG and .xml files go when a call names no path (default <temp>/simple-architecture-mcp/archi) |
Archi:Scale, Archi:Margin |
jArchi only: scale in percent (50–400, default 100) and border in pixels (default 10) |
Archi:TimeoutSeconds |
Per Archi run (default 120) |
The settings page shows the first three; scale, margin and timeout are set in appsettings.json or environment variables.
Besides tools, the server offers a few workflow skills over the MCP Skills extension (skills/list, files through resources/read). Tools do the work; a skill tells the agent the safe order to use them in. A client loads only each skill's name and description until the agent uses one, so an unused skill costs about one line of context.
| Skill | For | Shown while these tools are |
|---|---|---|
migrate-issues |
Jira ↔ GitHub migration: dry run, small batch, check, resume with the cursor | migrate_issues |
confluence-writing |
Where pages go, the Markdown and macro syntax that converts cleanly, append vs. update | confluence_create_page, confluence_update_page |
archi-to-confluence |
ArchiMate views as editable draw.io diagrams on a page, updated in place | archi_to_drawio, confluence_add_drawio |
A skill follows the endpoint's scope: /mcp/jira or /mcp/readonly doesn't list confluence-writing, because its tools aren't there. -skills in a scope (/mcp/jira,-skills, --tools -skills) hides all skills.
Client support: VS Code 1.147+ with chat.agentHost.mcpSkills.enabled; skills then show up as slash commands. Clients without the extension ignore it.
These skills need MCP. For agents that can't use MCP there are separate Agent Skills that run a command line instead: one small program per system (simple-architecture-jira install, then … config in a terminal; the token goes to the OS credential store), or simple-architecture-mcp skill …; see docs/skills.md.
To add a skill, create src/SimpleArchitectureMcp.Server/Skills/<name>/SKILL.md with name, description and metadata.requires (space-separated tool names) in its front matter. Files next to it are served too. Keep it short: it is read into the context when used.
| Key (env var) | Meaning |
|---|---|
Confluence:BaseUrl (Confluence__BaseUrl) |
Required to enable the module |
Confluence:ApiToken (Confluence__ApiToken) |
Required: Cloud API token or Data Center PAT |
Confluence:Email (Confluence__Email) |
Cloud account email; leave empty for Data Center PATs |
Confluence:DeploymentType (Confluence__DeploymentType) |
Auto | Cloud | DataCenter |
Confluence:DiagramApps (Confluence__DiagramApps) |
Diagram apps on this Confluence: auto (default: detected), none, or a list of drawio, plantuml, mermaid. Tools that need a missing app (today confluence_add_drawio) are hidden from tools/list, so the agent only sees what the site supports. |
Confluence:TimeoutSeconds |
Total request timeout (default 30; read at start-up, so restart after changing it) |
Jira:BaseUrl, Jira:ApiToken, Jira:Email, Jira:DeploymentType, Jira:TimeoutSeconds (Jira__…) |
Same meaning, for Jira |
--stdio (command-line switch) |
MCP over stdin/stdout for clients that start the server themselves. The settings page and /health stay on HTTP; logs go to stderr. If the port is taken, the instance keeps serving stdio and watches settings.json for changes made on the other instance's page |
SimpleArchitectureMcp:Port, else PORT, else 5180 |
Listen port |
SimpleArchitectureMcp:OpenBrowser |
false stops the settings page from opening on first start |
SimpleArchitectureMcp:SettingsFile |
Override the per-user settings file path |
SimpleArchitectureMcp:AllowRemote |
true binds all interfaces and requires McpAuth:ApiKey (the server refuses to start without one). Default: loopback only (127.0.0.1 and ::1) |
SimpleArchitectureMcp:SkillCli |
on (default), readonly or off: the skill command line for Agent Skills (docs/skills.md) |
McpAuth:ApiKey (McpAuth__ApiKey) |
If set, /mcp requires Authorization: Bearer <key> or X-API-Key (/health stays open) |
OTEL_EXPORTER_OTLP_ENDPOINT |
Enables OTLP export (Aspire sets it automatically) |
Upgrading from devtools-mcp. The server used to be called devtools-mcp. On the first start the new simple-architecture-mcp copies the old settings folder (%APPDATA%/devtools-mcp or ~/.config/devtools-mcp) to simple-architecture-mcp next to it, so your URLs and tokens carry over; the old folder is left in place. Old DevToolsMcp:* keys (DevToolsMcp__Port and so on) still work where the new SimpleArchitectureMcp:* key is unset, except AllowRemote, which appsettings.json now sets under the new name (re-set it as SimpleArchitectureMcp__AllowRemote). Point your MCP client at the new executable name.
Diagram app detection. With auto, the first tools/list (or Test connection) renders each app's macro through the v1 contentbody/convert/view endpoint, which every user may call on Cloud and Data Center (the plugin APIs are admin-only). A macro that renders like a made-up control macro, or as "Unknown macro", is missing. The result is cached until the settings change; if detection fails (offline, timeout) the tools stay listed and the real call reports the problem. Macro names probed: drawio; plantuml, plantumlcloud; mermaid, mermaid-cloud, mermaid-macro. Test connection shows what was found.
The server binds to loopback only by default, so the unauthenticated endpoint is never exposed on external interfaces. The /mcp endpoints refuse requests whose Host is not a loopback name (DNS rebinding) or whose Origin is a non-local web page, so a website you visit cannot call the tools with your tokens; MCP clients send no Origin, and local browser clients such as the MCP Inspector keep working. The settings API additionally rejects non-loopback Host headers (DNS rebinding) and cross-origin requests, never returns stored tokens, and requires the token to be re-entered when the URL changes, so a malicious web page cannot redirect your credentials.
Requires the .NET 11 SDK (global.json). Native AOT also needs the platform toolchain (clang + zlib on Linux, Xcode command-line tools on macOS, the "Desktop development with C++" workload on Windows).
dotnet build SimpleArchitectureMcp.slnx
dotnet test --project tests/SimpleArchitectureMcp.Tests # Microsoft.Testing.Platform runner (see global.json)
# Single-file, self-contained Native AOT executable. Publish into artifacts/publish/<rid> so the AppHost finds it:
dotnet publish src/SimpleArchitectureMcp.Server -c Release -r linux-x64 -o artifacts/publish/linux-x64
dotnet publish src/SimpleArchitectureMcp.Server -c Release -r win-x64 -o artifacts/publish/win-x64
dotnet publish src/SimpleArchitectureMcp.Server -c Release -r osx-arm64 -o artifacts/publish/osx-arm64The per-system skill programs (see docs/skills.md) build from one project, once per system:
dotnet publish src/SimpleArchitectureMcp.Cli -c Release -r linux-x64 -p:SkillModule=jira -o artifacts/skills/linux-x64/jiraNative AOT cannot cross-compile between operating systems, so publish each RID on its own OS. Trim/AOT warnings (IL2026, IL3050, …) are configured as errors, so any reflection regression fails the build.
Without the native toolchain (for example Windows without the C++ workload, where the AOT publish stops because vswhere finds no VC.Tools), add -p:PublishAot=false. You still get a single-file, self-contained executable in the same folder, only trimmed and running on the regular JIT runtime instead of being compiled to native code. It is a little smaller (~25 MB) but starts slower than the AOT build. Unlike AOT, this build can also be made for another OS (e.g. win-x64 from Linux):
dotnet publish src/SimpleArchitectureMcp.Server -c Release -r win-x64 -o artifacts/publish/win-x64 -p:PublishAot=falseCI (.github/workflows/build.yml) builds, tests, publishes and smoke-tests the AOT binary (HTTP, stdio and the skill command line) on linux-x64, linux-arm64, win-x64, osx-arm64 and osx-x64. It also publishes, installs and smoke-tests the five skill programs. Each run uploads simple-architecture-mcp-<rid>.tar.gz / .zip and simple-architecture-<system>-<rid>.tar.gz / .zip as artifacts, plus simple-architecture-mcp-skills.zip (all Agent Skills). Every push to main also publishes them as an automatic GitHub pre-release (v0.1.<run>-preview). Pushing a v* tag publishes a regular release. After each release, .github/workflows/homebrew.yml writes the Homebrew formulae for it (.github/homebrew/formulae.sh), installs and tests them, and pushes them to dapplo/homebrew-tap; that needs a HOMEBREW_TAP_TOKEN secret with write access to the tap. Run it by hand (Actions → homebrew → Run workflow) to publish the formulae of an earlier release.
Run the binary directly:
Confluence__BaseUrl=https://acme.atlassian.net Confluence__Email=me@acme.com Confluence__ApiToken=... \
./artifacts/publish/linux-x64/simple-architecture-mcp
curl http://localhost:5180/health # {"status":"ok","modules":["confluence:Cloud"]}Aspire is not needed to use the server. It is useful while developing modules: the dashboard shows every tool call, downstream request, latency and payload size. docs/aspire.md describes everything it offers, including the Aspire MCP server for coding agents.
dotnet tool install -g Aspire.Cli # Aspire 17 runs AppHosts through the CLI bundle
aspire run --project src/SimpleArchitectureMcp.AppHostThe AppHost:
- defines the parameters
confluence-url,confluence-email(optional),confluence-token(secret) andconfluence-deployment, and injects them asConfluence__BaseUrl,Confluence__Email,Confluence__ApiTokenandConfluence__DeploymentType. Thejira-*parameters work the same way forJira__*, but are optional so they never block startup. Fill them in when the dashboard prompts, or withdotnet user-secrets set Parameters:confluence-token … --project src/SimpleArchitectureMcp.AppHost; - defines the optional parameters
github-urlandgithub-token(secret), injected asGitHub__BaseUrlandGitHub__ApiToken. They never block startup; leave them empty to configure GitHub on the settings page instead. The optionalarchi-pathbecomesArchi__ExecutablePath; - launches the published AOT binary through
AddExecutablewhenartifacts/publish/<current-rid>/simple-architecture-mcpexists. Otherwise it falls back to the project (AddDotnetProject); - exposes
http://localhost:5180(Aspire proxy →PORT), marks it with.WithMcpServer(path: "/mcp"), adds a/healthcheck, and wires OTLP so tool calls, downstream Confluence calls, latencies and payload sizes (simple_architecture_mcp.http.client.response.body.size) show up in the dashboard.
To check that Aspire uses the AOT binary, publish it first and run aspire run. The simple-architecture-mcp resource then shows artifacts/publish/<rid>/simple-architecture-mcp as its command, and /health answers through port 5180.
Other clients and the API-key variant: see docs/clients.md.
.vscode/mcp.json:
Create Modules/<Name>/ in SimpleArchitectureMcp.Core with options, DTOs, an adapter and a service, the same way as Modules/Confluence/ and Modules/Jira/ (JiraConnection shows how to rebuild the adapter when settings change), and the MCP tools in SimpleArchitectureMcp.Server/Modules/<Name>/. The wiring, using Jira as the example:
// SimpleArchitectureMcp.Core/Modules/Jira/JiraModule.cs: services and settings, no MCP
public static IServiceCollection AddJiraServices(this IServiceCollection services, IConfiguration configuration)
{
services.AddModuleHttpClient("jira", TimeSpan.FromSeconds(30));
services.AddSingleton(sp => new JiraConnection(configuration, sp.GetRequiredService<IHttpClientFactory>())); // 1) options, rebuilt on reload
services.AddSingleton(sp => new JiraService(() => sp.GetRequiredService<JiraConnection>().Adapter));
ModuleRegistry.From(services).Add(new ModuleDescriptor // settings page + tool gate
{
Name = "jira", Title = "Jira", Section = "Jira", ToolPrefix = "jira_",
Settings = [new("BaseUrl", "Base URL", "url", Required: true), new("ApiToken", "API token", "secret", Required: true)],
Status = sp => ..., // inactive => tools hidden, zero tokens
});
return services;
}
[JsonSerializable(typeof(JiraIssueDto))] // 2) the module's own JSON context
internal sealed partial class JiraJsonContext : JsonSerializerContext;// SimpleArchitectureMcp.Server/Modules/Jira/JiraMcpModule.cs: the MCP tools, named jira_*
public static IMcpServerBuilder AddJiraModule(this IMcpServerBuilder mcp, IConfiguration configuration, JsonSerializerOptions? json = null)
{
mcp.Services.AddJiraServices(configuration);
mcp.WithTools<JiraTools>(json); // 3)
return mcp;
}Then add the module in three lists: ServerModules.Json() (the JSON context, 2) and ServerModules.AddAllModules (3) for the server, CoreModules.AddAll for the skill command line, and its commands in SkillCommands (plus a SKILL.md under AgentSkills/, and a SkillModule case in SimpleArchitectureMcp.Cli for its own program).
The settings page renders the new module's form automatically. To offer a manual conversion on its tab, add a ModuleConversion to the descriptor's Conversions (a text or file input and a function that returns the file to download). In the AppHost, one Provider.Create(builder, "jira", "Jira", …) line gives the jira-url, jira-email and jira-token parameters and the Jira__* environment variables (Modules/GitHub and its Provider.Create(builder, "github", "GitHub", withEmail: false, optional: true) line are a second, smaller example). Prefix the tool names (jira_*, github_*) so they never collide.
MIT
{ "servers": { "simple-architecture-mcp": { "type": "http", "url": "http://localhost:5180/mcp" } } }