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/mcp

You also find it in Codeny under Settings → Claude & MCP.

Claude on the web, desktop or mobile#

  1. In Claude open Settings → Connectors and choose Add custom connector.
  2. Enter Codeny as name and https://codeny.org/mcp as URL.
  3. 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/mcp

Then 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#

ToolWhat it does
whoamishows the account and whether writing is allowed
list_repositories, get_repositorylist and view repositories
list_branches, list_files, read_fileread branches, directories (also recursive) and files
searchsearch repositories, code, commits, issues, pull requests and people
list_commits, get_commithistory and single commits with diff
list_issues, get_issueissues with comments
list_pull_requests, get_pull_requestpull requests with comments, reviews and diff
list_workflow_runs, get_workflow_run, get_job_logCI runs, jobs and logs
list_releasesreleases
create_repository, create_branchcreate a repository or branch (writes)
write_file, delete_file, commit_filescommit or delete one or several files (writes)
create_issue, update_issue, add_commentcreate, change, close and comment on issues (writes)
create_pull_request, merge_pull_requestopen 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 main stays protected for Claude too.
  • write_file works 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.

Last updated