Home / Servers / GitHub API / projects_create_view_for_user

Create a view for a user-owned project

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Create a view for a user-owned project Create a new view in a user-owned project. Views allow you to customize how items in a project are displayed and filtered. [POST /users/{user_id}/projectsV2/{project_number}/views]

Name on the gateway: github_api__projects_create_view_for_user · may change things.

Parameters

NameTypeDescription
user_id requiredstringThe unique identifier of the user.
project_number requiredintegerThe project's number.
name requiredstringThe name of the view.
layout requiredtable | board | roadmapThe layout of the view.
filterstringThe filter query for the view. See Filtering projects for more information.
visible_fieldsarrayvisible_fields is not applicable to roadmap layout views. For table and board…
sort_byarraySorting configuration for the view. Each element is a two-element array of…
group_byarrayThe field IDs to group items by (horizontal grouping). Supports a single…
vertical_group_byarrayThe field IDs to use as columns in board layout (vertical grouping). Supports…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__projects_create_view_for_user",
  "arguments": {
    "user_id": "…",
    "project_number": 0,
    "name": "…",
    "layout": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a view for a user-owned project tool with user_id set to ….

More from GitHub API