New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

hangar_create_project

Create a project (or reuse it if this key already reaches one with that slug). With data: true, also enable the Postgres data layer in PREVIEW and wait until it is ready (can take a few minutes; if it times out, call again — it continues). The production data layer is enabled by a person in the c...

SERVERHangar SOURCE@2tl/hangar-mcp
Medium RISK CLASS
Category Write
Parameters 31 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/2tl-hangar-mcp/hangar-create-project.md

What hangar_create_project does on Hangar

AI agents use hangar_create_project to create or update resources in Hangar, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Hangar environment.

ParameterTypeRequiredDescription
data boolean — Enable the data layer (database + auth) in preview. Default false. The production data layer is enabled by a person in the console, not by this tool.
name string — Display name (default: the slug).
slug string Yes Project slug (= site address). / 프로젝트 slug (사이트 주소)

Parameters from the server's own tool schema.

Why hangar_create_project is rated Medium

An AI agent can call hangar_create_project faster than any human can review: one bad instruction and it creates or modifies resources in Hangar by the hundred, each call as confident as the last.

Risk signalsAdmin/system-level operation

Questions about hangar_create_project

What does the hangar_create_project tool do? +

Create a project (or reuse it if this key already reaches one with that slug). With data: true, also enable the Postgres data layer in PREVIEW and wait until it is ready (can take a few minutes; if it times out, call again — it continues). The production data layer is enabled by a person in the console, not by this tool. Returns the preview/production URLs and, with data, the preview apiUrl + anonKey to put in the app's env before building. Nothing is published. Slug rules: lowercase a-z, 0-9 and "-", at most 63 characters, starting and ending with a letter or digit; unique across all of Hangar (the slug is the site address); must not end in "-preview" (that is the preview address); and must not be a reserved name (e.g. www, api, admin, console, login, docs, …) or contain hangar/2tl/thecommit. / slug 는 소문자·숫자·"-" 63자 이내, Hangar 전체에서 유일(사이트 주소), "-preview" 로 끝나면 안 되고, 주요 예약어(예: www, api, admin, console, login, docs, …)와 hangar·2tl·thecommit 이 들어간 이름은 쓸 수 없습니다. It is categorised as a Write tool in the Hangar MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does hangar_create_project accept? +

hangar_create_project accepts 3 parameters: data, name, slug. Required: slug. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on hangar_create_project? +

Register the Hangar MCP server in PolicyLayer and add a rule for hangar_create_project: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Hangar. Nothing to install.

What risk level is hangar_create_project? +

hangar_create_project is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit hangar_create_project? +

Yes. Add a rate_limit block to the hangar_create_project rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block hangar_create_project completely? +

Set action: deny in the PolicyLayer policy for hangar_create_project. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides hangar_create_project? +

hangar_create_project is provided by the Hangar MCP server (@2tl/hangar-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Hangar, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Hangar's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.