Claude & MCP
Connect Claude on the web, in the app or in Claude Code to your Codeny repositories.
Codeny has a built-in server for the Model Context Protocol (MCP). Through it Claude – and any other MCP-capable assistant – works with your repositories directly: read and search code, work on issues and pull requests, analyze CI logs and, if you allow it, commit changes.
The server URL is your instance address with /mcp, on codeny.org:
https://codeny.org/mcpYou also find it in Codeny under Settings → Claude & MCP.
Claude on the web, desktop or mobile#
- In Claude open Settings → Connectors and choose Add custom connector.
- Enter
Codenyas name andhttps://codeny.org/mcpas URL. - Click Connect. Codeny opens: sign in and allow access – Read only or Read and write.
Then ask Claude in a conversation, for example: “Which open issues does frulias/docubara have?” or “Read the README of team/app and propose improvements as a pull request.”
Claude Code (local)#
With browser sign-in (recommended):
claude mcp add --transport http codeny https://codeny.org/mcpThen run /mcp in Claude Code, pick codeny and Authenticate – the browser opens the approval page on Codeny.
With an access token – for servers, containers or machines without a browser:
claude mcp add --transport http codeny https://codeny.org/mcp \
--header "Authorization: Bearer anv_pat_…"Under Settings → Claude & MCP, Create token and command does both in one step.
Claude Code can also work in a local working copy. Clone the repository with a token as password (see Git over HTTPS & SSH) – MCP and Git complement each other: MCP for issues, pull requests and CI, Git for larger refactorings.
What Claude can do#
| Tool | What it does |
|---|---|
whoami | shows the account and whether writing is allowed |
list_repositories, get_repository | list and view repositories |
list_branches, list_files, read_file | read branches, directories (also recursive) and files |
search | search repositories, code, commits, issues, pull requests and people |
list_commits, get_commit | history and single commits with diff |
list_issues, get_issue | issues with comments |
list_pull_requests, get_pull_request | pull requests with comments, reviews and diff |
list_workflow_runs, get_workflow_run, get_job_log | CI runs, jobs and logs |
list_releases | releases |
create_repository, create_branch | create a repository or branch (writes) |
write_file, delete_file, commit_files | commit or delete one or several files (writes) |
create_issue, update_issue, add_comment | create, change, close and comment on issues (writes) |
create_pull_request, merge_pull_request | open and merge pull requests (writes) |
With a read-only connection Claude is not even offered the writing tools.
Security#
- Claude always acts with your permissions – never more. Other people's private repositories stay invisible.
- Every change runs through the same hooks as a push: branch protection, webhooks, workflows and mirrors apply. A protected
mainstays protected for Claude too. write_fileworks with the checksum of the version it read. If someone else changed the file in the meantime, Codeny rejects instead of overwriting.- The MCP server only accepts tokens, never the browser cookie. A foreign web page therefore cannot use it in your name.
- Sign-in uses OAuth 2.1 with PKCE. The access token is valid for 8 hours and renewed automatically; without use the connection expires after 90 days.
Disconnecting#
Settings → Claude & MCP → Connected applications lists every connection with permission, date and last use. Disconnect ends access immediately. Revoke tokens for Claude Code under Access tokens.
For developers#
The server speaks MCP over Streamable HTTP (POST /mcp, JSON-RPC, stateless). Without a token it answers 401 and points to /.well-known/oauth-protected-resource/mcp in the WWW-Authenticate header. From there a client finds the authorization server (/.well-known/oauth-authorization-server), registers itself (/oauth/register) and signs the user in via /oauth/authorize. OAuth tokens only work for /mcp, not for the REST API.
Was this page helpful?